Semihosting is a feature in ARM Cortex-based cores for letting the program interact with the debugger and the debugger machine. Features include sending text for printf() debugging and reading/writing files.
Questions tagged [semihosting]
3 questions
6
votes
1 answer
why trace_printf("%f",x); triggers a HARD FAULT on a stm32 MCU?
I'm using a stm32 F413ZH microncontroller with HAL libraries (mainly written to be used with c but can also be used with c++) in eclipse, actually I managed to completely configure eclipse including semihosting and debug mode(openOCD), the basic…
5
votes
1 answer
Is there a way to check if semihosting is enabled at runtime
The ARM Cortex cores has a built-in feature called semihosting which is a way to interact with the attached debugger, for example to do printf() debugging without using a peripheral unit.
However, the implementation of semihosting is to execute a…

Trygve Laugstøl
- 1,410
- 2
- 19
- 28
2
votes
2 answers
Sending commands to semihosting in VSCode + cortex-debug
I'm trying to move away from doing my firmware development in Eclipse GNU MCU for several reasons, mostly related to project maintainability (much easier to integrate CMake such that there is only one build system), and also for better Intellisense…

Timo
- 1,179
- 1
- 12
- 30