STMicroelectronics AN4065 STM32F0xx In-Application Programming Application Note

This document introduces the in-application programming (IAP) technology of the STM32F0xx microcontroller, and provides an example of reprogramming using the USART communication protocol. This technology allows firmware updates in the end product.


STMicroelectronics AN4065 STM32F0xx In-Application Programming Application Note - cover page
Brand
STMicroelectronics
Document type
Application Note
Language
English
Pages
13
File format
PDF
File size
184 KB
Published
07 August, 2012
Updated
28 September, 2023
MD5 checksum
3D547768342A1D9B4199760AB2C2C4DE

About this manual

The document describes how to implement firmware updates for STM32F0xx devices by programming an IAP driver into Flash memory via the Serial Wire Debug (SWD) interface. The IAP driver utilizes the Universal Synchronous Asynchronous Receiver Transmitter (USART) peripheral to communicate with a host PC running HyperTerminal or a compatible terminal program.

What's inside

  • IAP Overview
  • Principle
  • IAP Driver Description
  • Running the IAP Driver
  • HyperTerminal Configuration
  • Executing the IAP Driver
  • IAP Driver Menu
  • Download Image to Internal Flash
  • Upload Image from Internal Flash
  • Disable Write Protection

Specifications

Baud Rate Example115200 bps
Data Bits8
ParityNone
Stop Bits1
Flow ControlNone

Frequently asked questions

What protocol is used for data transfer in the IAP driver?

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

How does the user switch between the user application and IAP mode?

The user can press a push-button connected to a specific pin at reset; not pressing it switches to the user application.

What happens if data received during programming fails verification?

The system displays a 'Verification failed' error message if there is any discrepancy between RAM and Flash contents.

Download PDF (184 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →