GD32W51x User Manual
69
Block
Nam e
Address range
size(bytes)
Page 511
0x081F F000 - 0x081F FFFF
(1)
4KB
0x0C1F F000 - 0x0C1F FFFF
(2)
Bootloader
normal
(3)
0x0BF4 0000 - 0x0BF4 5FFF
24KB
secure boot
(4)
0x0FF8 4000 - 0x0FF8 7FFF
16KB
secure region2
(5)
0x0FF4 E000 - 0x0FF7 FFFF
200KB
GSSA
(4)
0x0FF8 0000 - 0x0FF8 3FFF
16KB
In QSPI mode, the structure of EXT flash depends on the specifics of the external flash. The
following table shows the details of flash organization in QSPI mode.
Table 2-2.
GD32W51x base address and size for flash memory (QSPI mode)
Block
Nam e
Address range
size(bytes)
Main flash block
(EXT Flash)
-
0x0800 0000 - 0x0A00 0000
(1)
32MB
0x0C00 0000 - 0x0E00 0000
(2)
Bootloader
normal
(3)
0x0BF4 0000 - 0x0BF4 5FFF
24KB
secure boot
(4)
0x0FF8 4000 - 0x0FF8 7FFF
16KB
secure region2
(5)
0x0FF4 E000 - 0x0FF7 FFFF
200KB
GSSA
(4)
0x0FF8 0000 - 0x0FF8 3FFF
16KB
Note:
(1) TZEN = 0. (2)TZEN= 1. (3)When the TZEN bit is reset, user can choose to boot
from this area. (4) When the TZEN bit is set, user can choose to boot from this area. Select
secure boot or GSSA please refer to
. (5) When the TZEN bit is set or
reset, secure region 2 can be accessed by other bootloaders, but booting from this area is
not supported. (6) The bootloader block cannot be programmed or erased by user.
2.4.2.
Read operations
The flash can be addressed directly as a common memory space.
RTDEC function
RTDEC function means that when reading data from Flash, it can be decrypted in real time
according to the EFUSE module's configuration of AES algorithm. (Data written to Flash is
encrypted already). There have on-time decrypt function when AESEN bit in
EFUSE_USER_CTL register is set. This is implement by hardware on-time and invisible by
software. The AES key use AESKEY[31:0] bits in EFUSE_AES_KEY to set. The initial vector
is
Address[23
:
0] / 16.
In FMC mode, fetch data use SIP Flash. Start address is 0x08000000 (non-secure) /
0x0C000000 (secure). Size is 2MB. It can support RTDEC function.