This document provides guidelines for creating an in-application programming (IAP) application using the USART feature of the STM32F40x/STM32F41x microcontrollers.
The document describes how to implement In-Application Programming (IAP) on STM32F4xx devices, allowing firmware updates via a communication protocol. The specific example provided utilizes the Universal Synchronous Asynchronous Receiver Transmitter (USART) peripheral for data transfer.
An IAP driver is detailed which includes source files for USART initialization, menu management, and Flash memory operations. The driver supports downloading binary files from a PC terminal using the YMODEM protocol, uploading internal Flash content, executing new programs, and managing write protection settings.
| Supported Microcontrollers | STM32F40x/STM32F41x |
|---|---|
| Communication Protocol Example | USART |
| Data Transfer Protocol | YMODEM |
| Baud Rate Example | 115200 bps |
The application note uses the USART as the example communication protocol.
The YMODEM protocol is used to receive and send data from/to the HyperTerminal application.
Pressing a push-button connected to a specific pin at reset launches the IAP driver.