GD32W51x User Manual
416
Configuration bit
in RTC_PPM_CTL
Write in privilege m ode Read in privilege m ode
Read in non-privilege
m ode
TAMPPRIP in RTC_
RTC_PPM_CTL.
By default, after the backup domain is powered on and reset, except for the RTC_PPM_CTL
register, all other RTC registers can be read and written in privilege and unprivilege modes.
After the system is reset, the RTC protection related configuration unchanged.
Prohibit unprivileged access to privileged -protected registers, when unprivileged access, no
bus error will be generated. When the register is write-protected, the unprivileged access to
write register is invalid. When the register is read-protected, the the unprivileged access to
read register value is 0.
16.3.19.
RTC backup registers protection
The security protection status of the backup domain register is configured through bits
BKPRWSECP[7:0] and BKPWSECP[7:0] in RTC_SPM_CTL register. Configure protection
zone A through BKPRWSECP[7:0] and BKPRWPRIP, configure protection zone B through
BKPRWSECP[7:0], BKPWSECP[7:0] and BKPWPRIP. The backup domain registers security
protection configuration is shown in
Figure 16-2. Backup registers secure protections
.
Figure 16-2. Backup registers secure protections configuration
Read/Write non-
secure
Protected range A
RTC_BKPe
(1)
RTC_BKPm
(m=BKPWSECP)
RTC_BKPn
(n=BKPWSECP-1)
RTC_BKP0
Protected range B
Protected range C
Read non-secure
Write secure
Read/Write secure
RTC_BKPs
(s=BKPRWSECP)
RTC_BKPt
(t=BKPRWSECP-1)
NOTE
: (1) e represents the index value of the last backup register
When Trustzone is enabled, the BKPWPRIP and BKPRWPRIP bits in the RTC_PPM_CTL
register can only be written via secure access. When Trustzone is disabled,
BKPRWSECP[7:0] and BKPWSECP[7:0] in RTC_SPM_CTL register can be read and written