GD32W51x User Manual
76
Nam e
Register m ap
[7:0]
:
SPC[7:0]
[15:0]
:
USER[15:0]
[25:16]
:
SECM0_EPAGE[9:0]
[15:0]
:
SECM0_SPA GE[9:0]
Secure mark configuration register 0
31
:
DMP0EN
[25:16]
:
DMP0_EPAGE[9:0]
Secure dedicated mark protection
[25:16]
:
WRP0_EPA GE[9:0]
[15:0]
:
WRP0_SPAGE[9:0]
Option byte write protection area
[25:16]
:
SECM1_EPAGE[9:0]
[15:0]
:
SECM1_SPA GE[9:0]
Secure mark configuration register 1
31
:
DMP1EN
[25:16]
:
DMP1_EPAGE[9:0]
Secure dedicated mark protection
[25:16]
:
WRP1_EPA GE[9:0]
[15:0]
:
WRP1_SPAGE[9:0]
Option byte write protection area
Note:
If there are option bytes in the chip, operate the registers in the table according to the
method of operating the option bytes. If there are no option bytes in the chip, operate the
registers in the table according to the method of operating registers.
Option bytes modify
To modify the user options value, follow the procedure below:
Unlock the FMC_CTL/FMC_SECCTL register if necessary.
Check the BUSY/SECBUSY bit in the FMC_STAT/FMC_SECSTAT register to confirm
that no flash memory operation is in progress (BUSY/SECBUSY equals to 0)
Unlock the option bytes operation bits in the FMC_CTL register if necessary.
Wait until the OBWEN bit is set in the FMC_CTL register.
Write the desired options value in the options registers.
Set the OBSTART bit in the FMC_CTL register.
Wait until all the operations have finished by checking the value of the BUSY/SECBUSY
bit in the FMC_STAT/FMC_SECSTAT register.
Set the OBRLD option bit or launch a system reset to start option bytes loading.
Option bytes error
Some of the option bytes field must respect specific rules before being updated with
new values.
1. TZEN option bit
Only when the Flash is in no protection state, the TZEN bit can be set to 1 to enabl
e Trustzone. Otherwise, the OBERR bit is set.
The TZEN bit must be cleared at the same time when the Flash security protection r
Содержание GD32W515 Series
Страница 1: ...GigaDevice Semiconductor Inc GD32W51x Arm Cortex M33 32 bit MCU User Manual Revision 1 0 Nov 2021 ...
Страница 66: ...GD32W51x User Manual 66 Bits Fields Descriptions 31 0 UNIQUE_ID 95 64 Unique device ID ...
Страница 389: ...GD32W51x User Manual 389 The FWDGT timeout can be more accurate by calibrating the IRC32K ...
Страница 504: ...GD32W51x User Manual 504 ...
Страница 710: ...GD32W51x User Manual 710 ...