This document provides guidelines for upgrading the firmware of the STM32F4DISCOVERY board using a USB key. The STM32F4 series microcontroller can run user-specific applications to update the firmware of the embedded Flash memory. This application note demonstrates the advantages of using USB Host mass storage for firmware upgrade and the requirements for the software and hardware.
This document provides guidelines for creating a firmware upgrade application for the STM32F4DISCOVERY board. It details a standalone solution where the microcontroller uses a USB Host mass storage interface to download new firmware from a flash disk or upload the current firmware back to the disk, eliminating the need for a host computer during the process.
The application utilizes the STM32 USB On-The-Go (OTG) Host and device library. It supports three main commands: DOWNLOAD to transfer a binary file to internal flash, UPLOAD to save the internal flash content to a file, and JUMP to execute the newly loaded user application. The process is controlled by a user button and indicated by the status of the board's LEDs.
The example uses USB Host mass storage.
No, the user only needs a Flash disk to upgrade the target STM32 device.
The UPLOAD command condition verification is signaled by the blinking state of the blue LED.