GD32W51x User Manual
48
mechanism, which means by writing ‘1’ on a bit it will setup the write protection for that page
of SRAM and it can be removed/cleared by a system reset only.
1.4.3.
SRAM1 security protection
The SRAM1 is protected with the security protection (SPC).
1.4.4.
SRAM1 Erase
The SRAM1 erase can also be requested by software by setting the bit SRAM1ERS in the
SYSCFG SRAM1 control and status register (SYSCFG_SCS).
The SRAM1 can be erased with a
system reset using the option bit SRAM1_RST in the user
option byte.
The SRAM1 is also erased by a Backup domain reset, any tamper detection or setting the
BKERASE bit in the RTC_TAMP register.
1.4.5.
On-chip flash memory overview
The devices provide up to 2048 KB of on-chip flash memory and the flash memory organized
into 512 pages with 4 KB and 256KB information block for the boot loader.
Refer to
Chapter for more details.
1.5.
Boot configuration
At startup, a BOOT0 pin, a BOOT1 pin are used to select the boot memory address .
The BOOT0 value may come from the BOOT0 pin or from the value of SWBOOT0 bit in the
EFUSE_CTL register to free the GPIO pad if needed.
The BOOT1 value may come from the PA14 pin or from the value of SWBOOT1 bit in the
EFUSE_CTL register to free the GPIO pad if needed.
Table 1-6. BOOT0 modes
SWBOOT0
EFBOOT0
BOOT0 PC8
pin
BOOT0
0
-
0
0
0
-
1
1
1
0
-
0
1
1
-
1
Table 1-7. BOOT1 modes