Skip to content

Latest commit

 

History

History
120 lines (73 loc) · 3.86 KB

firmware-flashing-dfu-windows.md

File metadata and controls

120 lines (73 loc) · 3.86 KB

STMBL firmware flashing under Windows via USB DFU using ST DfuSe

INCOMPLETE DO NOT USE - DRAFT - MAY BE INCORRECT This documents the initial flashing of an "empty" board.

Download

Create DFU File from BIN file

The downloaded file needs to be converted from BIN to DFU. For each BIN file you must:

  • Run Dfu file manager from the Windows Start Menu

  • Click OK to choose GENERATE

DFM

  • Choose Multi Bin...

DFM

  • Click ... to open the file

DFM

  • Select the BIN file

DFM

  • Enter the correct address 0x08000000

DFM

  • Click Add to list
  • Click OK

DFM

  • Enter the version of the firmware as a 4 digit hex number
  • Click Generate...

DFM

  • Type the name of the DFU file to be created (you can optionally add the version number as part of the name)

DFM

  • Click Save

DFM

Put the Board into DFU Mode

  • Short the programming jumper on the board you wish to program (as pictured below)
  • Apply power to that board.
  • Once powered up the jumper can be removed. Windows Device Manager should show STM Device in DFU Mode (0483:DF11)

Shorting the programming jumper on the back of the low voltage board Screenshot of STMBL4.1_Low Voltage_Bootloader Jumper pads

Shorting the programming jumper on the top of the high voltage board Screenshot of STMBL4.1_High Voltage_Bootloader Jumper pads

Device manager showing board in DFU mode Device Manager

  • Servoterm

In servoterm the command to put the boards in to bootloader mode are

"bootloader" for the f4 (LV Board)
"hv bootloader" for the f3 (HV Board)

Flashing

  • Start DfuSeDemo
  • Under Upgrade or Verify Action click Choose..

Screenshot of DfUse

Select f4.dfu for the LV board or f3.dfu for the HV board

Screenshot of DfUse

  • Note the version displayed is what was entered earlier in Dfu file manager
  • Note File correctly loaded. message
  • Tick Verify after download
  • Click Upgrade to flash the firmware to the board

Screenshot of DfUse

  • Accept the warning

Screenshot of DfUse

  • Observe the Erase Phase, followed by the Download Phase

Screenshot of DfUse Screenshot of DfUse

  • Observe successful completion

Screenshot of DfUse

Servoterm

Servoterm is a specialised terminal emulator that can be used to control the STMBL. It's a Chrome Extension. The board must be in serial mode, the power must be cycled if it was previously in DFU mode for flashing.

Connect using a USB cable, not a "Smart Serial" cable.

The STM32 DfuSe USB device driver must be loaded http://www.st.com/en/development-tools/stsw-stm32080.html

Screenshot of DfUse

Start servoterm from the Chrome Apps menu, found on the bookmarks bar of a new tab, the URL is chrome://apps/ The command to check the firmware version is about