-
Notifications
You must be signed in to change notification settings - Fork 223
Flashing STM32Fx firmware
The on-board ST-LINK/V2-1 debugger/programmer provides drag'n'drop programming through a USB mass storage device.
Before flashing NETMF firmware, make sure the board is connected to a PC with a proper USB cable and successfully enumerates as a USB drive.
NOTE: The actual name of the USB drive may vary, usually it starts with NUCLEO.
Copy (drag'n'drop) tinybooter.bin
to the root directory of the Nucleo USB drive.
Use MFDeploy to deploy ER_FLASH
image file.
NOTE: The current version of ST-LINK/V2-1 supports only files in BIN format and assumes the starting address is flash base. Thus, TinyCLR can not be flashed this way.
Any board that provides Serial Wire Debug (SWD) interface can be flashed via STM32 ST-LINK Utility application.
- Launch STM32 ST-LINK Utility
- Optional: If the target is not automatically connected, on the Target menu select Connect
- On the Target menu select Program and Verify and browse for
tinybooter.hex
file - Optional: Modify flashing options in the Download dialog
- Press the Start button
Follow the same steps as described above, but browse for ER_FLASH.hex
file - the extension has to be added beforehand.
NOTE: When flashing BIN files make sure there is correct Start address value in the Download dialog. HEX files include it, so it is filled in automatically.
For additional information please refer to UM0892: STM32 ST-LINK utility software description (PDF).