ST AN2475 Application Note

This application note, with UART as an example, provides general guidelines for creating an IAP application using two different methods: the first one is based on the Ymodem protocol and the second one is based on a customized UART protocol using the free Flash Loader utility provided by ST.


ST AN2475 Application Note - cover page
Brand
STMicroelectronics
Category
microcontrollers
Document type
Application Note
Language
English
Pages
37
File format
PDF
File size
1.2 MB
Published
07 August, 2012
Updated
30 September, 2023
MD5 checksum
2441C0D2C574C0DE8C476B8480412BAE

About this manual

This document outlines guidelines for creating an In-Application Programming (IAP) application for the STR91xFAxxx family of microcontrollers. It details two methods for reprogramming the MCU's embedded Flash memory while the system is installed: one based on the Ymodem protocol and another using a customized UART protocol with the ST Flash Loader utility.

The note provides specific instructions on hardware configuration, such as remapping Flash banks and triggering execution via a push button. It includes step-by-step procedures for downloading firmware images to internal Flash, verifying data integrity, and executing new programs, along with descriptions of the IAP driver code structure.

What's inside

  • IAP overview
  • IAP using the Ymodem protocol
  • Running the IAP driver
  • Hyperterminal configuration
  • IAP driver menu
  • IAP using the ST Flash loader
  • Command set description
  • Software remapping and user application interrupts
  • IAP implementation summary
  • Revision history

Specifications

IAP Driver Code Size (Ymodem)approximately 7.5K
IAP Driver Code Size (Flash Loader)approximately 6 Kbytes
UART Baud Rate Example115200 bps

Frequently asked questions

What communication protocol is used for IAP in this document?

This application note uses UART as the example communication protocol.

How can the execution of the IAP driver be triggered?

Execution is triggered by pressing a push button connected to pin 4 of port 7 at reset.

What happens if there is a mismatch between RAM and Flash contents?

The error message 'Verification failed' is displayed in the HyperTerminal window.

Download PDF (1.2 MB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →