Skip to content

Latest commit

 

History

History
65 lines (28 loc) · 1.75 KB

README.md

File metadata and controls

65 lines (28 loc) · 1.75 KB

Firmware Management Guide

Prerequisites

  • Read the Duo system overview here.

Install DFU-UTIL

To manage firmwares for the Duo, you need to use DFU utility.

Bootloader

The bootloader cannot be updated using dfu-util, instead, it will be updated by the partition 2 firmware.

The partition 2 has a copy of bootloader, if it found the bootloader version is lower then the copy, it will update the bootloader partition actomatically.

If you have removed the bootloader with other code (or maybe other bootloader for the ST F205 MCU), you can reload the Duo bootloader by using the RBLink. If you do not have a RBLink, you can use JLink, STLink, FTDI or other flash programmer, but here we will just support using the RBLink.

  • Instructions for recovery of the bootloader will be provide soon.

Updating Main Firmware

Press and hold the SETUP button on the Duo and then press reset button, when the RGB LED shows Yellow and flashing, release the SETUP button.

From the command line:

To update System-Part1

$ sudo dfu-util -d 2b04:d058 -a 0 -s 0x08020000 -D duo-system-part1.bin

To update System-Part2

$ sudo dfu-util -d 2b04:d058 -a 0 -s 0x08040000 -D duo-system-part2.bin

Updating Factory Reset Firmware

To update factory reset image

$ sudo dfu-util -d 2b04:d058 -a 2 -s 0x140000 -D duo-fac-tinker.bin

Updating User Firmware

To update User-Part

$ sudo dfu-util -d 2b04:d058 -a 0 -s 0x080C0000 -D duo-user-part.bin

Dumping Firmware

You can dump the firmware to your computer, for example, to backup the DCT to a file (duo-dct-dump.bin):

$ sudo dfu-util -d 2b04:d058 -a 0 -s 0x08004000 -U duo-dct-dump.bin

After updating the firmware, press the reset button to run the new firmware.