2021-02-10 10:09 PM
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
Solved! Go to Solution.
2021-02-11 01:29 AM
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
2021-02-11 01:23 AM
Hello,
You are tryind to write firmware at wrong address,
Address : 0x00000000,
I guess Flash address should be 0x08000000
Anton
2021-02-11 01:29 AM
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
2021-02-22 11:27 PM
Thanks @qqAnton , it was Working fine after defining the flash address.
Sorry for the late reply. :)