Home Apps Tools StmDfuUsb
StmDfuUsb
StmDfuUsb
1.25
2.6 MB
Android 5.0+
Mar 19,2023
5.0

Application Description

Updating STM32 CPU Firmware via USB DFU Protocol

This application enables firmware updates for STM32 CPUs via USB cable using the USB DFU protocol. Its development 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

Prerequisites:

  • Your mobile device must support USB-OTG.

Preparation:

  1. Connect your STM32 board to your mobile device using a USB-OTG cable.
  2. Activate bootloader mode for your STM32. Refer to AN2606 for specific instructions. Generally, you need to set the BOOT0 and BOOT1 pins in the correct combination based on 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 the following options:

      • Erase only necessary pages
      • Unset readout protection (if needed)
      • Go to CPU after programming
  3. Press "Load file to flash" and wait for the operation to complete.

Additional Operations:

The application also offers the following operations:

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

You can select these operations from the appropriate menu options.

Supported Microcontrollers:

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

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

Usage Restrictions:

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

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

Screenshot

  • StmDfuUsb Screenshot 0
  • StmDfuUsb Screenshot 1
  • StmDfuUsb Screenshot 2
  • StmDfuUsb Screenshot 3