GD32W51x User Manual
255
NOTE:
If during a burst, any of the beats of the burst tries to transfer to/from an illegal address,
the module masks the rest of the burst, and forwards IDLE transfers on the master port.
9.3.3.
TrustZone® security privilege controller (TZSPC)
The TZSPC is composed of a configurable set of registers defines which peripheral is secured
and/or privileged, and it also controls the non-secure area size for the mark memory
peripheral controller (MMPC).
Peripherals secure and privilege state are configured
through:
TZPCU_TZSPC_SAM_CFGx registers to control PTZPPC/HTZPPC firewall stubs for
the securable peripherals.
TZPCU_TZSPC_PAM_CFGx registers to control PTZPPC/HTZPPC firewall stubs for
the privileged peripherals.
TZPCU_TZSPC_TZMMPCx_NSMy registers to control TZMMPCx firewall stubs for the
securable mark external memory.
TZPCU_TZSPC_DBG_CFG registers to control MCU debug configuration.
The privilege configuration bit of given peripheral can be modified by a secure-privilege
transaction when the peripheral has been configured as secure, otherwise a privileged
transaction (non-secure) is sufficient. The definition of these privilege attributes is available
even when TZEN = 0.
The secure configuration bit of given peripheral can be modified only with a secure-privilege
transaction if the peripheral has been configured as privilege, otherwise a secure transaction
(non-privileged) is sufficient.
For external memories SQPI_PSRAM (128MB) or QSPI_FLASH (128MB), they are marked
memory, when TZEN=1, after reset they are all secure, the non-secure area is defined
through:
The TZPCU_TZSPC_TZMMPCx_NSMy register NSMy_SADD[13:0] defines the start
position of the y-h non-secure area on external memory;
The TZPCU_TZSPC_TZMMPCx_NSMy register NSMy_LEN[14:0] defines the length of
the y-th non-secure area on external memory;
Note
: x represents which kind external memory interface, y represents number of regions of
the target external memory interface (such as SQPI_PSRAM). The total area considered as
non-secure is the sum of the independent ones. An overlap of one section over the other one
has no specific effect.
describes the characteristics of the available TZMMPCx
Table 9-2. TZMMPCx
MPC
Region
Num ber of regions(y)
Kind of m em ory
interface
TZMMPC0 (extern memory 0)
Non secure mark
4 (0~3)
QSPI_flash