5. Global TrustZone® controller (GTZC)

5.1 Introduction

This section describes the global TrustZone controller (GTZC) block that contains the following sub-blocks:

These sub-blocks are used to configure TrustZone system security in a product having bus agents with programmable-security and privileged attributes such as:

5.2 GTZC main features

The GTZC main features are listed below:

GTZC TrustZone system architecture

The Armv8-M supports security per TrustZone-M model with isolation between:

The TrustZone architecture is extended beyond AHB and Armv8-M with:

AHB and APB peripherals can be categorized as:

AHB securable masters can be configured in the TZSC to be secure/nonsecure and/or privileged/unprivileged.

Application information

The TZSC, MPCBB, and TZIC can be used in one of the following ways:

The Armv8-M security architecture with secure, securable, and TrustZone-aware peripherals is shown in Figure 15.

Figure 15. GTZC in Armv8-M subsystem block diagram

Block diagram of the GTZC in Armv8-M subsystem showing connections between Cortex-M33, AHB masters, AHB bus, AHB2/APB bridge with Sec/priv gate, GTZCx (containing TZIC, MPCBBx, TZSC), internal SRAM blocks, MPCWMx, external memories, AHB-PPC stub, Crypto (AES), and securable peripherals (UART, SPI, Timer).

MSv63637V1

Block diagram of the GTZC in Armv8-M subsystem showing connections between Cortex-M33, AHB masters, AHB bus, AHB2/APB bridge with Sec/priv gate, GTZCx (containing TZIC, MPCBBx, TZSC), internal SRAM blocks, MPCWMx, external memories, AHB-PPC stub, Crypto (AES), and securable peripherals (UART, SPI, Timer).

5.3 GTZC implementation

The STM32H5E4/5F4 and STM32H5E5/5F5 devices embed one instance of GTZC.

Table 23. GTZC features

GTZC sub-blocksGTZC1
TZSCX
TZICX
MPCBB sub-block (number of MPCBB)MPCBB1/2/3/4/5

Table 24 shows the address offset of GTZC sub-blocks versus GTZC base address (refer to Section 2.3 for GTZC1 base address).

Table 24. GTZC1 sub-block address offset
GTZC1 sub-blockAddress offset
GTZC1_TZSC0x0
GTZC1_TZIC0x400
GTZC1_MPCBB10x800
GTZC1_MPCBB20xC00
GTZC1_MPCBB30x1000
GTZC1_MPCBB40x1400
GTZC1_MPCBB50x1800

Table 25 describes the characteristics of the available MPCWM.

Table 25. MPCWM resource assignment
GTZCMPCTarget memory interfaceNumber of sec/nonsec and priv/unpriv regionsWatermark granularity (bytes)
GTZC1MPCWM1OCTOSPI12128 K
MPCWM2FMC_NOR bank2128 K
MPCWM3FMC_NAND bank1128 K
FMC_SDRAM bank 11128 K
MPCWM4BKPSRAM132
FMC_SDRAM_bank 21128 K
MPCWM5OCTOSPI22128 K
Table 26. MPCWM3 and MPCWM4 (subregions A and B)
GTZMPCTarget memory interfaceSubregion
GTZC1MPCWM3FMC_NAND bankA
FMC_SDRAM bank 1B
MPCWM4BKPSRAMA
FMC_SDRAM bank 2B

Table 27 describes the characteristics of the available MPCBB.

Table 27. MPCBB resource assignment

GTZCMPCResourceMemory size (Kbytes)Block size (bytes)Number of blocksNumber of super-blocks
GTZC1MPCBB1SRAM125651251216
MPCBB2SRAM21282568
MPCBB3SRAM338476824
MPCBB4SRAM438476824
MPCBB5SRAM538476824

5.4 GTZC functional description

5.4.1 GTZC block diagram

Figure 16 describes the combined feature of TZSC, MPCBB, and TZIC. Each sub-block is controlled by its own AHB configuration port.

The TZSC defines which peripheral is secure and/or privileged. The privileged configuration bit of a peripheral can be modified by a secure privileged transaction when the peripheral is configured as secure. Otherwise, a privileged transaction (nonsecure) is sufficient.

On the opposite, the secure configuration bit of a peripheral can be modified only with a secure privileged transaction if the peripheral is configured as privileged. Otherwise, a secure transaction (unprivileged) is sufficient.

The secure configuration bit of a given ram block can be modified only with a secure privileged transaction if the same RAM block is configured as privileged. Otherwise, a secure transaction (unprivileged) is sufficient.

The TZIC gathers illegal events generated within the system when an illegal access is detected. TZIC can then generate a secure interrupt towards the CPU if needed.

Figure 16. GTZC block diagram Figure 16. GTZC block diagram. The diagram illustrates the GTZC architecture containing TZSC (with SECCFGR, PRIVCFGR, MPCWMxzCFGR, MPCWMxzR), MPCBB (with CFGLOCK, SECCFGR, PRIVCFGR), and TZIC (with IER, SR, FCR). AHB buses connect to these modules. TZEN (from option bytes) enters TZSC. Outputs include 'To peripherals', 'To external memories and backup SRAM', 'To internal SRAMs' (each with Secure/nonsecure and Privileged/unprivileged lines), and 'GTZC (global ILA interrupt to NVIC)'. TZSC_ILA_event, MPCBB_ILA_event, and TZIC_ILA_event are connected, along with N x ILA_event (from peripherals) to TZIC. MSv63638V1.
Figure 16. GTZC block diagram. The diagram illustrates the GTZC architecture containing TZSC (with SECCFGR, PRIVCFGR, MPCWMxzCFGR, MPCWMxzR), MPCBB (with CFGLOCK, SECCFGR, PRIVCFGR), and TZIC (with IER, SR, FCR). AHB buses connect to these modules. TZEN (from option bytes) enters TZSC. Outputs include 'To peripherals', 'To external memories and backup SRAM', 'To internal SRAMs' (each with Secure/nonsecure and Privileged/unprivileged lines), and 'GTZC (global ILA interrupt to NVIC)'. TZSC_ILA_event, MPCBB_ILA_event, and TZIC_ILA_event are connected, along with N x ILA_event (from peripherals) to TZIC. MSv63638V1.

5.4.2 Illegal access definition

Three different types of illegal access exist:

Any nonsecure transaction trying to write a secure resource is considered as illegal, hence the addressed resource generates an illegal access interrupt for illegal write access and a bus error for illegal fetch access. There are some exceptions on secure and privileged configuration registers: these latter ones authorize nonsecure read access to secure registers (see GTZC1_TZSC_SECCFGRx and GTZC1_TZSC_PRIVCFGRx).

Any secure transaction trying to access nonsecure block in internal block-based SRAM or watermarked memory is considered as illegal.

A correct TZIC setting allows the capture of the associated event and then generates the GTZC_IRQn interrupt to the NVIC. This applies for read, write, and execute access.

Concerning the MPCBB controller, there is an option to ignore secure data read/write access on nonsecure SRAM blocks, by setting the SRWILADIS bit in the GTZC1_MPCBBz_CR register. Secure read and write data transactions are then

allowed on nonsecure SRAM blocks, while secure execution access remains not allowed.

Any secure execute transaction trying to access a nonsecure peripheral register is considered as illegal and generate a bus error.

Any unprivileged transaction trying to access a privileged resource is considered as illegal. There is no illegal access event generated for illegal read and write access. The addressed resource follows a silent-fail behavior, returning all zero data for read and ignoring any write. No bus error is generated. A bus error is generated when any unprivileged execute transaction tries to access a privileged memory.

5.4.3 TrustZone security controller (TZSC)

The TZSC is composed of a configurable set of registers, providing the following features:

A control register for each subregion can be used to enable/disable the watermark memory protection controller as well as defining the right attributes of each subregion.

Figure 17. Watermark memory protection controller (region x/subregions A and B)

Diagram of Watermark memory protection controller showing region x in secure privileged by default, with subregions A and B defined by start and length registers.

The diagram illustrates the memory protection configuration for a region 'x'. At the top, it states 'Region x in secure privileged by default'. The memory space is divided into several horizontal segments with different security and privilege attributes:

On the right side, arrows point to the boundaries of Sub-region B and Sub-region A. The reference code 'MSv63635V1' is located in the bottom right corner of the diagram area.

Diagram of Watermark memory protection controller showing region x in secure privileged by default, with subregions A and B defined by start and length registers.

In Figure 17, region x represents the external memory or backup SRAM region (such as FMC bank, OCTOSPI1, OCTOSPI2 or BKPSRAM). Secure and privileged attributes of

subregions A and B are independently configurable. When no subregions are defined or enabled on the region x, then the default attribute of the region x is set as secure-privileged.

The following tables describe the secure/privileged properties of the common area of subregion A and B, when an overlap exists.

Table 28. Secure properties of subregions A and B

subregion Asubregion BProperties of overlapped region A and B
NonsecureNonsecureNonsecure
NonsecureSecureNonsecure
SecureNonsecureNonsecure
SecureSecureSecure

Table 29. Privileged properties of subregions A and B

subregion Asubregion BProperties of overlapped region A and B
UnprivilegedUnprivilegedUnprivileged
UnprivilegedPrivilegedUnprivileged
PrivilegedUnprivilegedUnprivileged
PrivilegedPrivilegedPrivileged

5.4.4 Memory protection controller - block based (MPCBB)

The MPCBB is composed of a configurable set of registers allowing to define security and privileged policy for internal SRAM memories. The security and privileged policy can be individually configured per each 512-byte block of SRAM.

Figure 18. MPCBB block diagram

MPCBB block diagram showing the internal structure and connections. The MPCBB block contains registers: MPCBB_CR, MPCBB_SECCFGR, MPCBB_PRIVCFGR, and MPCBB_CFGLOCK. It is connected to TZEN (from option bytes) and AHB. It outputs Secure/nonsecure and Privileged/unprivileged signals, and an MPCBB_ILA_event (to TZIC). ILA = illegal access (security only). MSv63636V1
graph LR
    TZEN[TZEN from option bytes] --> MPCBB
    AHB[AHB] <--> MPCBB
    subgraph MPCBB
        CR[MPCBB_CR]
        SECCFGR[MPCBB_SECCFGR]
        PRIVCFGR[MPCBB_PRIVCFGR]
        CFGLOCK[MPCBB_CFGLOCK]
    end
    SECCFGR --> SN[Secure/nonsecure]
    PRIVCFGR --> PU[Privileged/unprivileged]
    CFGLOCK --> ILA_EVENT[MPCBB_ILA_event to TZIC]
    ILA_EVENT --- ILA_NOTE[ILA = illegal access security only]
  
MPCBB block diagram showing the internal structure and connections. The MPCBB block contains registers: MPCBB_CR, MPCBB_SECCFGR, MPCBB_PRIVCFGR, and MPCBB_CFGLOCK. It is connected to TZEN (from option bytes) and AHB. It outputs Secure/nonsecure and Privileged/unprivileged signals, and an MPCBB_ILA_event (to TZIC). ILA = illegal access (security only). MSv63636V1

To set up the MPCBB, the following actions are needed (for example at boot time):

A MPCBB super-block is made of 32 consecutive blocks. For each super-block, secure application can lock all related security/privileged bits using the correct bits in GTZC1_MPCBBz_CFGLOCK. This lock remains active until the next system reset.

Note: The block size is 512 bytes. The super-block size is 512*32 = 16 Kbytes.

5.4.5 TrustZone illegal access controller (TZIC)

The TZIC concentrates all illegal access source events. It is used only when the system is TrustZone enabled (TZEN = 0xB4).

TZIC allows to trace (flag) the event that triggered the secure illegal access interrupt. Register masks (GTZC1_TZIC_IERx) are available to filter unwanted event. On unmasked illegal event, TZIC generates the GTZC_IRQn interrupt to the NVIC.

For each illegal event source, a status flag and a clear bit exist (respectively within GTZC1_TZIC_SRx and GTZC1_TZIC_FCRx). The reset value of mask registers (GTZC1_TZIC_IERx) is such that all events are masked.

5.4.6 Power-on/reset state

The power-on and reset state of the TZSC clear to 0 all bits of GTZC1_TZSC_SECCFGRx and GTZC1_TZSC_PRIVCFGRx, meaning that all securable peripherals are respectively set to nonsecure and unprivileged. For internal SRAMx (x = 1 to 3), all GTZC1_MPCBBz_SECCFGRx and GTZC1_MPCBBz_PRIVCFGRx are set:

For external memories and backup SRAM, all GTZC1_TZSC_MPCWMxR registers are set:

Secure boot code can then program the security settings, making components secure or not as needed.

5.5 GTZC interrupts

TZIC is a secure peripheral, thus it systematically generates an illegal access event when accessed by a nonsecure access. The MPCBB and TZSC are TrustZone-aware peripherals, meaning that secure and nonsecure registers coexist within the peripheral.

Table 30. GTZC interrupt request

Interrupt acronymInterrupt eventEvent flagEnable control bitInterrupt clear methodExit Sleep modeExit Stop modeExit Standby mode
GTZCIllegal accessAll flags in GTZC1_TZIC_SRxAll bits in GTZC1_TZIC_IERxWrite 1 in the bit GTZC1_TZIC_FCRxYesYesNo

5.6 GTZC1 TZSC registers

All registers are accessed only by words (32-bit).

5.6.1 GTZC1 TZSC control register (GTZC1_TZSC_CR)

Address offset: 0x000

Reset value: 0x0000 0000

Secure privileged access only.

5.6 5.6.1column_2column_3column_4column_5column_6column_7column_8column_9column_10column_11column_12column_13column_14column_15RM0517
31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.LCK rs
Bit 0LCK:lock the configuration of GTZC1_TZSC_SECCFGRxand GTZC1_TZSC_PRIVCFGRx
0: configuration of all GTZC1_TZSC_SECCFGRxandGTZC1_TZSC_PRIVCFGRx not
1: configuration of all GTZC1_TZSC_SECCFGRxandGTZC1_TZSC_PRIVCFGRx locked
31302928272625242322212019181716
LPTIM2DTSSEUART1UART9UART8UART7DAC1SHDMICUSARTUSARTUSARTCRSSEI3C1SEI2C2SEI2C1SEUART5
SECC2SECSECSECSECECECSEC11SEC10SEC6SECCCCCSEC
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
UART4USARTUSARTSPI3SESPI2SEIWDGSWWDGTIM14STIM13STIM12STIM7STIM6STIM5STIM4STIM3STIM2S
SEC3SEC2SECCCECSECECECECECECECECECEC
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
Bit 31LPTIM2SEC 0: Nonsecure: Secure access mode for LPTIM2

Bits 31:1 Reserved, must be kept at reset value.

Bit 0 LCK: lock the configuration of GTZC1_TZSC_SECCFGRx and GTZC1_TZSC_PRIVCFGRx until next reset

This bit is cleared by default and once set, it can not be reset until system reset.

0: configuration of all GTZC1_TZSC_SECCFGRx and GTZC1_TZSC_PRIVCFGRx not locked

1: configuration of all GTZC1_TZSC_SECCFGRx and GTZC1_TZSC_PRIVCFGRx locked

5.6.2 GTZC1 TZSC secure configuration register 1 (GTZC1_TZSC_SECCFGR1)

Address offset: 0x010

Reset value: 0x0000 0000

Write-secure access only.

This register can be written only by secure privileged transaction when the corresponding GTZC1_TZSC_PRIVCFGR signal is set to 1. If a given PRIV bit is not set, the equivalent SEC bit can be written by secure unprivileged transaction.

Read accesses are authorized for any type of transactions, secure or not, privileged or not.

Bit 31 LPTIM2SEC: Secure access mode for LPTIM2

0: Nonsecure

1: Secure

Bit 0 TIM2SEC: Secure access mode for TIM2
0: Nonsecure
1: Secure

5.6.3 GTZC1 TZSC secure configuration register 2
(GTZC1_TZSC_SECCFGR2)

Address offset: 0x014

Reset value: 0x0000 0000

Write-secure access only.

This register can be written only by secure privileged transaction when the corresponding GTZC1_TZSC_PRIVCFGR signal is set to 1. If a given PRIV is not set, the equivalent SEC bit can be written by secure unprivileged transaction.

Read accesses are authorized for any type of transactions, secure or not, privileged or not.

31302928272625242322212019181716
LPTIM5
SEC
LPTIM4
SEC
LPTIM3
SEC
LPTIM1
SEC
I2C4SE
C
I2C3SE
C
LPUAR
T1SEC
SPI5SE
C
Res.Res.GFXTI
MSEC
LTDCS
EC
Res.SAI2SE
C
SAI1SE
C
SPI6SE
C
rwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
SPI4SE
C
TIM17S
EC
TIM16S
EC
TIM15S
EC
USART
1SEC
TIM8S
EC
SPI1SE
C
TIM1S
EC
Res.Res.FDCAN
3SEC
COMP
SEC
OPAMP
SEC
UCPDS
EC
FDCAN
2SEC
FDCAN
1SEC
rwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bit 31 LPTIM5SEC: Secure access mode for LPTIM5
0: Nonsecure
1: Secure

Bit 30 LPTIM4SEC: Secure access mode for LPTIM4
0: Nonsecure
1: Secure

Bit 29 LPTIM3SEC: Secure access mode for LPTIM3
0: Nonsecure
1: Secure

Bit 28 LPTIM1SEC: Secure access mode for LPTIM1
0: Nonsecure
1: Secure

Bit 27 I2C4SEC: Secure access mode for I2C4
0: Nonsecure
1: Secure

Bit 26 I2C3SEC: Secure access mode for I2C3
0: Nonsecure
1: Secure

Bit 25 LPUART1SEC: Secure access mode for LPUART
0: Nonsecure
1: Secure

Bits 7:6 Reserved, must be kept at reset value.

Bit 5 FDCAN3SEC: Secure access mode for FDCAN3

Bit 4 COMPSEC: Secure access mode for COMP

Bit 3 OPAMPSEC: Secure access mode for OPAMP

Bit 2 UCPDSEC: Secure access mode for UCPD

Bit 1 FDCAN2SEC: Secure access mode for FDCAN2

Bit 0 FDCAN1SEC: Secure access mode for FDCAN1

5.6.4 GTZC1 TZSC secure configuration register 3 (GTZC1_TZSC_SECCFGR3)

Address offset: 0x018

Reset value: 0x0000 0000

Write-secure access only.

This register can be written only by secure privileged transaction when the corresponding GTZC1_TZSC_PRIVCFGR is set to 1. If a given PRIV is not set, the equivalent SEC bit can be written by secure unprivileged transaction.

Read accesses are authorized for any type of transactions, secure or not, privileged or not.

31302928272625242322212019181716
OTGFS SECOTGH SSECJPEGS ECDMA2D SECMDF1S ECRAMC FGSECOCTOS PI2SE COCTOS PI1SE CFMCSE CSDMM C2SECSDMM C1SECPKASE CSAESS ECRNGS ECHASHS ECAESSE C
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
DCMIS ECADC12 SECDCAC HESECICACH ESECETHSE CFMACS ECCORDI CSECCRCSE CADF1S ECADC3S ECOCTOS PIMSE CCCBSE CRes.I3C2SE CVREFB UFSECLPTIM6 SEC
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bit 31 OTGFSSEC: Secure access mode for OTGFS

Bit 0 LPTIM6SEC: Secure access mode for LPTIM6
0: Nonsecure
1: Secure

5.6.5 GTZC1 TZSC privilege configuration register 1 (GTZC1_TZSC_PRIVCFGR1)

Address offset: 0x020

Reset value: 0x0000 0000

Write-privileged access only.

This register can be read or written only by secure privileged transaction when the corresponding GTZC1_TZSC_SECCFGR signal is set to 1. If a given SEC bit is not set, the equivalent PRIV bit can be read/written by nonsecure privileged transaction.

Read accesses are authorized for any type of transactions, secure or not, privileged or not.

Bit 0LPTIM6SECRM0517
5.6.5 GTZC1 TZSC privilege configuration register1
31 30 292827 26 25 24 23 22 21 20 19 18 17 16 HDMIC
LPTIM2 DTSPR UART1UART9UART8 UART7 DAC1P USART USART USART CRSPR I3C1PR I2C2PR I2C1PR UART5 ECPRI
PRIV IV 2PRIVPRIVPRIV PRIV RIV 11PRIV 10PRIV 6PRIV IV IV IV IV PRIV V
rw rw rwrwrw rw rw rw rw rw rw rw rw rw rw rw
15 14 131211 10 9 8 7 6 5 4 3 2 1 0
UART4 USART USARTSPI3PSPI2P IWDGP WWDG TIM14P TIM13P TIM12P TIM7P TIM6P TIM5P TIM4P TIM3P TIM2P
PRIV 3PRIV 2PRIVRIVRIV RIV PRIV RIV RIV RIV RIV RIV RIV RIV RIV RIV
rw rw rwrwrw rw rw rw rw rw rw rw rw rw rw rw
Bit 31LPTIM2PRIV: privileged access mode for LPTIM2 0: unprivileged 1: privileged
Bit 30DTSPRIV: privileged access mode for DTS 0: unprivileged 1: privileged
Bit 29UART12PRIV: privileged access mode for UART12 0: unprivileged 1: privileged
Bit 28UART9PRIV: privileged access mode for UART9 0: unprivileged 1: privileged
Bit 27UART8PRIV: privileged access mode for UART8 0: unprivileged 1: privileged
Bit 26UART7PRIV: privileged access mode for UART7 0: unprivileged 1: privileged
Bit 25DAC1PRIV: privileged access mode for DAC1 0: unprivileged 1: privileged

Bit 31 LPTIM2PRIV: privileged access mode for LPTIM2
0: unprivileged
1: privileged

Bit 30 DTSPRIV: privileged access mode for DTS
0: unprivileged
1: privileged

Bit 29 UART12PRIV: privileged access mode for UART12
0: unprivileged
1: privileged

Bit 28 UART9PRIV: privileged access mode for UART9
0: unprivileged
1: privileged

Bit 27 UART8PRIV: privileged access mode for UART8
0: unprivileged
1: privileged

Bit 26 UART7PRIV: privileged access mode for UART7
0: unprivileged
1: privileged

Bit 25 DAC1PRIV: privileged access mode for DAC1
0: unprivileged
1: privileged

5.6.6 GTZC1 TZSC privilege configuration register 2 (GTZC1_TZSC_PRIVCFGR2)

Address offset: 0x024

Reset value: 0x0000 0000

Write-privileged access only.

This register can be read or written only by secure privileged transaction when the corresponding GTZC1_TZSC_SECCFGR signal is set to 1. If a given SEC bit is not set, the equivalent PRIV bit can be read/written by nonsecure privileged transaction.

Read accesses are authorized for any type of transactions, secure or not, privileged or not.

Bit 0LPTIM6SECRM0517
5.6.6 GTZC1 TZSC privilege configuration register2
31 30 292827 26 25 24 23 22 21 20 19 18 17 16
LPTIM5 LPTIM4 LPTIM3LPTIM1I2C4PR I2C3PR LPUAR SPI5P LTDCP SAI1P SPI6P
LPTIM5 LPTIM4 LPTIM3RIV Res. Res. GFXTI
LPTIM5 LPTIM4 LPTIM3RIV Res. SAI2P
PRIV PRIV PRIVPRIVIV IV T1PRIV MPRIV RIV RIV RIV
rw rw rwrwrw rw rw rw rw rw rw rw rw
15 14 131211 10 9 8 7 6 5 4 3 2 1 0
SPI4P TIM17P TIM16PTIM15PUSART TIM8P SPI1P TIM1P COMP OPAMP UCPDP FDCAN FDCAN
SPI4P TIM17P TIM16PRIV Res. Res. FDCAN
RIV RIV RIVRIV1PRIV RIV RIV 3PRIV PRIV PRIV RIV 2PRIV 1PRIV
rw rw rwrwrw rw rw rw rw rw rw rw rw rw
Bit 31LPTIM5PRIV: privileged access mode for LPTIM5 0: unprivileged
Bit 30LPTIM4PRIV1: privileged : privileged access mode for LPTIM4 0: unprivileged
Bit 29LPTIM3PRIV1: privileged : privileged access mode for LPTIM3 0: unprivileged
Bit 28LPTIM1PRIV1: privileged : privileged access mode for LPTIM1 0: unprivileged
Bit 27I2C4PRIV1: privileged : privileged access mode for I2C4 0: unprivileged
Bit 26I2C3PRIV1: privileged : privileged access mode for I2C3 0: unprivileged
Bit 25LPUART1PRIV1: privileged : privileged access mode for LPUART 0: unprivileged
Bit 24SPI5PRIV1: privileged : privileged access mode for SPI5 0: unprivileged
Bit 24RM0517 Rev 1 217/ 3945

Bit 31 LPTIM5PRIV: privileged access mode for LPTIM5

Bit 30 LPTIM4PRIV: privileged access mode for LPTIM4

Bit 29 LPTIM3PRIV: privileged access mode for LPTIM3

Bit 28 LPTIM1PRIV: privileged access mode for LPTIM1

Bit 27 I2C4PRIV: privileged access mode for I2C4

Bit 26 I2C3PRIV: privileged access mode for I2C3

Bit 25 LPUART1PRIV: privileged access mode for LPUART

Bit 24 SPI5PRIV: privileged access mode for SPI5

Bits 23:22 Reserved, must be kept at reset value.

Bit 4 COMPPRIV: privileged access mode for COMP

Bit 3 OPAMPPRIV: privileged access mode for OPAMP

Bit 2 UCPDPRIV: privileged access mode for UCPD

Bit 1 FDCAN2PRIV: privileged access mode for FDCAN2

Bit 0 FDCAN1PRIV: privileged access mode for FDCAN1

5.6.7 GTZC1 TZSC privilege configuration register 3 (GTZC1_TZSC_PRIVCFGR3)

Address offset: 0x028

Reset value: 0x0000 0000

Write-privileged access only.

This register can be read or written only by secure privileged transaction when the corresponding GTZC1_TZSC_SECCFGR signal is set to 1. If a given SEC bit is not set, the equivalent PRIV bit can be read/written by nonsecure privileged transaction.

Read accesses are authorized for any type of transactions, secure or not, privileged or not.

31302928272625242322212019181716
OTGFS
PRIV
OTGH
SPRIV
JPEGPR
IV
DMA2D
PRIV
MDF1P
RIV
RAMC
FG
PRIV
OCTOS
PI2PRIV
OCTO
SPI1
PRIV
FMC
PRIV
SDMM
C2
PRIV
SDMM
C1
PRIV
PKA
PRIV
SAE
S
PRIV
RNG
PRIV
HASH
PRIV
AES
PRIV
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
DCMI
PRIV
ADC12
PRIV
DCACH
E
PRIV
ICACH
E
PRIV
ETH
PRIV
FMAC
PRIV
CORDIC
PRIV
CRC
PRIV
ADF1P
RIV
ADC3P
RIV
OCTO
SPIMP
RIV
CCBPR
IV
Res.I3C2PR
IV
VREF
BUF
PRIV
LPTIM6
PRIV
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bit 31 OTGFSPRIV: privileged access mode for OTGFS

Bit 30 OTGHSPRIV: privileged access mode for OTGHS

Bit 29 JPEGPRIV: privileged access mode for JPEG

5.6.8 GTZC1 TZSC memory x subregion z watermark configuration register (GTZC1_TZSC_MPCWMxACFGR)

Address offset: 0x40+0x10 × (x-1) (x = 1 to 4)

Reset value: 0x0000 0000

Secure privilege access only.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.PRIVSECRes.Res.Res.Res.Res.Res.SRLOCKSREN
rwrwrsrw

Bits 31:10 Reserved, must be kept at reset value.

Bit 9 PRIV: Privileged subregion A of base region x

This bit is taken into account only if SREN is set.

0: Privileged and unprivileged accesses are granted in subregion A.

1: Only privileged accesses are granted in subregion A of region x.

Bit 8 SEC: Secure subregion A of base region x

This bit is taken into account only if SREN is set.

0: Only nonsecure data accesses are granted to subregion A of region x.

1: Only secure data accesses are granted to subregion A of region x.

Bits 7:2 Reserved, must be kept at reset value.

Bit 1 SRLOCK: subregion A lock

This bit, once set, can be cleared only by a system reset.

0: GTZC1_TZSC_MPCWMxCFGR and GTZC1_TZSC_MPCWMxAR can be written.

1: Writes to GTZC1_TZSC_MPCWMxCFGR and GTZC1_TZSC_MPCWMxAR are ignored.

Bit 0 SREN: Subregion z enable

0: Subregion A is disabled. Access control of base region x applies to any access between this subregion start- and end-addresses.

1: subregion A of region x is enabled. Access control defined in

GTZC1_TZSC_MPCWMx_CFGR applies to any access between this subregion start- and end-addresses, both defined in GTZC1_TZSC_MPCWMxAR.

Note: External memories that are watermark controlled start fully nonsecure/unprivileged at reset when TZEN = 0xC3. When TZEN = 0xB4, external memories start fully secure/fully privileged (inverted reset-value).

5.6.9 GTZC1 TZSC memory x subregion z watermark configuration register (GTZC1_TZSC_MPCWMxBCFGR)

Address offset: 0x48+0x10 × (x-1) (x = 1 to 4)

Reset value: 0x0000 0000

Secure privilege access only.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.PRIVSECRes.Res.Res.Res.Res.Res.SRLOCKSREN
rwrwrsrw

Bits 31:10 Reserved, must be kept at reset value.

Bit 9 PRIV: Privileged subregion B of base region x

This bit is taken into account only if SREN is set.

0: Privileged and unprivileged accesses are granted in subregion B.

1: Only privileged accesses are granted in subregion B of region x.

Bit 8 SEC: Secure subregion B of base region x

This bit is taken into account only if SREN is set.

0: Only nonsecure data accesses are granted to subregion B of region x.

1: Only secure data accesses are granted to subregion B of region x.

Bits 7:2 Reserved, must be kept at reset value.

Bit 1 SRLOCK: subregion B lock

This bit, once set, can be cleared only by a system reset.

0: GTZC1_TZSC_MPCWMxCFGR and GTZC1_TZSC_MPCWMxBR can be written.

1: Writes to GTZC1_TZSC_MPCWMxCFGR and GTZC1_TZSC_MPCWMxBR are ignored.

Bit 0 SREN: subregion B enable

0: Subregion B is disabled. Access control of base region x applies to any access between this subregion start- and end-addresses.

1: Subregion B of region x is enabled. Access control defined in

GTZC1_TZSC_MPCWMx_CFGR applies to any access between this subregion start- and end-addresses, both defined in GTZC1_TZSC_MPCWMxBR.

Note: External memories that are watermark controlled start fully nonsecure/unprivileged at reset when TZEN = 0xC3. When TZEN = 0xB4, external memories start fully secure/fully privileged (inverted reset-value).

5.6.10 GTZC1 TZSC memory x subregion A watermark register (GTZC1_TZSC_MPCWMxAR)

Address offset: 0x44+0x10 × (x-1) (x = 1 to 4)

Reset value: 0x0000 0000

The given reset value is valid when TZEN = 0xB4. The reset value is 0x0800 0000 when TZEN = 0xC3.

Secure privilege access only.

When SUBA_START + SUBA_LENGTH is higher than the maximum size allowed for the memory, a saturation of SUBA_LENGTH is applied automatically.

When an overlap of subregion A and B exists, secure/privileged attributes of both subregions apply on the common section (see Section 5.4.3)

31302928272625242322212019181716
Res.Res.Res.Res.SUBA_LENGTH[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.SUBA_START[10:0]
rwrwrwrwrwrwrwrwrwrwrw

Bits 31:28 Reserved, must be kept at reset value.

Bits 27:16 SUBA_LENGTH[11:0]: Length of subregion A in region x

This field defines the length of the subregion A, to be multiplied by the granularity defined in Table 25.

When SUBA_START + SUBA_LENGTH is higher than the maximum size allowed for the memory, a saturation of SUBA_LENGTH is applied automatically.

If SUBA_LENGTH = 0, the subregion A is disabled. (SREN bit in GTZC1_TZSC_MPCMWxACFGR is cleared).

Bits 15:11 Reserved, must be kept at reset value.

Bits 10:0 SUBA_START[10:0]: Start of subregion A in region x

This field defines the address offset of the subregion A, to be multiplied by the granularity defined in Table 25, versus the start of the region x.

External memories that are watermark controlled, start fully nonsecure at reset when TZEN = 0xC3. When TZEN = 0xB4, external memories start fully secure (inverted reset value).

5.6.11 GTZC1 TZSC memory x subregion B watermark register (GTZC1_TZSC_MPCWMxBR)

Address offset: 0x4C+0x10 × (x-1) (x = 1 to 4)

Reset value: 0x0000 0000

The given reset value is valid when TZEN = 0xB4. The reset value is 0x0800 0000 when TZEN = 0xC3.

Secure privilege access only.

When SUBB_START + SUBB_LENGTH is higher than the maximum size allowed for the memory, a saturation of SUBB_LENGTH is applied automatically.

When an overlap of subregion A and B exists, secure/privileged attributes of both subregions apply on the common section (see Section 5.4.3)

31302928272625242322212019181716
Res.Res.Res.Res.SUBB_LENGTH[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.SUBB_START[10:0]
rwrwrwrwrwrwrwrwrwrwrw

Bits 31:28 Reserved, must be kept at reset value.

Bits 27:16 SUBB_LENGTH[11:0]: Length of subregion B in region x

This field defines the length of the subregion B, to be multiplied by the granularity defined in Table 25.

When SUBB_START + SUBB_LENGTH is higher than the maximum size allowed for the memory, a saturation of SUBB_LENGTH is applied automatically.

If SUBB_LENGTH = 0, the subregion B is disabled. (SREN bit in GTZC1_TZSC_MPCMWxBCFGR is cleared).

Bits 15:11 Reserved, must be kept at reset value.

Bits 10:0 SUBB_START[10:0]: Start of subregion B in region x

This field defines the address offset of the subregion B, to be multiplied by the granularity defined in Table 25, versus the start of the region x.

External memories that are watermark controlled, start fully nonsecure at reset when TZEN = 0xC3. When TZEN = 0xB4, external memories start fully secure (inverted reset value).

5.6.12 GTZC1 TZSC register map

Table 31. GTZC1 TZSC register map and reset values
OffsetRegister313029282726252423222120191817161514131211109876543210
0x000GTZC1_TZSC_CRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.LCK
Reset value0
0x004-
0x00C
ReservedReserved
0x010GTZC1_TZSC_
SECCFGR1
LPTIM2SECDTSSECUART12SECUART9SECUART8SECUART7SECDAC1SECHDMICECSECUSART11SECUSART10SECUSART6SECCRSSECI3C1SECI2C2SECI2C1SECUART5SECUART4SECUSART3SECUSART2SECSPI3SECSPI2SECIWDGSECWWDGSECTIM14SECTIM13SECTIM112SECTIM7SECTIM6SECTIM5SECTIM4SECTIM3SECTIM2SEC
Reset value00000000000000000000000000000000
0x014GTZC1_TZSC_
SECCFGR2
LPTIM5SECLPTIM4SECLPTIM3SECLPTIM1SECI2C4SECI2C3SECLPUART1SECSPI5SECRes.Res.Res.Res.Res.SAI2SECSAI1SECSPI6SECSPI4SECTIM17SECTIM16SECTIM15SECUSART1SECTIM8SECSPI1SECTIM1SECRes.Res.Res.Res.Res.UCPDSECFDCAN2SECFDCAN1SEC
Reset value0000000000000000000000
0x018GTZC1_TZSC_
SECCFGR3
Res.Res.Res.Res.Res.RAMCFGSECRes.OCTOSPI1SECFMCSECSDMMC2SECSDMMC1SECPKASECSAESSECRNGSECHASHSECAESSECDCMISECADC12SECDCACHESECICACHESECETHSECFMACSECCORDICSECCRCSECRes.Res.Res.Res.Res.Res.VREFBUFSECLPTIM6SEC
Reset value00000000000000000000
0x01CReservedReserved
0x020GTZC1_TZSC_
PRIVCFGR1
LPTIM2PRIVDTSPRIVUART12PRIVUART9PRIVUART8PRIVUART7PRIVDAC1PRIVHDMICECPRIVUSART11PRIVUSART10PRIVUSART6PRIVCRSPRIVI3C1PRIVI2C2PRIVI2C1PRIVUART5PRIVUART4PRIVUSART3PRIVUSART2PRIVSPI3PRIVSPI2PRIVIWDGPRIVWWDGPRIVTIM14PRIVTIM13PRIVTIM112PRIVTIM7PRIVTIM6PRIVTIM5PRIVTIM4PRIVTIM3PRIVTIM2PRIV
Reset value00000000000000000000000000000000
0x024GTZC1_TZSC_
PRIVCFGR2
LPTIM5PRIVLPTIM4PRIVLPTIM3PRIVLPTIM1PRIVI2C4PRIVI2C3PRIVLPUART1PRIVSPI5PRIVRes.Res.Res.Res.USBPRIVSAI2PRIVSAI1PRIVSPI6PRIVSPI4PRIVTIM17PRIVTIM16PRIVTIM15PRIVUSART1PRIVTIM8PRIVSPI1PRIVTIM1PRIVRes.Res.Res.Res.Res.UCPDPRIVFDCAN2PRIVFDCAN1PRIV
Reset value00000000000000000000000
0x028GTZC1_TZSC_
PRIVFGR3
Res.Res.Res.Res.Res.RAMCFGPRIVRes.OCTOSPI1PRIVFMCPRIVSDMMC2PRIVSDMMC1PRIVPKAPRIVSAESPRIVRNGPRIVHASHPRIVAESPRIVDCMIPRIVADC12PRIVDCACHEPRIVICACHEPRIVETHPRIVFMACPRIVCORDICPRIVCRCPRIVRes.Res.Res.Res.Res.Res.VREFBUFPRIVLPTIM6PRIV
Reset value00000000000000000000
0x02C-
0x03C
ReservedReserved
0x040GTZC1_TZSC_
MPCWM1ACFGR
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PRIVSECRes.Res.Res.Res.Res.Res.SRLOCKSREN
Reset value0000
0x44GTZC1_TZSC_
MPCWM1AR
Res.Res.Res.Res.SUBA_LENGTH[11:0]Res.Res.Res.Res.Res.SUBA_START[10:0]
Reset value00000000000000000000000
0x048GTZC1_TZSC_
MPCWM1BCFGR
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PRIVSECRes.Res.Res.Res.Res.Res.SRLOCKSREN
Reset value0000

Table 31. GTZC1 TZSC register map and reset values (continued)

OffsetRegister313029282726252423222120191817161514131211109876543210
0x04CGTZC1_TZSC_MPCWM1BRResResResResSUBB_LENGTH[11:0]ResResResResResSUBB_START[10:0]0
Reset value00000000000000000000000
0x050GTZC1_TZSC_MPCWM2ACFGRResResResResResResResResResResResResResResResResResResResResResResPRIVSECResResResResResResSRLOCKSREN
Reset value0000
0x54GTZC1_TZSC_MPCWM2ARResResResResSUBA_LENGTH[11:0]ResResResResResSUBA_START[10:0]0
Reset value00000000000000000000000
0x058GTZC1_TZSC_MPCWM2BCFGRResResResResResResResResResResResResResResResResResResResResResResPRIVSECResResResResResResSRLOCKSREN
Reset value0000
0x05CGTZC1_TZSC_MPCWM2BRResResResResSUBB_LENGTH[11:0]ResResResResResSUBB_START[10:0]0
Reset value00000000000000000000000
0x060GTZC1_TZSC_MPCWM3ACFGRResResResResResResResResResResResResResResResResResResResResResResPRIVSECResResResResResResSRLOCKSREN
Reset value0000
0x64GTZC1_TZSC_MPCWM3ARResResResResSUBA_LENGTH[11:0]ResResResResResSUBA_START[10:0]0
Reset value00000000000000000000000
0x068GTZC1_TZSC_MPCWM3BCFGRResResResResResResResResResResResResResResResResResResResResResResPRIVSECResResResResResResSRLOCKSREN
Reset value0000
0x06CGTZC1_TZSC_MPCWM3BRResResResResSUBB_LENGTH[11:0]ResResResResResSUBB_START[10:0]0
Reset value00000000000000000000000
0x070GTZC1_TZSC_MPCWM4ACFGRResResResResResResResResResResResResResResResResResResResResResResPRIVSECResResResResResResSRLOCKSREN
Reset value0000
0x74GTZC1_TZSC_MPCWM4ARResResResResSUBA_LENGTH[11:0]ResResResResResSUBA_START[10:0]0
Reset value00000000000000000000000
0x078GTZC1_TZSC_MPCWM4BCFGRResResResResResResResResResResResResResResResResResResResResResResPRIVSECResResResResResResSRLOCKSREN
Reset value0000
0x07CGTZC1_TZSC_MPCWM4BRResResResResSUBB_LENGTH[11:0]ResResResResResSUBB_START[10:0]0
Reset value00000000000000000000000
Refer to Table 24: GTZC1 sub-block address offset .

5.7 GTZC1 TZIC registers

All registers are accessed only by words (32-bit).

5.7.1 GTZC1 TZIC interrupt enable register 1 (GTZC1_TZIC_IER1)

Address offset: 0x000

Reset value: 0x0000 0000

Secure privileged access only.

This register is used to enable interrupt of illegal access.

31302928272625242322212019181716
LPTIM2
IE
DTSIEUART12IEUART9IEUART8IEUART7IEDAC1IEHDMIC
ECIE
USART
11IE
USART
10IE
USART
6IE
CRSIEI3C1IEI2C2IEI2C1IEUART5IE
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
UART4IEUSART
3IE
USART
2IE
SPI3IESPI2IEIWDG
IE
WWDG
IE
TIM14IETIM13IETIM12IETIM7IETIM6IETIM5IETIM4IETIM3IETIM2IE
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bit 31 LPTIM2IE: illegal access interrupt enable for LPTIM2

0: interrupt disabled

1: interrupt enabled

Bit 30 DTSIE: illegal access interrupt enable for DTS

0: interrupt disabled

1: interrupt enabled

Bit 29 UART12IE: illegal access interrupt enable for UART12

0: interrupt disabled

1: interrupt enabled

Bit 28 UART9IE: illegal access interrupt enable for UART9

0: interrupt disabled

1: interrupt enabled

Bit 27 UART8IE: illegal access interrupt enable for UART8

0: interrupt disabled

1: interrupt enabled

Bit 26 UART7IE: illegal access interrupt enable for UART7

0: interrupt disabled

1: interrupt enabled

Bit 25 DAC1IE: illegal access interrupt enable for DAC1

0: interrupt disabled

1: interrupt enabled

Bit 24 HDMICECIE: illegal access interrupt enable for HDMICEC

0: interrupt disabled

1: interrupt enabled

Bit 8 TIM14IE: illegal access interrupt enable for TIM14

0: interrupt disabled

1: interrupt enabled

Bit 7 TIM13IE: illegal access interrupt enable for TIM13

0: interrupt disabled

1: interrupt enabled

Bit 6 TIM12IE: illegal access interrupt enable for TIM12

0: interrupt disabled

1: interrupt enabled

Bit 5 TIM7IE: illegal access interrupt enable for TIM7

0: interrupt disabled

1: interrupt enabled

Bit 4 TIM6IE: illegal access interrupt enable for TIM6

0: interrupt disabled

1: interrupt enabled

Bit 3 TIM5IE: illegal access interrupt enable for TIM5

0: interrupt disabled

1: interrupt enabled

Bit 2 TIM4IE: illegal access interrupt enable for TIM4

0: interrupt disabled

1: interrupt enabled

Bit 1 TIM3IE: illegal access interrupt enable for TIM3

0: interrupt disabled

1: interrupt enabled

Bit 0 TIM2IE: illegal access interrupt enable for TIM2

0: interrupt disabled

1: interrupt enabled

5.7.2 GTZC1 TZIC interrupt enable register 2 (GTZC1_TZIC_IER2)

Address offset: 0x004

Reset value: 0x0000 0000

Secure privileged access only.

This register is used to enable interrupt of illegal access.

column_1column_2Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3TIM14IE TIM13IE TIM12IE TIM7IE TIM6IE TIM5IEcolumn_5column_6column_7column_8column_9column_10column_11column_12column_13column_14column_15RM0517
Bit 2TIM4IE: illegal access interrupt enable for TIM4
Bit 1TIM3IE: illegal access interrupt enable for TIM3
Bit 0TIM2IE: illegal access interrupt enable for TIM2
31302928272625242322212019181716
LPTIM5LPTIM4LPTIM3LPTIM1
IEI2C4IE I2C3IELPUAR
T1IESPI5IERes.Res.GFXTI
IEIEIEMIELTDCIERes.SAI2IE SAI1IE SPI6IE
rwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
SPI4IETIM17ITIM16ITIM15IUSARTCOMPIOPAMPUCPDIFDCANFDCAN
1IETIM8IE SPI1IE TIM1IERes.Res.FDCAN
EEE3IEEIEE2IE1IE
rwrwrwrwrwrwrwrwrwrwrwrwrwrw

5.7.3 GTZC1 TZIC interrupt enable register 3 (GTZC1_TZIC_IER3)

Address offset: 0x008

Reset value: 0x0000 0000

Secure privileged access only.

This register is used to enable interrupt of illegal access.

31302928272625242322212019181716
OTGFSIEOTGHSIEJPEGIEDMA2DIEMDF1IERAMCFGIEOCTOSPI2IEOCTOSPI1IEFMCIESDMMC2IESDMMC1IEPKAIESAESIERNGIEHASHIEAESIE
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
DCMIIEADC12IEDCACHEIEICACHEIEETHIEFMACIECORDICIECRCIEADF1IEADC3IEOCTOSPIMIECCBIERes.I3C2IEVREFBUFIELPTIM6IE
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bit 31 OTGFSIE: illegal access interrupt enable for OTGFS

0: interrupt disabled

1: interrupt enabled

Bit 30 OTGHSIE: illegal access interrupt enable for OTGHS

0: interrupt disabled

1: interrupt enabled

Bit 29 JPEGIE: illegal access interrupt enable for JPEG

0: interrupt disabled

1: interrupt enabled

Bit 28 DMA2DIE: illegal access interrupt enable for DMA2D

0: interrupt disabled

1: interrupt enabled

Bit 27 MDF1IE: illegal access interrupt enable for MDF1

0: interrupt disabled

1: interrupt enabled

Bit 26 RAMCFGIE: illegal access interrupt enable for RAMSCFG

0: interrupt disabled

1: interrupt enabled

Bit 25 OCTOSPI2IE: illegal access interrupt enable for OCTOSPI2

0: interrupt disabled

1: interrupt enabled

Bit 24 OCTOSPI1IE: illegal access interrupt enable for OCTOSPI1

0: interrupt disabled

1: interrupt enabled

Bit 23 FMCIE: illegal access interrupt enable for FMC

0: interrupt disabled

1: interrupt enabled

Bit 22 SDMMC2IE: illegal access interrupt enable for SDMMC2

0: interrupt disabled

1: interrupt enabled

5.7.4 GTZC1 TZIC interrupt enable register 4 (GTZC1_TZIC_IER4)

Address offset: 0x00C

Reset value: 0x0000 0000

Secure privileged access only.

This register is used to enable interrupt of illegal access.

31302928272625242322212019181716
MPCB
B5_RE
GIE
SRAM5
IE
MPCB
B3_RE
GIE
SRAM3
IE
MPCB
B2_RE
GIE
SRAM2
IE
MPCB
B1_RE
GIE
SRAM1
IE
MPCB
B4_RE
GIE
SRAM4
IE
OCTOS
PI2_M
EMIE
BKPSR
AMIE
FMC_
MEMIE
OCTOS
PI1_M
EMIE
TZIC1I
E
TZSC1I
E
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.PLAY1I
E
EXTIIERCCIEPWRIETAMPI
E
RTCIESBSIEOTFDE
C2IE
OTFDE
C1IE
FLASHI
E
FLASH
_REGI
E
GPDM
A2IE
GPDM
A1IE
rwrwrwrwrwrwrwrwrwrwrwrwrw

5.7.5 GTZC1 TZIC status register 1 (GTZC1_TZIC_SR1)

Address offset: 0x010

Reset value: 0x0000 0000

Secure privileged access only.

31302928272625242322212019181716
LPTIM2FDTSFUART12FUART9FUART8FUART7FDAC1FHDMICECFUSART11FUSART10FUSART6FCRSFI3C1FI2C2FI2C1FUART5F
rrrrrrrrrrrrrrrr
1514131211109876543210
UART4FUSART3FUSART2FSPI3FSPI2FIWDGFWWDGFTIM14FTIM13FTIM12FTIM7FTIM6FTIM5FTIM4FTIM3FTIM2F
rrrrrrrrrrrrrrrr

Bit 31 LPTIM2F: illegal access flag for LPTIM2

0: no illegal access event

1: illegal access event

Bit 30 DTSF: illegal access flag for DTS

0: no illegal access event

1: illegal access event

Bit 29 UART12F: illegal access flag for UART12

0: no illegal access event

1: illegal access event

Bit 28 UART9F: illegal access flag for UART9

0: no illegal access event

1: illegal access event

Bit 27 UART8F: illegal access flag for UART8

0: no illegal access event

1: illegal access event

Bit 26 UART7F: illegal access flag for UART7

0: no illegal access event

1: illegal access event

Bit 25 DAC1F: illegal access flag for DAC1

0: no illegal access event

1: illegal access event

Bit 24 HDMICECF: illegal access flag for HDMICEC

0: no illegal access event

1: illegal access event

Bit 23 USART11F: illegal access flag for USART11

0: no illegal access event

1: illegal access event

Bit 22 USART10F: illegal access flag for USART10

0: no illegal access event

1: illegal access event

Bit 6 TIM12F: illegal access flag for TIM12

0: no illegal access event

1: illegal access event

Bit 5 TIM7F: illegal access flag for TIM7

0: no illegal access event

1: illegal access event

Bit 4 TIM6F: illegal access flag for TIM6

0: no illegal access event

1: illegal access event

Bit 3 TIM5F: illegal access flag for TIM5

0: no illegal access event

1: illegal access event

Bit 2 TIM4F: illegal access flag for TIM4

0: no illegal access event

1: illegal access event

Bit 1 TIM3F: illegal access flag for TIM3

0: no illegal access event

1: illegal access event

Bit 0 TIM2F: illegal access flag for TIM2

0: no illegal access event

1: illegal access event

5.7.6 GTZC1 TZIC status register 2 (GTZC1_TZIC_SR2)

Address offset: 0x014

Reset value: 0x0000 0000

Secure privileged access only.

31302928272625242322212019181716
LPTIM5FLPTIM4FLPTIM3FLPTIM1FI2C4FI2C3FLPUART1FSPI5FRes.Res.GFXTIMFLTDCFRes.SAI2FSAI1FSPI6F
rrrrrrrrrrrrr
1514131211109876543210
SPI4FTIM17FTIM16FTIM15FUSART1FTIM8FSPI1FTIM1FRes.Res.FDCAN3FCOMP FOPAMP FUCPDFFDCAN2FFDCAN1F
rrrrrrrrrrrrrr

Bit 31 LPTIM5F: illegal access flag for LPTIM5

0: no illegal access event

1: illegal access event

Bit 30 LPTIM4F: illegal access flag for LPTIM4

0: no illegal access event

1: illegal access event

Bit 29 LPTIM3F: illegal access flag for LPTIM3

0: no illegal access event

1: illegal access event

5.7.7 GTZC1 TZIC status register 3 (GTZC1_TZIC_SR3)

Address offset: 0x018

Reset value: 0x0000 0000

Secure privileged access only.

31302928272625242322212019181716
OTGFSFOTGHSFJPEGFDMA2DFMDF1FRAMCFGFOCTOSPI2FOCTOSPI1FFMCFSDMMC2FSDMMC1FPKAFSAESFRNGFHASHFAESF
rrrrrrrrrrrrrrrr
1514131211109876543210
DCMIFADC12FDCACHEFICACHEFETHFFMACFCORDICFCRCFADF1FADC3FOCTOSPIMFCCBFRes.I3C2FVREFBUFFLPTIM6F
rrrrrrrrrrrrrrr

Bit 2 I3C2F: illegal access flag for I3C2

0: no illegal access event

1: illegal access event

Bit 1 VREFBUFF: illegal access flag for VREFBUF

0: no illegal access event

1: illegal access event

Bit 0 LPTIM6F: illegal access flag for LPTIM6

0: no illegal access event

1: illegal access event

5.7.8 GTZC1 TZIC status register 4 (GTZC1_TZIC_SR4)

Address offset: 0x01C

Reset value: 0x0000 0000

Secure privileged access only.

31302928272625242322212019181716
MPCB
B5_RE
GF
SRAM5
F
MPCB
B3_RE
GF
SRAM3
F
MPCB
B2_RE
GF
SRAM2
F
MPCB
B1_RE
GF
SRAM1
F
MPCB
B4_RE
GF
SRAM4
F
OCTOS
PI2_M
EMF
BKPSR
AMF
FMC_
MEMF
OCTOS
PI1_M
EMF
TZIC1FTZSC1
F
rrrrrrrrrrrrrrrr
1514131211109876543210
Res.Res.Res.PLAY1
F
EXTIFRCCFPWRFTAMPFRTCFSBSFOTFDE
C2F
OTFDE
C1F
FLASH
F
FLASH
REGF
GPDM
A2F
GPDM
A1F
rrrrrrrrrrrrr

Bit 31 MPCBB5_REGF: illegal access flag for MPCBB5 registers

0: no illegal access event

1: illegal access event

Bit 30 SRAM5F: illegal access flag for SRAM5

0: no illegal access event

1: illegal access event

Bit 29 MPCBB3_REGF: illegal access flag for MPCBB3 registers

0: no illegal access event

1: illegal access event

Bit 28 SRAM3F: illegal access flag for SRAM3

0: no illegal access event

1: illegal access event

Bit 27 MPCBB2_REGF: illegal access flag for MPCBB2 registers

0: no illegal access event

1: illegal access event

Bit 26 SRAM2F: illegal access flag for SRAM2

0: no illegal access event

1: illegal access event

Bit 25 MPCBB1_REGF: illegal access flag for MPCBB1 registers

0: no illegal access event

1: illegal access event

5.7.9 GTZC1 TZIC flag clear register 1 (GTZC1_TZIC_FCR1)

Address offset: 0x020

Reset value: 0x0000 0000

Secure privileged access only.

31302928272625242322212019181716
CLPTI
M2F
CDTSFCUART
12F
CUART
9F
CUART
8F
CUART
7F
CDAC1
F
CHDMI
CECF
CUSAR
T11F
CUSAR
T10F
CUSAR
T6F
CCRSFCI3C1FCI2C2FCI2C1FCUART
5F
wwwwwwwwwwwwwwww
1514131211109876543210
CUART
4F
CUSAR
T3F
CUSAR
T2F
CSPI3FCSPI2FCIWDG
F
CWWD
GF
CTIM1
4F
CTIM1
3F
CTIM1
2F
CTIM7
F
CTIM6
F
CTIM5
F
CTIM4
F
CTIM3
F
CTIM2
F
wwwwwwwwwwwwwwww

5.7.10 GTZC1 TZIC flag clear register 2 (GTZC1_TZIC_FCR2)

Address offset: 0x024

Reset value: 0x0000 0000

Secure privileged access only.

31302928272625242322212019181716
CLPTI
M5F
CLPTI
M4F
CLPTI
M3F
CLPTI
M1F
CI2C4FCI2C3FCLPUA
RT1F
CSPI5FRes.Res.CGFXT
IMF
CLTDC
F
Res.CSAI2FCSAI1FCSPI6F
wwwwwwwwwwwww
1514131211109876543210
CSPI4FCTIM1
7F
CTIM1
6F
CTIM1
5F
CUSAR
T1F
CTIM8
F
CSPI1FCTIM1
F
Res.Res.CFDCA
N3F
CCOM
PF
COPA
MPF
CUCP
DF
CFDCA
N2F
CFDCA
N1F
wwwwwwwwwwwwww

Bit 31 CLPTIM5F: clear the illegal access flag for LPTIM5

0: no action

1: status flag cleared

Bit 30 CLPTIM4F: clear the illegal access flag for LPTIM4

0: no action

1: status flag cleared

Bit 29 CLPTIM3F: clear the illegal access flag for LPTIM3

0: no action

1: status flag cleared

Bit 28 CLPTIM1F: clear the illegal access flag for LPTIM1

0: no action

1: status flag cleared

Bit 27 CI2C4F: clear the illegal access flag for I2C4

0: no action

1: status flag cleared

Bit 26 CI2C3F: clear the illegal access flag for I2C3

0: no action

1: status flag cleared

Bit 25 CLPUART1F: clear the illegal access flag for LPUART

0: no action

1: status flag cleared

Bit 24 CSPI5F: clear the illegal access flag for SPI5

0: no action

1: status flag cleared

Bits 23:22 Reserved, must be kept at reset value.

Bit 21 CGFXTIMF: clear the illegal access flag for GFXTIM

0: no action

1: status flag cleared

Bit 20 CLTDCF: clear the illegal access flag for LTDC

0: no action

1: status flag cleared

Bit 2 CUCPDF: clear the illegal access flag for UCPD

0: no action

1: status flag cleared

Bit 1 CFDCAN2F: clear the illegal access flag for FDCAN2

0: no action

1: status flag cleared

Bit 0 CFDCAN1F: clear the illegal access flag for FDCAN1

0: no action

1: status flag cleared

5.7.11 GTZC1 TZIC flag clear register 3 (GTZC1_TZIC_FCR3)

Address offset: 0x028

Reset value: 0x0000 0000

Secure privilege access only.

31302928272625242322212019181716
COTGFSFCOTGHSFCJPEGFCDMA2DFCMDF1FCRAMCFGFCOCTOSPI2FCOCTOSPI1FCFMCFCSDMMC2FCSDMMC1FCPKAFCSAESFCRNGFCHASHFCAESF
wwwwwwwwwwwwwwww
1514131211109876543210
CDCMIFCADC12FCDCAHEFCICACHEFCETHFCFMACFCCORDICFCCRCFCADF1FCADC3FCOCTOSPIMFCCCBFRes.CI3C2FCVREFBUFFCLPTIM6F
wwwwwwwwwwwwwww

Bit 31 COTGFSF: clear illegal access flag for OTGFS

0: no action

1: status flag cleared

Bit 30 COTGHSF: clear illegal access flag for OTGHS

0: no action

1: status flag cleared

Bit 29 CJPEGF: clear illegal access flag for JPEG

0: no action

1: status flag cleared

Bit 28 CDMA2DF: clear illegal access flag for DMA2D

0: no action

1: status flag cleared

Bit 27 CMDF1F: clear illegal access flag for MDF1

0: no action

1: status flag cleared

Bit 26 CRAMCFGF: clear illegal access flag for RAMSCFG

0: no action

1: status flag cleared

5.7.12 GTZC1 TZIC flag clear register 4 (GTZC1_TZIC_FCR4)

Address offset: 0x02C

Reset value: 0x0000 0000

Secure privilege access only.

31302928272625242322212019181716
CMPC
BB5_R
EGF
CSRA
M5F
CMPC
BB3_R
EGF
CSRA
M3F
CMPC
BB2_R
EGF
CSRA
M2F
CMPC
BB1_R
EGF
CSRA
M1F
CMPC
BB4_R
EGF
CSRA
M4F
COCT
OSPI2_
MEMF
CBKPS
RAMF
CFMC_
MEMF
COCT
OSPI1_
MEMF
CTZIC1
F
CTZSC
1F
wwwwwwwwwwwwwwww
1514131211109876543210
Res.Res.Res.CPLAY
1F
CEXTI
F
CRCCFCPWR
F
CTAMP
F
CRTCFCSBSFCOTFD
EC2F
COTFD
EC1F
CFLAS
HF
CFLAS
H_REG
F
CGPD
MA2F
CGPD
MA1F
wwwwwwwwwwwww

Bit 31 CMPCBB5_REGF: clear the illegal access flag for MPCBB5 registers

0: no action

1: status flag cleared

Bit 30 CSRAM5F: clear the illegal access flag for SRAM5

0: no action

1: status flag cleared

Bit 29 CMPCBB3_REGF: clear the illegal access flag for MPCBB3 registers

0: no action

1: status flag cleared

Bit 28 CSRAM3F: clear the illegal access flag for SRAM3

0: no action

1: status flag cleared

Bit 27 CMPCBB2_REGF: clear the illegal access flag for MPCBB2 registers

0: no action

1: status flag cleared

Bit 26 CSRAM2F: clear the illegal access flag for SRAM2

0: no action

1: status flag cleared

Bit 25 CMPCBB1_REGF: clear the illegal access flag for MPCBB1 registers

0: no action

1: status flag cleared

Bit 24 CSRAM1F: clear the illegal access flag for SRAM1

0: no action

1: status flag cleared

Bit 23 CMPCBB4_REGF: clear the illegal access flag for MPCBB4 registers

0: no action

1: status flag cleared

Bit 22 CSRAM4F: clear the illegal access flag for SRAM4

0: no action

1: status flag cleared

5.7.13 GTZC1 TZIC register map

Table 32. GTZC1 TZIC register map and reset values

OffsetRegister313029282726252423222120191817161514131211109876543210
0x000GTZC1_TZIC_IER1LPTIM2IEDTSIEUART12IEUART9IEUART8IEUART7IEDAC1IEHDMICECIEUSART11IEUSART10IEUSART6IECRSIEI3C1IEI2C2IEI2C1IEUART5IEUART4IEUSART3IEUSART2IESPI3IESPI2IEIWDGIEWWDGIETIM14IETIM13IETIM12IETIM7IETIM6IETIM5IETIM4IETIM3IETIM2IE
Reset value00000000000000000000000000000000
0x004GTZC1_TZIC_IER2LPTIM5IELPTIM4IELPTIM3IELPTIM1IEI2C4IEI2C3IELPUART1IESPI5IERes.Res.Res.Res.Res.SAI2IESAI1IESPI6IESPI4IETIM17IETIM16IETIM15IEUSART1IETIM8IESPI1IETIM1IERes.Res.Res.Res.Res.UCPDIEFDCAN2IEFDCAN1IE
Reset value0000000000000000000000
0x008GTZC1_TZIC_IER3Res.Res.Res.Res.Res.RAMCFGIERes.OCTOSPI1IEFMCIESDMMC2IESDMMC1IEPKAIESAESIERNGIEHASHIEAESIEDCMIIEADC12IEDCACHEIEICACHEIEETHIEFMACIECORDICIECRCIERes.Res.Res.Res.Res.Res.VREFBUFIELPTIM6IE
Reset value00000000000000000000
0x00CGTZC1_TZIC_IER4Res.Res.MPCBB3_REGIESRAM3IEMPCBB2_REGIESRAM2IEMPCBB1_REGIESRAM1IERes.Res.Res.BKPSRAMIEFMC_MEMIEOCTOSPI1_MEMIETZIC1IETZSC1IERes.Res.Res.Res.EXTIIERCCIEPWRIETAMPIERTCIESBSIERes.OTFDEC1IEFLASHIEFLASH_REGIEGPDMA2IEGPDMA1IE
Reset value0000000000000000000000
0x010GTZC1_TZIC_SR1LPTIM2FDTSFUART12FUART9FUART8FUART7FDAC1FHDMICECFUSART11FUSART10FUSART6FCRSFI3C1FI2C2FI2C1FUART5FUART4FUSART3FUSART2FSPI3FSPI2FIWDGFWWDGFTIM14FTIM13FTIM12FTIM7FTIM6FTIM5FTIM4FTIM3FTIM2F
Reset value00000000000000000000000000000000
0x014GTZC1_TZIC_SR2LPTIM5FLPTIM4FLPTIM3FLPTIM1FI2C4FI2C3FLPUART1FSPI5FRes.Res.Res.Res.Res.SAI2FSAI1FSPI6FSPI4FTIM17FTIM16FTIM15FUSART1FTIM8FSPI1FTIM1FRes.Res.Res.Res.Res.UCPDFFDCAN2FFDCAN1F
Reset value0000000000000000000000
0x018GTZC1_TZIC_SR3Res.Res.Res.Res.Res.RAMCFGFRes.OCTOSPI1FFMCFSDMMC2FSDMMC1FPKAFSAESFRNGFHASHFAESFDCMIFADC12FDCACHEFICACHEFETHFFMACFCORDICFCRCFRes.Res.Res.Res.Res.Res.VREFBUFFLPTIM6F
Reset value00000000000000000000
0x01CGTZC1_TZIC_SR4Res.Res.MPCBB3_REGFSRAM3FMPCBB2_REGFSRAM2FMPCBB1_REGFSRAM1FRes.Res.Res.BKPSRAMFFMC_MEMFOCTOSPI1_MEMFTZIC1FTZSC1FRes.Res.Res.Res.EXTIFRCCFPWRFTAMPFRTCFSBSFRes.OTFDEC1FFLASHFFLASH_REGFGPDMA2FGPDMA1F
Reset value0000000000000000000000
0x020GTZC1_TZIC_
FCR1
CLPTIM2FCDTSFCUART12FCUART9FCUART8FCUART7FCDAC1FCHDMICECFCUSART11FCUSART10FCUSART6FCCRSFCI3C1FCI2C2FCI2C1FCUART5FCUART4FCUSART3FCUSART2FCSPI3FCSPI2FCIWDGFCWWDGFCTIM14FCTIM13FCTIM12FCTIM7FCTIM6FCTIM5FCTIM4FCTIM3FCTIM2F
Reset value00000000000000000000000000000000
Table 32. GTZC1 TZIC register map and reset values (continued)
OffsetRegister313029282726252423222120191817161514131211109876543210
0x024GTZC1_TZIC_
FCR2
CLPTIM5FCLPTIM4FCLPTIM3FCLPTIM1FCI2C4FCI2C3FCLPUART1FCSPI5FRes.Res.Res.Res.Res.CSAI2FCSAI1FCSPI6FCSPI4FCTIM17FCTIM16FCTIM15FCUSART1FCTIM8FCSPI1FCTIM1FRes.Res.Res.Res.Res.CUCPDFCFDCAN2FCFDCAN1F
Reset value0000000000000000000000
0x028GTZC1_TZIC_
FCR3
Res.Res.Res.Res.Res.CRAMCFGFRes.COCTOSPI1FCFMCFCSDMMC2FCSDMMC1FCPKAFCSAESFCRNGFCHASHFCAESFCDCMIFCADC12FCDCACHEFCICACHEFCETHFCFMACFCCORDICFCCRCFRes.Res.Res.Res.Res.Res.CVREFBUFFCLPTIM6F
Reset value00000000000000000000
0x02CGTZC1_TZIC_
FCR4
Res.Res.CMPCBB3_REGFCSRAM3FCMPCBB2_REGFCSRAM2FCMPCBB1_REGFCSRAM1FRes.Res.Res.CBKPSRAMFCFMC_MEMFCOCTOSPI1_MEMFCTZIC1FCTZSC1FRes.Res.Res.Res.CEXTIFCRCCFCPWRFCTAMPFCRTCFCSBSFRes.COTFDEC1FCFLASHFCFLASH_REGFCGPDMA2FCGPDMA1F
Reset value0000000000000000000000
Refer to Table 24: GTZC1 sub-block address offset .

5.8 GTZC1 MPCBBz registers (z = 1 to 3)

All registers are accessed only by words (32-bit).

5.8.1 GTZC1 SRAMz MPCBB control register (GTZC1_MPCBBz_CR) (z = 1 to 3)

Address offset: 0x000

Reset value: 0x0000 0000

Secure privileged access only.

31302928272625242322212019181716
SRWILADISINVSECSTATERes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.GLOCK
rs

Bit 31 SRWILADIS: Secure read/write illegal access disable

This bit disables the detection of an illegal access when a secure read/write transaction access a nonsecure blocks of the block-based SRAM (secure fetch on nonsecure block is always considered illegal).

0: Enabled, secure read/write access not allowed on nonsecure SRAM block

1: Disabled, secure read/write access allowed on nonsecure SRAM block

Bit 30 INVSECSTATE: SRAMx clocks security state

This bit is used to define the internal SRAMs clocks control in RCC as secure or not.

0: SRAMs clocks are secure if a secure area exists in the MPCBB. It is nonsecure if there is no secure area.

1: SRAMs clocks are nonsecure even if a secure area exists in the MPCBB, and secure even if no secure block is set in the MPCBB.

Bits 29:1 Reserved, must be kept at reset value.

Bit 0 GLOCK: lock the control register of the MPCBB until next reset

This bit is cleared by default and once set, it can not be reset until system reset.

0: Control register not locked

1: Control register locked

5.8.2 GTZC1 SRAMz MPCBB configuration lock register 1
(GTZC1_MPCBBz_CFGLOCK1) (z = 1 to 3)

Address offset: 0x010

Reset value: 0x0000 0000

Secure privileged access only.

31302928272625242322212019181716
SPLCK31SPLCK30SPLCK29SPLCK28SPLCK27SPLCK26SPLCK25SPLCK24SPLCK23SPLCK22SPLCK21SPLCK20SPLCK19SPLCK18SPLCK17SPLCK16
rsrsrsrsrsrsrsrsrsrsrsrsrsrsrsrs
1514131211109876543210
SPLCK15SPLCK14SPLCK13SPLCK12SPLCK11SPLCK10SPLCK9SPLCK8SPLCK7SPLCK6SPLCK5SPLCK4SPLCK3SPLCK2SPLCK1SPLCK0
rsrsrsrsrsrsrsrsrsrsrsrsrsrsrsrs

Bits 31:0 SPLCKy: Security/privilege configuration lock for super-block (y = 31 to 0)

This bit is set by software and can be cleared only by system reset.

0: GTZC1_MPCBBz_SECCFGRy and GTZC1_MPCBBz_PRIVCFGRy can be written.

1: Writes to GTZC1_MPCBBz_SECCFGRy and GTZC1_MPCBBz_PRIVCFGRy are ignored

5.8.3 GTZC1 SRAM1 MPCBB security configuration for super-block x
register (GTZC1_MPCBB1_SECCFGRx)

Address offset: 0x100 + 0x4 * x, (x = 0 to 31)

Reset value: 0xFFFF FFFF

The given reset value is valid when TZEN = 0xB4. The reset value is 0x0000 0000 when TZEN = 0xC3.

Write access to this register is secure only. Any read is allowed.

31302928272625242322212019181716
SEC31SEC30SEC29SEC28SEC27SEC26SEC25SEC24SEC23SEC22SEC21SEC20SEC19SEC18SEC17SEC16
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
SEC15SEC14SEC13SEC12SEC11SEC10SEC9SEC8SEC7SEC6SEC5SEC4SEC3SEC2SEC1SEC0
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 SECy: Security configuration for block y (y = 31 to 0)

0: Nonsecure access only to block y, belonging to super-block x. Secure access is also allowed if the SRWILADIS bit is set in GTZC1_MPCBB1_CR.

1: Secure access only to block y, belonging to super-block x.

Unprivileged write to this bit is ignored if PRIVy bit is set in GTZC1_MPCBB1_PRIVCFGRx.

Writes are ignored if SPLCKx bit is set in GTZC1_MPCBB1_CFGLOCK.

5.8.4 GTZC1 SRAM2 MPCBB security configuration for super-block x register (GTZC1_MPCBB2_SECCFGRx)

Address offset: 0x100+0x4*x, (x = 0 to 31)

Reset value: 0xFFFF FFFF

The given reset value is valid when TZEN = 0xB4. The reset value is 0x0000 0000 when TZEN = 0xC3.

Write access to this register is secure only. Any read is allowed.

31302928272625242322212019181716
SEC31SEC30SEC29SEC28SEC27SEC26SEC25SEC24SEC23SEC22SEC21SEC20SEC19SEC18SEC17SEC16
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
SEC15SEC14SEC13SEC12SEC11SEC10SEC9SEC8SEC7SEC6SEC5SEC4SEC3SEC2SEC1SEC0
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 SECy: Security configuration for block y (y = 31 to 0)

0: Nonsecure access only to block y, belonging to super-block x. Secure access is also allowed if the SRWILADIS bit is set in GTZC1_MPCBB2_CR.

1: Secure access only to block y, belonging to super-block x.

Unprivileged write to this bit is ignored if PRIVy bit is set in GTZC1_MPCBB2_PRIVCFGRx. Writes are ignored if SPLCKx bit is set in GTZC1_MPCBB2_CFGLOCK.

5.8.5 GTZC1 SRAM3 MPCBB security configuration for super-block x register (GTZC1_MPCBB3_SECCFGRx)

Address offset: 0x100+0x4*x, (x = 0 to 31)

Reset value: 0xFFFF FFFF

The given reset value is valid when TZEN = 0xB4. The reset value is 0x0000 0000 when TZEN = 0xC3.

Write access to this register is secure only. Any read is allowed.

31302928272625242322212019181716
SEC31SEC30SEC29SEC28SEC27SEC26SEC25SEC24SEC23SEC22SEC21SEC20SEC19SEC18SEC17SEC16
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
SEC15SEC14SEC13SEC12SEC11SEC10SEC9SEC8SEC7SEC6SEC5SEC4SEC3SEC2SEC1SEC0
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 SECy: Security configuration for block y (y = 31 to 0)

0: Nonsecure access only to block y, belonging to super-block x. Secure access is also allowed if the SRWILADIS bit is set in GTZC1_MPCBB3_CR.

1: Secure access only to block y, belonging to super-block x.

Unprivileged write to this bit is ignored if PRIVy bit is set in GTZC1_MPCBB3_PRIVCFGRx. Writes are ignored if SPLCKx bit is set in GTZC1_MPCBB3_CFGLOCK.

5.8.6 GTZC1 SRAM1 MPCBB privileged configuration for super-block x register (GTZC1_MPCBB1_PRIVCFGRx)

Address offset: 0x200+0x4*x, (x = 0 to 31)

Reset value: 0xFFFF FFFF

The given reset value is valid when TZEN = 0xB4. The reset value is 0x0000 0000 when TZEN = 0xC3. Write access to this register is privileged only. Any read is allowed.

31302928272625242322212019181716
PRIV31PRIV30PRIV29PRIV28PRIV27PRIV26PRIV25PRIV24PRIV23PRIV22PRIV21PRIV20PRIV19PRIV18PRIV17PRIV16
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
PRIV15PRIV14PRIV13PRIV12PRIV11PRIV10PRIV9PRIV8PRIV7PRIV6PRIV5PRIV4PRIV3PRIV2PRIV1PRIV0
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 PRIVy: Privileged configuration for block y, belonging to super-block x (y = 31 to 0).

0: Privileged and unprivileged access to block y, belonging to super-block x

1: Only privileged access to block y, belonging to super-block x

Nonsecure write to this bit is ignored if SECy bit is set in GTZC1_MPCBB1_SECCFGRx.

Writes are ignored if SPLCKx bit is set in GTZC1_MPCBB1_CFGLOCK.

5.8.7 GTZC1 SRAM2 MPCBB privileged configuration for super-block x register (GTZC1_MPCBB2_PRIVCFGRx)

Address offset: 0x200+0x4*x, (x = 0 to 31)

Reset value: 0xFFFF FFFF

The given reset value is valid when TZEN = 0xB4. The reset value is 0x0000 0000 when TZEN = 0xC3. Write access to this register is privileged only. Any read is allowed.

31302928272625242322212019181716
PRIV31PRIV30PRIV29PRIV28PRIV27PRIV26PRIV25PRIV24PRIV23PRIV22PRIV21PRIV20PRIV19PRIV18PRIV17PRIV16
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
PRIV15PRIV14PRIV13PRIV12PRIV11PRIV10PRIV9PRIV8PRIV7PRIV6PRIV5PRIV4PRIV3PRIV2PRIV1PRIV0
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 PRIVy: Privileged configuration for block y, belonging to super-block x (y = 31 to 0).

0: Privileged and unprivileged access to block y, belonging to super-block x

1: Only privileged access to block y, belonging to super-block x

Nonsecure write to this bit is ignored if SECy bit is set in GTZC1_MPCBB2_SECCFGRx.

Writes are ignored if SPLCKx bit is set in GTZC1_MPCBB2_CFGLOCK.

5.8.8 GTZC1 SRAM3 MPCBB privileged configuration for super-block x register (GTZC1_MPCBB3_PRIVCFGRx)

Address offset: 0x200+0x4*x, (x = 0 to 31)

Reset value: 0xFFFF FFFF

The given reset value is valid when TZEN = 0xB4. The reset value is 0x0000 0000 when TZEN = 0xC3. Write access to this register is privileged only. Any read is allowed.

31302928272625242322212019181716
PRIV31PRIV30PRIV29PRIV28PRIV27PRIV26PRIV25PRIV24PRIV23PRIV22PRIV21PRIV20PRIV19PRIV18PRIV17PRIV16
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
PRIV15PRIV14PRIV13PRIV12PRIV11PRIV10PRIV9PRIV8PRIV7PRIV6PRIV5PRIV4PRIV3PRIV2PRIV1PRIV0
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 PRIVy: Privileged configuration for block y, belonging to super-block x (y = 31 to 0).

0: Privileged and unprivileged access to block y, belonging to super-block x

1: Only privileged access to block y, belonging to super-block x

Nonsecure write to this bit is ignored if SECy bit is set in GTZC1_MPCBB3_SECCFGRx.

Writes are ignored if SPLCKx bit is set in GTZC1_MPCBB3_CFGLOCK.

5.8.9 GTZC1 MPCBBz register map (z = 1 to 3)

Table 33. GTZC1 MPCBBz register map and reset values (z = 1 to 3)

OffsetRegister313029282726252423222120191817161514131211109876543210
0x000GTZC1_MPCBBz_CRSRWLADISINVSECSTATERes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.GLOCK
Reset value000
0x004-0x00CReservedReserved
0x010GTZC1_MPCBBz_CFGLOCK1SPLCK31SPLCK30SPLCK29SPLCK28SPLCK27SPLCK26SPLCK25SPLCK24SPLCK23SPLCK22SPLCK21SPLCK20SPLCK19SPLCK18SPLCK17SPLCK16SPLCK15SPLCK14SPLCK13SPLCK12SPLCK11SPLCK10SPLCK9SPLCK8SPLCK7SPLCK6SPLCK5SPLCK4SPLCK3SPLCK2SPLCK1SPLCK0
Reset value00000000000000000000000000000000
0x014-0x0FCReservedReserved
0x100 + 0x04 *x (x = 0 to 31)GTZC1_MPCBBz_SECCFGRxSEC31SEC30SEC29SEC28SEC27SEC26SEC25SEC24SEC23SEC22SEC21SEC20SEC19SEC18SEC17SEC16SEC15SEC14SEC13SEC12SEC11SEC10SEC9SEC8SEC7SEC6SEC5SEC4SEC3SEC2SEC1SEC0
Reset value11111111111111111111111111111111
0x180-0x1FCReservedReserved
0x200 + 0x04 *x (x = 0 to 31)GTZC1_MPCBBz_PRIVCFGRxPRIV31PRIV30PRIV29PRIV28PRIV27PRIV26PRIV25PRIV24PRIV23PRIV22PRIV21PRIV20PRIV19PRIV18PRIV17PRIV16PRIV15PRIV14PRIV13PRIV12PRIV11PRIV10PRIV9PRIV8PRIV7PRIV6PRIV5PRIV4PRIV3PRIV2PRIV1PRIV0
Reset value11111111111111111111111111111111

Refer to Table 24: GTZC1 sub-block address offset.