GD32W51x User Manual
161
Configuration bit in
RCU_SECPC FG
Corresponding
register
Secured bit
RCU_INT
PLLDIGSTBIC, PLLDIGSTBIE,
PLLDIGSTBIF
RMVFSECP=1
RCU_RSTSCK
RSTFC
BKPSECP=1
RCU_BDCTL
BKPRST
PLLI2SSECP=1
RCU_PLLCFG2
PLLI2SN[6:0], PLLI2SPSC[2:0], PLLI2SDIV[5:0]
RCU_CTL
PLLI2SSTB, PLLI2SEN
RCU_ADDCTL
PLLFI2SDIV
RCU_INT
PLLI2SSTBIC, PLLI2SSTBIE,
PLLI2SSTBIF
When a certain bit register in RCU_SECPCFG is set, some RCU registers will have security
attributes, and the access to the secure and non-secure bits in the register will follow the rules
Table 6-5. RCU secure-bit or nonsecure-bit access rules
Table 6-5. RCU secure-bit or nonsecure-bit access rules
Access m ode
Read
Write
Secure access Nonsecure access Secure access Nonsecure access
Secure-bit
allow ed
RAZ( no illegal
access event )
allow ed
WI( no illegal access
event )
Nonsecure-bit
allow ed
allow ed
allow ed
allow ed
RCU_SECP_CFG
allow ed
RAZ(generates an
illegal access
event)
(1)
allow ed
WI(generates an
illegal access event)
(1)
NOTE:
(1) An illegal access interrupt is generated if the RCU illegal access interrupt is
enabled in the TZIAC_INTEN2 register.
6.4.
RCU privilege protection
The rules for accessing RCU registers in privileged and non-privileged protection modes are
shown in
Table 6-6. RCU register privileg and unprivileg access rules
Table 6-6. RCU register privileg and unprivileg access rules
Access
m ode
Read
Write
Priviledg access
Unprivileg access
Priviledg access
Unprivileg access
RCUPRIP =
0
allow ed
allow ed(expect
RCUPRIP bit in
RCU_CTL
allow ed
allow ed(expect
RCUPRIP bit in
RCU_CTL)
RCUPRIP =
1
allow ed(except
RCU_AHBxSEC P_
STAT,RCU_A PBx_
SECP_STA T, RCU_
RAZ
allow ed
WI