STMicroelectronics AN3078 STM32F10x IAP over I2C Application Note

This application note describes how to perform in-application programming using the STM32F10x’s I2C peripheral


STMicroelectronics AN3078 STM32F10x IAP over I2C Application Note - cover page
Brand
STMicroelectronics
Category
microcontrollers
Document type
Application Note
Language
English
Pages
21
File format
PDF
File size
671 KB
Published
07 August, 2012
Updated
30 September, 2023
Model
AN307
MD5 checksum
C722264D3640595A1F140B076A401435

About this manual

The document describes how to perform in-application programming (IAP) on STM32F10x microcontrollers via their I2C interface. It outlines the principle of loading firmware from a host device into the target's Flash memory and executing it.

Two methods for sending IAP commands are detailed: using an Aardvark tool as a host adapter or using another STM32F10x microcontroller acting as a bridge between a PC and the target. The note covers specific IAP commands such as Read, Write, Erase Page, Erase User Space Memory, and Go To User Code.

What's inside

  • IAP overview
  • User program conditions
  • Global flowchart
  • Read command
  • Write command
  • Erase page command
  • Erase user space memory command
  • Go to user code command
  • Sending IAP commands using Aardvark
  • Sending IAP commands using STM32 bridge

Frequently asked questions

What is the address range for the IAP application?

The IAP application is loaded from the Flash memory base address (0x0800 0000) to the 0x0800 OFFF address.

Where should the user application be loaded?

The user application must be loaded from the 0x0800 1000 address to the top Flash memory address.

Download PDF (671 KB)

More STMicroelectronics Manuals


View all STMicroelectronics manuals →