EasyManua.ls Logo

ST STM32F103xx series User Manual

ST STM32F103xx series
31 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #2 background imageLoading...
Page #2 background image
Contents PM0075
2/31 Doc ID 17863 Rev 1
Contents
1 Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.1 Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.2 Flash module organization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2 Reading/programming the embedded Flash memory . . . . . . . . . . . . . 11
2.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.2 Read operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.2.1 Instruction fetch . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.2.2 D-Code interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.2.3 Flash access controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.3 Flash program and erase controller (FPEC) . . . . . . . . . . . . . . . . . . . . . . 12
2.3.1 Key values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.3.2 Unlocking the Flash memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.3.3 Main Flash memory programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
2.3.4 Flash memory erase . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.3.5 Option byte programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2.4 Protections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
2.4.1 Read protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
2.4.2 Write protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
2.4.3 Option byte block write protection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
2.5 Option byte description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
3 Register descriptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
3.1 Flash access control register (FLASH_ACR) . . . . . . . . . . . . . . . . . . . . . . 23
3.2 FPEC key register (FLASH_KEYR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
3.3 Flash OPTKEY register (FLASH_OPTKEYR) . . . . . . . . . . . . . . . . . . . . . 24
3.4 Flash status register (FLASH_SR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
3.5 Flash control register (FLASH_CR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
3.6 Flash address register (FLASH_AR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
3.7 Option byte register (FLASH_OBR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
3.8 Write protection register (FLASH_WRPR) . . . . . . . . . . . . . . . . . . . . . . . . 28
3.9 Flash register map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
4 Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
Question and Answer IconNeed help?

Do you have a question about the ST STM32F103xx series and is the answer not in the manual?

ST STM32F103xx series Specifications

General IconGeneral
SeriesSTM32F103xx
CoreARM Cortex-M3
Operating FrequencyUp to 72 MHz
GPIO PinsUp to 80
Operating Voltage2.0 V to 3.6 V
ADC12-bit
Communication InterfacesUSART, SPI, I2C, CAN, USB
Operating Temperature-40°C to +85°C
PackageBGA

Summary

STM32F10xxx Flash Memory Programming and Erasing

Flash Memory Read Operations and Prefetching

Details how to read data from Flash memory, including instruction fetches and prefetch buffer.

Flash Program and Erase Controller (FPEC)

Covers the FPEC block, its registers, and key values for memory operations.

Unlocking Flash Memory and Main Programming

Explains the sequences for unlocking FPEC and the process of programming main Flash memory.

Flash Memory Erase Procedures

Details methods for erasing Flash memory, including page and mass erase operations.

STM32F10xxx Option Byte Programming

Describes the specific procedure for programming the device's option bytes.

Flash Memory Protection Mechanisms

Covers read protection, unprotection, and write protection for Flash memory.

STM32F10xxx Flash Interface Register Details

Related product manuals