-
DFU - DfuSe


Home Page










-
Introduction


DFU or DfuSe is the USB package for do a firmware upgrade on STM32 via USB.
DfuSe contains the demo GUI, debugging GUI, all sources files and the protocol layer
.



For using DFU on STM32 please read the AN3156 and UM0412.
AN3156 - USB DFU protocol used in the STM32 bootloader
UM0412 - Getting started with DfuSe USB device firmware upgrade

The key benefits of the DFU Boatloader are:
No specific tools such us JTAG, ST-LINK or USB-to-UART cable are needed.
The ability to program an "empty" STM32 device in a newly-assembled board via USB.
And easy upgrade the STM32 firmware during development or pre-production.


Here there is a video that show how to use DFU and STM32F072B-DISCO.




UP


-
How to do



  • For using DFU on STM32 please read:
    AN3156 - USB DFU protocol used in the STM32 bootloader
    UM0412 - Getting started with DfuSe USB device firmware upgrade

  • Install on your PC the DfuSe (STSW-STM32080) that is a GUI for upgrade the STM32.
For linux see here:
http://dfu-util.gnumonks.org/
http://dfu-util.sourceforge.net/
the SW for Linux is also here.
  • After the DfuSe installation, in the package, there is the utility: DFU File Manager
    that is used for generate a .DFU file form a .HEX or .S19 file, see below.


  • Now we use the .DFU file with the DfuSe Demonstration to program the device. Follows the steps below.

    1. You must generate a .DFU file from an .HEX or .S19 file, for do this use the DFU File Manager.
    2. You must put in DFU mode your eval-board (boot mode), in our case the board is the STM32F072B-DISCO and is necessary connect the BOOT pin to VDD pin, see below the red box.



    3. Now connect your eva-board to the PC and you must see a message from USB that the eva-board is in DFU mode.
    4. Run the DfuSe Demonstration and download .DFU file on your eval-board.
    5. Now remove the boot jumper (in our case, remove the jumper from BOOT pin to VDD pin) and reset your eval-board.



      You must see the run of the program that you are downloaded via
      DfuSe Demonstration.

  • Here there is a video that show how to use DFU and STM32F072B-DISCO.


UP




-
Link
  • DfuSe (STSW-STM32080)
  • AN3156 - USB DFU protocol used in the STM32 bootloader
  • UM0412 - Getting started with DfuSe USB device firmware upgrade
  • DFU video tutorial is here
 
UP



Home Page