Semihosting does not work with codes generated by STM32CubeMX v4.15.1 on STM32F103RCT6/STM32F405RG
I use STM32CubeMx to generate code and import it to System Workbench following Importing an STM32CubeMX generated project under System Workbench for STM32
The code keeps blinking led and outputting constant string to uart (DMA) in a loop and works as expected. I can debug it in Eclipse so everything works perfect by here.
Problem happens while experimenting with semihosting feature (see attached).
What I changed/added to enable the semihosting:
- Add “-specs=nosys.specs -specs=nano.specs -specs=rdimon.specs -lc -lrdimon” to linker
- Add “initialise_monitor_handles();” to the beginning of main()
- Add “monitor arm semihosting enable” to Startup of debug configuration
Seems all is set up correctly but I can’t get string printed on the console. I also tried in plain makefile version (no GUI) the problem persists. Problem exists in STM32F103RCT6/STM32F405RG.
Do I miss anything? Have anyone tried semihosting with STM32CubeMX and Sys System Workbench environment?
Thanks for the support.
Johnny