STMicroelectronics AN2557 STM32F10x In-Application Programming Using USART

This application note provides general guidelines for creating an IAP application. The application note describes how to use the USART protocol to run the IAP on an STM32F10x microcontroller running user firmware.


STMicroelectronics AN2557 STM32F10x In-Application Programming Using USART - cover page
Brand
STMicroelectronics
Category
microcontrollers
Document type
Application Note
Language
English
Pages
16
File format
PDF
File size
215 KB
Published
06 August, 2012
Updated
29 September, 2023
MD5 checksum
044CE5157F42B7E1D224AB8BD304EF58

About this manual

This document describes the In-Application Programming (IAP) feature for STM32F10x microcontrollers, allowing firmware updates via communication protocols like USART. It details the IAP driver components, including source files for downloading, uploading, and executing programs, as well as the YMODEM protocol used for data transfer.

The guide explains how to configure the HyperTerminal for communication, run the IAP driver, and navigate the driver menu to download images, upload memory contents, execute new programs, or disable write protection. It also covers specific implementation details for various STM32F10x device densities and evaluation boards.

What's inside

  • IAP Overview
  • IAP Driver Description
  • Running the IAP Driver
  • HyperTerminal Configuration
  • Downloading Image to Flash
  • Uploading Image from Flash
  • Executing New Program
  • Disabling Write Protection
  • IAP Implementation Summary
  • User Program Conditions

Frequently asked questions

What baud rate must be configured in HyperTerminal for the IAP driver?

The system clock frequency must allow a generated baud rate of 115200 bps.

How large are the data blocks sent via the YMODEM protocol?

The YMODEM protocol sends data in 1024-byte blocks.

What happens if the received image file is larger than available memory?

An error message stating 'Other error messages are also displayed when the image file size is greater than the allowed memory space' appears.

Download PDF (215 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →