STMicroelectronics AN3965 STM32F40x/STM32F41x In-Application Programming Using USART Application Note

This document provides guidelines for creating an in-application programming (IAP) application using the USART feature of the STM32F40x/STM32F41x microcontrollers.


STMicroelectronics AN3965 STM32F40x/STM32F41x In-Application Programming Using USART Application Note - cover page
Brand
STMicroelectronics
Category
microcontrollers
Document type
Application Note
Language
English
Pages
13
File format
PDF
File size
242 KB
Published
07 August, 2012
Updated
28 September, 2023
MD5 checksum
2CC29824B7AED6B99284CD1B74F44501

About this manual

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.

What's inside

  • Introduction
  • IAP Overview
  • Running the IAP Driver
  • HyperTerminal Configuration
  • Executing the IAP Driver
  • IAP Driver Menu
  • Download Image to Flash
  • Upload Image from Flash
  • Execute New Program
  • Disabling Write Protection

Specifications

Supported MicrocontrollersSTM32F40x/STM32F41x
Communication Protocol ExampleUSART
Data Transfer ProtocolYMODEM
Baud Rate Example115200 bps

Frequently asked questions

What communication protocol is used for the IAP example?

The application note uses the USART as the example communication protocol.

Which data transfer protocol does the driver support?

The YMODEM protocol is used to receive and send data from/to the HyperTerminal application.

How can a user enter IAP mode?

Pressing a push-button connected to a specific pin at reset launches the IAP driver.

Download PDF (242 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →