en.radzio.dxp.pl

Flashing MCU with ST-Link command line utility
However uVision IDE have build-in support for ST-Link and can flash MCU memory with ST-Link debugger there is no option "Reset and run". So after flashing MCU memory we must go to Debug mode and manually run appilcation. In some cases useful option is run application directly after flashing without any additional activities.

We need to download STM32 ST-LINK utility which have GUI and command line tool for flashing MCU memory. After instaling utility You must set up Your uVision project to use external tool for flashing MCU. To do this, click RMB on "Target" folder on project tree and select "options for Target" command from context menu :

uVision

After this, go to "Utilities" menu, select "Use External Tool for Flash Programming", select location of ST-LINK_CLI.exe and type following arguments : '-c SWD -p "$H@H.hex" -Rst -Run', like on screen :

uVIsion

After this, click "Download" icon. Flash memory should be programmed and in "Build Output" widnow should are written following messages :

STM32 ST-LINK CLI v1.2
STM32 ST-LINK Command Line Interface
Connected via SWD.
Device ID:0x420
Device flash Size : 128 Kbyte
Device family :Value Line device
Flash Programming:
File : F:\WORK\uK\STM32\testy\test1\test1.hex
Address : 0x08000000
Flash Programming...
北北北北北北北北北北北北北北北北北北北北北北北北北 0%圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹圹 100%
Flash memory programmed in 0mn and 0s and 391ms.
Programming Complete.
MCU Reset.
Application started.

Application should be running.

 

 
(c) Rados砤w Kwiecie