Loading...
 
Skip to main content

System Workbench for STM32


Changing debugger/programmer for project

How does one go about changing the debugger/programmer from the original settings in a build to a new settings. My issue is that I had started a project using a discovery board with the build-in ST-Link V2.1 to a custom board with a stand-alone ST-Link V2.

I've tried so many a "Manual Spec" under debugger settings and a custom script. No matter what though, in my console it always comes up with this message: ""C:\\Ac6\\SystemWorkbench\\plugins\\fr.ac6.mcu.externaltools.openocd.win32_1.10.0.201607261143\\tools\\openocd\\bin\\openocd.exe" -f stm32l476g_disco.cfg"

I am no longer using that board and yet System Workbench defaults to it. What do I have to change?

Follow up to this, I ended up getting this working with the attached script and selecting a "local script" in the debug options. One thing that I had to figure out, which I couldn't find anywhere, was that I had to keep unplugging and re-pluggin the ST-Link V2. in order to get that "read error" to go away.