GD32VF103 User Manual
32
2.
Flash memory controller (FMC)
2.1.
Overview
The flash memory controller, FMC, provides all the necessary functions for the on-chip flash
memory. There is no waiting time while CPU executes instructions stored in the flash. It also
provides page erase, mass erase, and word/half-word program operations for flash memory.
2.2.
Characteristics
Up to 128KB of on-chip flash memory for instruction and data.
No waiting time when CPU executes instructions.
The flash page size is 1KB for all series.
Word/half-word programming, page erase and mass erase operation.
16B option bytes block for user application requirements.
Option bytes are uploaded to the option byte control registers on every system reset.
Flash security protection to prevent illegal code/data access.
Page erase/program protection to prevent unexpected operation.
2.3.
Function overview
2.3.1.
Flash memory architecture
The flash memory consists of up to 128 KB main flash organized into 128 pages with 1 KB
capacity per page and a 18 KB Information Block for the Boot Loader. The main flash memory
contains a total of up to 128 pages which can be erased individually. The
address and size for flash memory
shows the details of flash organization.
Table 2-1. Base address and size for flash memory
Block
Name
Address Range
size
(bytes)
Main Flash Block
Page 0
0x0800 0000 - 0x0800 03FF
1KB
Page 1
0x0800 0400 - 0x0800 07FF
1KB
Page 2
0x0800 0800 - 0x0800 0BFF
1KB
…
…
…
Page 127
0x0801 FC00 - 0x0801 FFFF
1KB
Information Block
Boot loader area
0x1FFF B000- 0x1FFF F7FF
18KB
Option bytes Block
Option bytes
0x1FFF F800 - 0x1FFF F80F
16B