Skip to content
This repository has been archived by the owner on Jun 5, 2019. It is now read-only.

Flashing STM32Fx firmware

CW2 edited this page Sep 14, 2016 · 2 revisions

Flashing STM32Fx firmware

Nucleo-144 board

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.

Flashing TinyBooter

Copy (drag'n'drop) tinybooter.bin to the root directory of the Nucleo USB drive.

Flashing TinyCLR

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.

Generic - SWD via STM32 ST-LINK Utility

Any board that provides Serial Wire Debug (SWD) interface can be flashed via STM32 ST-LINK Utility application.

Flashing TinyBooter

  1. Launch STM32 ST-LINK Utility
  2. Optional: If the target is not automatically connected, on the Target menu select Connect
  3. On the Target menu select Program and Verify and browse for tinybooter.hex file
  4. Optional: Modify flashing options in the Download dialog
  5. Press the Start button

Flashing TinyCLR

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).

Clone this wiki locally