Home > Apps >StmDfuUsb

StmDfuUsb

StmDfuUsb

Category

Size

Update

Tools

2.6 MB

Apr 29,2025

Application Description:

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

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 BOOT0 and BOOT1 pins in the correct combination according to your CPU model.

Programming

  1. Select the Firmware File: Choose the firmware file you wish to upload. The file should be in one of the following formats:

    • Intel HEX
    • Motorola S-Record
    • DfuSe (STMicroelectronics DFU format)
    • Raw binary
  2. Set Writing Options: Configure the writing options as needed. You can select from the following:

    • Erase only necessary pages
    • Unset readout protection if required
    • Go to CPU after programming
  3. Initiate Programming: Press the "Load file to flash" button and wait for the operation to complete.

Additional Operations

The application also supports the following operations, accessible via the menu:

  • Erasing
  • Checking flash for blank status
  • Comparing flash content with the file

Tested Models

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

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

Restrictions on Use

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

  1. An additional 100 uploads
  2. Unlimited use of the application
Screenshot
StmDfuUsb Screenshot 1
StmDfuUsb Screenshot 2
StmDfuUsb Screenshot 3
StmDfuUsb Screenshot 4
App Information
Version:

1.25

Size:

2.6 MB

OS:

Android 5.0+

Developer: Yaroslav Trymbach
Package Name

com.yatrim.stmdfuusb

Available on Google Pay
Reviews Post Comments