Semihosting with STM32
I am having the same problem that the current working directory is not the same as the one containing the executable. I did a search of my drive and found that the current path is “C:\Ac6\SystemWorkbench\plugins\fr.ac6.mcu.debug_1.11.0.201610101240\resources\openocd\scripts\st_board”. It would be nice to have the current directory tied to the location of the project so I don’t need to use an absolute path in my application code.
Maybe the current path can be changed in a startup script used by the debugger?