Can't flash STM32F101

NIIBE Yutaka gniibe at
Tue Feb 13 04:18:42 CET 2018

Fox <f at> wrote:
> I have a St-link v2 STM32F101 from aliexpress (clone), and Im trying to
> flash it with another one.
> When I run tools/ I get:
> ST-Link/V2 version info: 2 17 4
> Change ST-Link/V2 mode 0002 -> 0001
> Core does not halt, try API V2 halt.
> ValueError('Status of core is not halt.', 128)

tools/ would not be good.

You can try OpenOCD with options like:

    -f interface/stlink-v2.cfg -f target/stm32f1x.cfg

Or, if the firmware supports sleep mode, you need to connect nRST pin.
There are many variants of ST-Link/V2 clone, and some doesn't support
nRST pin.  Please describe which variant you have.

More information about the Gnuk-users mailing list