GD32W51x User Manual
68
ICACHE
CPU
BUSMATRIX
Control
CMD
ADDR
DATA
Control
CMD
ADDR
DATA
RTDEC
EXT Flash
SIP Flash
C
B
U
S
F
B
U
S
L
B
U
S
S
B
U
S
Register
QSPI
Register
FMC
Flash interface
QSPI REG
interface
QSPI XIP interface
(
SBUS
)
0x90000000
CBUS
FMC mode:0x08000000/
0x0C000000-SIP
QSPI mode:0x08000000/
0x0C000000-EXT
FMC REG
interface
2.4.
Function overview
2.4.1.
Flash memory architecture
For FMC mode, the flash memory consists of 2MB main flash organized into 512 pages with
4 KB and 256KB information block for the boot loader. Each page can be erased individually.
The structure of EXT flash depends on the specifics of the external flash. The following table
shows the details of flash organization in FMC mode.
Table 2-1.
GD32W51x base address and size for flash memory (FMC mode)
Block
Nam e
Address range
size(bytes)
Main flash block
(SIP Flash)
Page 0
0x0800 0000 - 0x0800 0FFF
(1)
4KB
0x0C00 0000 - 0x0C00 0FFF
(2)
Page 1
0x0800 1000 - 0x0800 1FFF
(1)
4KB
0x0C00 1000 - 0x0C00 1FFF
(2)
Page 2
0x0800 2000 - 0x0800 2FFF
(1)
4KB
0x0C00 2000 - 0x0C00 2FFF
(2)