English
Language : 

PM0068 Datasheet, PDF (1/31 Pages) STMicroelectronics – STM32F10xxx XL-density Flash programming
PM0068
Programming manual
STM32F10xxx XL-density
Flash programming
Introduction
This programming manual describes how to program the STM32F101xF/G and
STM32F103xF/G Flash memory of XL-density microcontrollers. For convenience, these will
be referred to as STM32F10xFG in the rest of this document unless otherwise specified.
The STM32F10xFG embedded Flash memory can be programmed using in-circuit
programming or in-application programming.
The in-circuit programming (ICP) method is used to update the entire contents of the
Flash memory, using the JTAG, SWD protocol or the boot loader to load the user application
into the microcontroller. ICP offers quick and efficient design iterations and eliminates
unnecessary package handling or socketing of devices.
In contrast to the ICP method, in-application programming (IAP) can use any
communication interface supported by the microcontroller (I/Os, USB, CAN, UART, I2C, SPI,
etc.) to download programming data into memory. IAP allows the user to re-program the
Flash memory while the application is running. Nevertheless, part of the application has to
have been previously programmed in the Flash memory using ICP.
The Flash interface implements instruction access and data access based on the AHB
protocol. It implements a prefetch buffer that speeds up CPU code execution. It also
implements the logic necessary to carry out Flash memory operations (Program/Erase).
Program/Erase operations can be performed over the whole product voltage range.
Read/Write protections and option bytes are also implemented.
January 2012
Doc ID 17100 Rev 2
1/31
www.st.com