Linux Openocd STM32F1 reset issue

If you try programming STM32 with Openocd and you have:

Error: init mode failed (unable to connect to the target)
You should try connect the reset pin to the programmer.
But if problem still occurs you should try this:

1. Click and hold hardware reset button,

2. Put on command:
openocd -f /usr/share/openocd/scripts/interface/stlink-v2.cfg -f /usr/share/openocd/scripts/targe
3. Let go reset button

4. Push and hold reset button again and do your command

Now you should see this:
Info : stm32f1x.cpu: hardware has 6 breakpoints, 4 watchpoints

Leave a Reply

Your email address will not be published. Required fields are marked *