STMicroelectronics AN3990 Firmware Upgrade Application Note

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.


STMicroelectronics AN3990 Firmware Upgrade Application Note - cover page
Brand
STMicroelectronics
Category
microcontrollers
Document type
Application Note
Language
English
Pages
14
File format
PDF
File size
204 KB
Published
06 August, 2012
Updated
28 September, 2023
MD5 checksum
13F1E9409ECE93CD9ED4F5A4A5002332

About this manual

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.

What's inside

  • Firmware upgrade overview
  • Source files
  • User button state time control
  • LEDs status
  • DOWNLOAD command
  • UPLOAD command
  • JUMP command

Frequently asked questions

What communication protocol is used for the firmware upgrade example?

The example uses USB Host mass storage.

Is a host computer required to perform the firmware upgrade?

No, the user only needs a Flash disk to upgrade the target STM32 device.

What happens if the user button is pressed for more than 3 seconds?

The UPLOAD command condition verification is signaled by the blinking state of the blue LED.

Download PDF (204 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →