GD32W51x User Manual
47
Pre-defined
Regions
Bus
Secure
boundary address
Non-Secure
boundary address
Peripherals
0x5000 0400 - 0x5000 07FF
0x4000 0400 - 0x4000 07FF
TIMER2
0x5000 0000 - 0x5000 03FF
0x4000 0000 - 0x4000 03FF
TIMER1
SRAM
AHB
0x3007 0000 - 0x3FFF FFFF
0x2007 0000 - 0x2FFF FFFF
Reserv ed
0x3004 0000 - 0x2006 FFFF
0x2004 0000 - 0x2006 FFFF
SRAM3 (192KB)
0x3002 0000 - 0x3003 FFFF
0x2002 0000 - 0x2003 FFFF
SRAM2 (128KB)
0x3001 0000 - 0x3001 FFFF
0x2001 0000 - 0x2001 FFFF
SRAM1 (64KB)
0x3000 0000 - 0x3000 FFFF
0x2000 0000 - 0x2000 FFFF
SRAM0 (64KB)
Code
AHB
-
0x1000 0000 - 0x1FFF FFFF
External memories remap
-
0x0BFF 8000 - 0x0BFF FFFF
Reserv ed
0x0FF8 8000 - 0x0FFF FFFF
0x0BF8 0000
– 0x0BFF 7FFF
Reserv ed
0x0FF8 4000
– 0x0FF8 7FFF
-
ROM(16KB)
0x0FF8 0000
– 0x0FF8 3FFF
-
GSSA(16KB)
0x0FF4 E000
– 0x0FF7 FFFF 0x0BF4 E000 – 0x0BF7 FFFF
ROM(200KB)
-
0x0BF4 6000
– 0x0BF4 CFFF
Reserv ed
-
0x0BF4 0000 - 0x0BF4 5FFF
ROM(24KB)
0x0E07 0000 - 0x0FF4 DFFF
0x0A07 0000 - 0x0BF3 FFFF
Reserv ed
0x0E04 0000 - 0x0E06 FFFF
0x0A04 0000 - 0x0A06 FFFF
SRAM3 (192KB)
0x0E02 0000 - 0x0E03 FFFF
0x0A02 0000 - 0x0A03 FFFF
SRAM2 (128KB)
0x0E01 0000 - 0x0E01 FFFF
0x0A01 0000 - 0x0A01 FFFF
SRAM1 (64KB)
0x0E00 0000 - 0x0E00 FFFF
0x0A00 0000 - 0x0A00 FFFF
SRAM0 (64KB)
0x0C20 0000 - 0x0DFF FFFF
0x0820 0000 - 0x09FF FFFF
Reserv ed
0x0C00 0000 - 0x0C1F FFFF
0x0800 0000 - 0x081F FFFF
Flash memory
-
0x0000 0000 - 0x07FF FFFF
External memories remap
1.4.1.
On-chip SRAM memory
The GD32W51x series of devices contain up to 448 KB of on-chip SRAM (SRAM0 64 KB,
SRAM1 64 KB, SRAM2 128 KB, SRAM3 192 KB) which starts at: the non-secure address
0x2000 0000 and the secure address 0x3000 0000. It supports byte, half-word (16 bits), and
word (32 bits) accesses.
When the TrustZone security is enabled, all SRAMs are secure after reset. The SRAM can
be programmed as non-secure with a block granularity, using TZBMPC (TrustZone block-
based memory protection controller) in TZPCU controller. The granularity of SRAM
secure/non-secure block-based is a page of 256 bytes.
1.4.2.
SRAM1 Write protection
The SRAM1 can be write protected with a page granularity of 1 Kbyte.
The write protection can be enabled in SYSCFG SRAM1 write protection register
(SYSCFG_SWPRx (x=0, 1)
) in the SYSCFG block. This is a register with write ‘1’ once