Openocd does not work as expected
Works for me also.
I just came to virtually the same conslusion as the proceedure in the post above.
I’m using a Nucleo-64 board with the -303RE chip...
If you are getting the error that looks like this:
>>>>>
...
adapter speed: 950 kHz
Error: timed out while waiting for target halted
TARGET: STM32F303RETx.cpu - Not halted
in procedure ‘program’
in procedure ‘reset’ called at file “embedded:startup.tcl”, line 478
in procedure ‘ocd_bouncer’
- Unable to reset target **
shutdown command invoked
>>>>>
You can fix it by:
Opening the Run->”Debug Configuration” menu...
In the tab “Debugger”, set the radio button of “Configuration Script” to “Auto Generation” (this works in my case), and press the button “Show Generator Options...”. There, under “Mode Setup” change the “Reset Mode” entry from “Connect Under Reset” (in my case) to “Software System Reset”. This appears to let the connection process halt the processor if it is still running from a previous activity and get on with starting the code download.