cancel
Showing results for 
Search instead for 
Did you mean: 

Error during flashing with STM32_Programmer_CLI.exe, and how to fix it.

ADiet.1
Associate III

On windows 10 I am using STM32_Programmer_CLI.exe (2.13.0) to flash bytes to memory using the following command line

but then I do so I get a very strange output:

ST-LINK SN  : 53FF71065056705420540981
ST-LINK FW  : V2J29S7
Voltage     : 3.22V
SWD freq    : 4000 KHz
Connect mode: Hot Plug
Reset mode  : Software reset
Device ID   : 0x447
Revision ID : Rev Z
Device name : STM32L07x/L08x/L010
Flash size  : 128 KBytes
Device type : MCU
Device CPU  : Cortex-M0+
BL Version  : 0xB2
 
 
Downloading 8-bit data...
 
██████████████████████████████████████████████████ 100%
 
Error: Failed to download data! If it's a Flash memory, it may be not erased or protected
 
Downloading 8-bit data done successfully
 
Downloading 8-bit data...
 
██████████████████████████████████████████████████ 100%
Downloading 8-bit data done successfully
 
Verifying ...
Read progress:
██████████████████████████████████████████████████ 100%
Download verified successfully

Now has the flash succeeded or not? Because I get an error and then some green bars. How to get rid of this error?

Also, the command did NOT succeed. Checking with the UI version of the programmer at least I see that the address 0x08080000 has not been changed. How to fix this problem?

11 REPLIES 11
Sara BEN HADJ YAHYA
ST Employee

Hello @ADiet.1​ ,

The part number is written on top of the MCU as shown in the picture below. Please check your board and send it to me.

0693W00000aJTSkQAO.jpgThe device that you referred to in your last comment is the STLink-V2 and it is a debugger and a programmer.

About the binary file, you can send it to me in private.

Thanks in advance,

Sara.

Ah I see, - I cannot see that anymore as the chip is built into a housing. It is impossible to get this number. But as far as I know it is of type STM32L071.