Semihosting with OpenSTM32 and STM32F446RE Nucleo
you need to:
- add “-specs=rdimon.specs -lc -lrdimon” to (Project -> Properties -> C/C++ Build -> Settings -> MCU GCC Linker -> Linker flags)
- add extern void initialise_monitor_handles(void); above main
- add initialise_monitor_handles(); at the beggening og main function
- use printf, putc, puts to output messages via semihosting
Another thing you need to add “monitor arm semihosting enable” to intitialization commands in your debug configuration