This application facilitates STM32 CPU firmware updates via USB cable using the USB DFU protocol. Development leveraged STMicroelectronics documentation: AN2606 (STM32 microcontroller system memory boot mode) and AN3156 (USB DFU protocol in the STM32 bootloader).
Prerequisites: Your mobile device must support USB OTG.
Preparation:
- Connect the STM32 board to your mobile device using a USB OTG cable.
- Activate STM32 bootloader mode (refer to AN2606 for specific pin configurations based on your CPU model).
Programming:
- Select the firmware file (Intel HEX, Motorola S-Record, DfuSe, or raw binary formats are supported).
- Configure writing options: selective page erasure, readout protection disabling, and post-programming CPU execution.
- Initiate the firmware upload by pressing "Load file to flash."
Additional Features: The application also provides flash erasing, blank flash checking, and firmware comparison functionalities accessible through the menu.
Tested Microcontrollers: STM32F072, STM32F205, STM32F302, STM32F401, STM32F746, STM32G474, STM32L432.
Usage Restrictions: Up to 25 firmware uploads are free. Beyond this limit, you can purchase either 100 additional uploads or unlimited application usage.