StmDfuUsb

StmDfuUsb

Tools 2.6 MB by Yaroslav Trymbach 1.25 5.0 Jan 25,2025
Download
Application Description

This application facilitates STM32 microcontroller firmware updates via USB cable using the USB DFU protocol. It leverages STMicroelectronics documentation (AN2606 and AN3156) for STM32 boot modes and the USB DFU protocol.

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 the STM32 bootloader mode (refer to AN2606 for specific instructions based on your CPU model; this typically involves configuring BOOT0 and BOOT1 pins).

Programming:

  1. Select the firmware file (.hex, .srec, .dfu, or raw binary).
  2. Configure options: selective page erasure, readout protection disabling (if needed), and automatic CPU execution post-programming.
  3. Click "Load file to flash" and await completion.

Additional Features:

The application also offers:

  • Flash erasure
  • Flash blank check
  • Flash comparison against the selected file

These functions are accessible via the application menu.

Tested Microcontroller Models:

STM32F072, STM32F205, STM32F302, STM32F401, STM32F746, STM32G474, STM32L432

Usage Restrictions:

The application allows up to 25 free firmware uploads. Beyond this limit, you can purchase one of two upgrade options:

  1. 100 additional uploads
  2. Unlimited application usage

Screenshot

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