2017-08-17 01:18 AM
Hello.
I am a test engineer in ABB of China. Now I need help .
My chip is STM32F051R8T6 in our target. After my company's R&D check in their codes, then build one version about the STM32F051R8T6 ,I need auto update this version on my target by the
,how can I do ?Whether the ST-LINK utility supports command line mode or not?
Thank you!
2017-08-17 07:41 AM
Thought it provided a CLI, there is also STVP programming tool kit.
Other JTAG/SWD pods vendors also have programming libraries and APIs if those suit your needs.
2017-08-17 07:57 AM
Hi yingxia feng,
I can advise you to look at the STLink Utility User Manual at
And especially Chapter 3.5 Device Programming. If you have an executable .bin or .hex.
Chapter 4 covers the command line interface (CLI)
You also need a ST-LINK / V2 in-circuit debugger / programmer in SWD mode here
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2017-08-18 12:04 AM
Hello,
I learn and try.
when I input
-c SN=56FF72065080525021540987 SWD UR LPM Hrst
-w32 -P C:\Users\tiandf\Desktop\HDI06_Alarm_V1.02_20160907_PP_STM32F051R8T6.hex 0x08000000the Stlink tool doesn't work and quit the ST_LINK_CLI
2017-08-18 12:55 AM
2017-08-18 12:56 AM
2017-08-18 01:43 AM
Thank you !
Useing .exe is ok ,but CLI mode is failed.
I think I need to work CLI mode .because
2017-08-18 02:30 AM
Hello,
It seems that you are working under Windows OS.
What type of debugger do you use? STLink stand-Alone?
Which version ?Can you give more information (picture or schematic) concerning your Hardware setup ?
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2017-08-18 03:10 AM
Ok great, your STLink probe is detected and also your STM32F0 target.
Now it should ready for Erase or write Flash operation.
Without using CLI mode but using .exe are you able to read memory of device and make a Flash erase ?
If yes you can download your .hex in Flash start 0x08000000 by using Target -> Program or shortcut below
Make sure Flash write protection is disabled (Option Byte Read Out Protection field)
Let me know.
BR
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
2017-08-18 03:52 AM
You can try 2 things.
Try reducing the length of the file. <HDI06_Alarm_V1.02_20160907_PP_STM32F051R8T6.hex>
At the same time, enable the log with the -log option to see if an error is reported
To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.