Senior II
September 15, 2025
Question
SEMIhosting doesn't work (ST-LINK OpenOCD)
- September 15, 2025
- 3 replies
- 709 views
I'm trying to get semihosting to work under STM32CubeIDE with ST-LINK(OpenOCD) debugging.
After being able to connect to the target (an STM32H503), I cannot step over the function initialise_monitor_handles() (see source code). A lot of traps occur but I can't get into the real code to debug. (the lines in the main.c while loop).
Bear with me but the code looks a bit like swiss cheese. Tried various reads, scanf etc. But at the moment I cannot get across the "initialise_monitor_handles();" call.
