Flashing STM32 MCU using ST-Link Command Line Utility

January 18th, 2012 | by | technology

Jan
18

You can directly download your compiled HEX file from the Keil µVision 4 IDE or any other IDE to your STM32 value discovery kit or any other STM32 microcontroller, using the command line ST-Link utility. That means, that you don’t need to manually search the HEX file and use the ST-Link Utility GUI to flash the MCU. Just a press of download button in the IDE, will be enough to load your new program to the STM32 MCU and reset it also.

You need to go to the Utilities tab in the project options (ALT + F7) and select the “Use External Tool for Flash programming“. Browse to the path of the “ST-LINK_CLI.exe” program and give the command line arguments as: ‘-c SWD -p "$H@H.hex" -Rst -Run‘.

	Flashing STM32 MCU using ST-Link Command Line Utility

Authored by

Leave a Comment