Hi All,
I have semihosting working when using Visual Studio, however I’d like to receive semihosting messages using GDB from the command line. I follow this setup:
- Run openocd.exe in a command box and attach it to the st-link probe.
- Run arm-none-eabi-gdb.exe in a separate command box.
- Set target to the openocd server by “target extended-remote localhost:50648” (successful)
- Reset board with “monitor reset halt” (successful)
- Enable semihosting with “monitor arm semihosting enable” (successful)
- Run the application with “Run” (successful)
- wait a few seconds….
- Breakpoint is hit (assuming it is the fast semihosting breakpoint)
- Resume execution with “Continue” (successful)
No semihosting is seen. I suspect there is something I need to do at step 8. I’m assuming semihosting messages would normally be echoed by openocd/gdb or are they sent out through some other mechanism?
Appreciate any help.
Cheers