cancel
Showing results for 
Search instead for 
Did you mean: 

ST-LINK_CLI.exe issue : Programming Failed

PJain.1
Associate

The Command is " ST-LINK_CLI.exe -c id=0 swd lpm crst -P "JM.bin" -V after_programming -score "

When I do Program SM32f765 Using Device St-Link V2 & STM32Cube programmer GUI , then every time it is programmed .

while randomly i get the issue with STlink CLI.exe . errors are as below:

[CMD RESPONSE]

 STM32 ST-LINK CLI v3.3.0.0

STM32 ST-LINK Command Line Interface

ST-LINK SN: 53FF73065080564918251887

ST-LINK Firmware version: V2J36S7 (Need Update)

Connected via SWD.

SWD Frequency = 4000K.

Target voltage = 3.2 V

Connection mode: Normal

Reset mode: Core reset

Debug in Low Power mode enabled

Device ID: 0x431 

Device flash Size: 512 Kbytes

Device family: STM32F411xC/E

Loading file...

Flash Programming:

 File : JM.bin

 Address : 0x00000000

Memory programming...

????????????????????????? 0%

 0%

Memory programming...

???????????43%??????????? 86%????100%

Reading and verifying device memory...

????????????????????????? 0%

 0%

Programming error @: 0x00000000

Core is Halted

Every Time i got the status of Core is Halted, either Programming is done or failed

1 ACCEPTED SOLUTION

Accepted Solutions
qqAnton
Senior

Check https://www.st.com/resource/en/user_manual/cd00262073-stm32-stlink-utility-software-description-stmicroelectronics.pdf

4.1.3 Flash commands

page 39

Examples:
-P C:\file.bin 0x08002000 
-P C:\file.hex

If you work with .bin file you have to set address

View solution in original post

3 REPLIES 3
qqAnton
Senior

Hello,

You are tryind to write firmware at wrong address,

Address : 0x00000000,

I guess Flash address should be 0x08000000

Anton

qqAnton
Senior

Check https://www.st.com/resource/en/user_manual/cd00262073-stm32-stlink-utility-software-description-stmicroelectronics.pdf

4.1.3 Flash commands

page 39

Examples:
-P C:\file.bin 0x08002000 
-P C:\file.hex

If you work with .bin file you have to set address

Thanks @qqAnton , it was Working fine after defining the flash address.

Sorry for the late reply. :)