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 (BOOT0 and BOOT1) based on your CPU model).
Programming:
- Select the firmware file (supported formats: Intel hex, Motorola S-Record, DfuSe, Raw binary).
- Configure writing options: selective page erasure, readout protection disabling, and post-programming CPU execution.
- Initiate the firmware upload by pressing "Load file to flash" and await completion.
Additional Features: The application offers flash erasure, blank check, and firmware comparison functionalities accessible via the menu.
Tested Microcontrollers: STM32F072, STM32F205, STM32F302, STM32F401, STM32F746, STM32G474, STM32L432.
Usage Restrictions: The application allows up to 25 free firmware uploads. Subsequent uploads require purchasing either 100 additional uploads or unlimited usage.