GD32W51x User Manual
413
Configuration bit in
RTC_SPM_CTL
Write in secure m ode
Read in secure m ode
Read in non-secure
m ode
TAMPSECP=0
Allow ed access
RTC_TAMP register,
except for the AOT bit;
TPxFC in RTC_STATC,
TPxF in RTC_STAT,
TPxSMF in
RTC_SMI_STAT;
TAMPSECP in the
RTC_SPM_CTL.
Allow ed access
RTC_TAMP register,
except for the AOT bit;
TPxFC in RTC_STATC,
TPxF in RTC_STAT;
TPxSMF in
RTC_SMI_STAT
By default, after the backup domain is powered on and reset, except for the RTC_SPM_CTL
register, all other RTC registers can be read and written in secure and non-secure modes.
Prohibit non-secure access to secure-protected registers, when non-secure access, no bus
error will be generated. When the register is write-protected, the non-secure access to write
register is invalid. When the register is read-protected, the non-secure access to read register
value is 0. When the register is globally protected, TZIAC will generate a message of flag or
interrupt. When only few bits of the register are protected, TZIAC will not generate any
messages (except backup registers protection).
After the system is reset, the RTC protection related configuration unchanged. As long as one
of the functions of the RTC is configured to be secured, the reset and clock control of the RTC
are also secure in the RCU.
16.3.18.
RTC privilege protection
The rules for accessing RTC registers in secure and nonsecure protection modes are shown
in
Table 16-3. RTC register privilege access rules.
Table 16-3. RTC register privilege access rules
Access
m ode
Read
Write
Privilege access
Unprivilege access
Privilege access Unprivilege access
RTCPRIP =
0
Allow ed(
except for
the backup
registers
)
Allow ed access
RTC_SPM_CTL,
RTC_PPM_CTL,
RTC_TIME,
RTC_DATE,
RTC_SS, RTC_PSC
and RTC_COSC
register
Allow ed(
except for
the backup
registers
)
Not allow ed
RTCPRIP =
1
By configuring the INITPRIP, CALCPRIP, TSPRIP, WUTPRIP, ALR1PRV, TAMPPRIP
or ALRM0PRIP bit in RTC_PPM_CTL register, refer to