cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F05x Cannot erase or program using ST-link_cli.exe

jonathankuczwaj9
Associate
Posted on October 01, 2014 at 17:46

I am trying to use the command line interface to erase and program an STM32F051

st_link_cli.exe -c SWD -me

Stm32 st-link cli v1.6.1

stm32 st-link command line interface

connected via SWD.

connection mode :normal

st-link firmware version : V2J21s4

Device id:0x440

Device family ''stm32F05x

full chip erase ...

error occurred during flash mas erase!

error code 11

 I am also trying to program the boot loader and it fails 

st_link_cli.exe -c SWD  -P c:\RF6_KEYPAD\RF6_2x16_Boot_003.hex 

I receive an error code 12

If I use the st link utility I can erase and program without issue.  Any suggestions?
1 REPLY 1
Nickname306_O
Senior
Posted on October 14, 2014 at 13:17

Hi kuczwaj.jonathan,

Could you please install the latest version of ST-Link Utility available in the following link :

http://www.st.com/web/en/catalog/tools/FM147/SC1887/PF258168?s_searchtype=keyword

Please let me know if the problem persists.

Best Regards,

Nouha