StmDfuUsb

StmDfuUsb

Tools 1.25 2.6 MB by Yaroslav Trymbach Apr 26,2025
Download
Application Description

Application for Updating Firmware of STM32 CPU via USB Cable Using USB DFU Protocol

The realization of this application is based on the following documents from STMicroelectronics:

  1. AN2606: STM32 Microcontroller System Memory Boot Mode
  2. AN3156: USB DFU Protocol Used in the STM32 Bootloader

How to Use the Application

PREREQUISITE

Your mobile device must support USB-OTG.

PREPARATION

  1. Connect the STM32 board to your mobile device using a USB-OTG cable.
  2. Activate the bootloader mode for the STM32. For detailed instructions, refer to AN2606. Generally, you need to set the pins BOOT0 and BOOT1 in the correct combination according to your CPU model.

PROGRAMMING

  1. Select the Firmware File:

    • The firmware file should be in one of the following formats:
      • Intel Hex
      • Motorola S-Record
      • DfuSe (STMicroelectronics DFU format)
      • Raw Binary
  2. Set Writing Options:

    • You can select from the following options:
      • Erase only necessary pages
      • Unset readout protection if needed
      • Go CPU after programming
  3. Initiate Programming:

    • Press the "Load file to flash" button and wait for the operation to complete.

Additional Operations Available in the Application:

  • Erasing
  • Checking flash for blank
  • Comparing flash with file

You can select these operations via the appropriate menu items.

Tested Models:

The application has been tested on the following STM32 microcontroller models:

  • STM32F072
  • STM32F205
  • STM32F302
  • STM32F401
  • STM32F746
  • STM32G474
  • STM32L432

RESTRICTION OF USING

You can perform up to 25 firmware uploads completely free. After reaching this limit, you can purchase one of the following services:

  1. Additional 100 uploads
  2. Unlimited use of the application

StmDfuUsb Screenshots

  • StmDfuUsb Screenshot 0
  • StmDfuUsb Screenshot 1
  • StmDfuUsb Screenshot 2
  • StmDfuUsb Screenshot 3
Reviews
Post Comments