Flashing STM32 microcontroller using ST-LinkV2 Utility and eclipse
To flash any STM32 microcontroller from eclipse using ST-Link/V2 programing adapter and the tool „STM32 ST-LINK utility“ set up an external tool as follows:
- Open „External tools Configurations“
- Double click on „Program“
- Point Location to „ST-Link_CLI.exe“ path (usually c:program filesSTMicro…)
- Enter as Working Directory: ${workspace_loc:/PATH-TO-FIRMWARE-OUTPUT-FOLDER} (e.g. ${workspace_loc:/debug})
- Enter at Arguments: „-C SWD UR -Q -P „YOUR-FIRMWARE.hex“ -Rst -Run“
This programs your STM32 microcontroller with the „YOUR-FIRMWARE.hex“ file, resets it und runs the firmware.

