5. Global TrustZone ® controller (GTZC)

5.1 GTZC introduction

The global TrustZone controller (GTZC) block contains the following subblocks:

These subblocks 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

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 17.

Figure 17. GTZC in Armv8-M subsystem block diagram

Figure 17. GTZC in Armv8-M subsystem block diagram showing connections between Cortex-M33, AHB masters, AHB bus, AHB2/APB bridge (with Sec/priv gate), APB bus with securable peripherals (UART, SPI, Timer), GTZCx block containing TZSC, TZIC, and MPCBBx, Internal SRAM blocks (NS and S), MPCWMx with external memories (Sub-region A, sp, Sub-region B), and AHB-PPC stub with Crypto (AES) securable peripheral.
Figure 17. GTZC in Armv8-M subsystem block diagram showing connections between Cortex-M33, AHB masters, AHB bus, AHB2/APB bridge (with Sec/priv gate), APB bus with securable peripherals (UART, SPI, Timer), GTZCx block containing TZSC, TZIC, and MPCBBx, Internal SRAM blocks (NS and S), MPCWMx with external memories (Sub-region A, sp, Sub-region B), and AHB-PPC stub with Crypto (AES) securable peripheral.

5.3 GTZC implementation

The STM32H5 devices embed one instance of GTZC.

Table 29. GTZC features

GTZC subblocksGTZC1
TZSCX
TZICX
MPCBB subblock (number of MPCBBs)X (3)

Table 30 shows the address offset of GTZC subblocks versus GTZC base address (refer to Section 2.3 for GTZC1 base address).

Table 30. GTZC1 subblock address offset
GTZC1 subblockAddress offset
GTZC1_TZSC0x0
GTZC1_TZIC0x400
GTZC1_MPCBB10x800
GTZC1_MPCBB20xC00
GTZC1_MPCBB30x1000

Table 31 and Table 32 describe the characteristics of the available MPCWMs.

Table 31. 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 1(1)1128 K
MPCWM4BKPSRAM132
FMC_SDRAM_bank 2(1)1128 K

1. Not available on STM32H523/33xx devices.

Table 32. MPCWM3 and MPCWM4 (subregions A and B)
GTZMPCTarget memory interfaceSubregion
GTZC1MPCWM3FMC_NAND bankA
FMC_SDRAM bank 1(1)B
MPCWM4BKPSRAMA
FMC_SDRAM_bank 2(1)B

1. Not available on STM32H523/33xx devices.

Table 33 and Table 35 describe the characteristics of the available MPCBBs.

Table 33. MPCBB resource assignment (STM32H562/63/73xx devices)
GTZCMPCResourceMemory size (Kbytes)Block size (bytes)Number of blocksNumber of super-blocks
GTZC1MPCBB1SRAM125651251216
MPCBB2SRAM2641284
MPCBB3SRAM332064020
Table 34. MPCBB resource assignment (STM32H543/53xx devices)
GTZCMPCResourceMemory size (Kbytes)Block size (bytes)Number of blocksNumber of super-blocks
GTZC1MPCBB1SRAM11285122568
MPCBB2SRAM2801605
MPCBB3SRAM3961926
Table 35. MPCBB resource assignment (STM32H523/33xx devices)
GTZCMPCResourceMemory size (Kbytes)Block size (bytes)Number of blocksNumber of super-blocks
GTZC1MPCBB1SRAM11285122568
MPCBB2SRAM2801605
MPCBB3SRAM3641284

5.4 GTZC functional description

5.4.1 GTZC block diagram

Figure 18 describes the combined feature of TZSC, MPCBB, and TZIC. Each subblock 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 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 18. GTZC block diagram

Figure 18: GTZC block diagram. The diagram shows the GTZC block containing TZSC, MPCBB, and TZIC sub-blocks connected to AHB buses. TZSC controls secure/nonsecure and privileged/unprivileged access to peripherals and external memories/backup SRAM. MPCBB controls access to internal SRAMs. Illegal access events (TZSC_ILA_event, MPCBB_ILA_event, TZIC_ILA_event, and N x peripheral ILA events) are routed to TZIC, which generates a global ILA interrupt to the NVIC.

(from option bytes)
TZEN

AHB

AHB

AHB

TZSC

SECCFGR
PRIVCFGR

MPCWMxZCFGR
MPCWMxZR

MPCBB

CFGLOCK
SECCFGR
PRIVCFGR

TZIC

IER
SR
FCR

GTZC

Secure/nonsecure
Privileged/unprivileged

To peripherals

Secure/nonsecure
Privileged/unprivileged

To external memories
and backup SRAM

TZSC_ILA_event

Secure/nonsecure
Privileged/unprivileged

To internal SRAMs

MPCBB_ILA_event

GTZC
(global ILA interrupt
to NVIC)

TZIC_ILA_event

N x ILA_event
(from peripherals)

ILA= illegal access (security only)

MSv63638V1

Figure 18: GTZC block diagram. The diagram shows the GTZC block containing TZSC, MPCBB, and TZIC sub-blocks connected to AHB buses. TZSC controls secure/nonsecure and privileged/unprivileged access to peripherals and external memories/backup SRAM. MPCBB controls access to internal SRAMs. Illegal access events (TZSC_ILA_event, MPCBB_ILA_event, TZIC_ILA_event, and N x peripheral ILA events) are routed to TZIC, which generates a global ILA interrupt to the NVIC.

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: the latter ones authorize non secure read access to secure registers (see GTZC1_TZSC_SECCFGRx/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

RM0481 Global TrustZone® controller (GTZC)

RM0481 Rev 5 197/3766

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 generates 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 accesses. The addressed resource follows a silent-fail behavior, returning all 0 data for read and ignoring any write. No bus error is generated. A bus error is generated when an 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, and to define the right attributes of each subregion.

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

Diagram of Watermark memory protection controller (region x/subregions A and B). The diagram shows a vertical stack of memory regions. From top to bottom: a large grey block labeled 'Secure privileged'; a white block labeled 'Nonsecure unprivileged' (labeled 'Sub-region B' on the right); a grey block labeled 'Secure privileged'; a white block labeled 'Nonsecure privileged' (labeled 'Sub-region A' on the right); and a large grey block labeled 'Secure privileged' at the bottom. On the left, arrows point to the boundaries: 'SUBB_START + SUBB_LENGTH' points to the top of the 'Nonsecure unprivileged' block; 'SUBB_START' points to the top of the 'Secure privileged' block; 'SUBA_START + SUBA_LENGTH' points to the top of the 'Nonsecure privileged' block; and 'SUBA_START' points to the top of the bottom 'Secure privileged' block. The top of the diagram is labeled 'Region x in secure privileged by default'. The bottom right corner of the diagram area is labeled 'MSv63635V1'.
Diagram of Watermark memory protection controller (region x/subregions A and B). The diagram shows a vertical stack of memory regions. From top to bottom: a large grey block labeled 'Secure privileged'; a white block labeled 'Nonsecure unprivileged' (labeled 'Sub-region B' on the right); a grey block labeled 'Secure privileged'; a white block labeled 'Nonsecure privileged' (labeled 'Sub-region A' on the right); and a large grey block labeled 'Secure privileged' at the bottom. On the left, arrows point to the boundaries: 'SUBB_START + SUBB_LENGTH' points to the top of the 'Nonsecure unprivileged' block; 'SUBB_START' points to the top of the 'Secure privileged' block; 'SUBA_START + SUBA_LENGTH' points to the top of the 'Nonsecure privileged' block; and 'SUBA_START' points to the top of the bottom 'Secure privileged' block. The top of the diagram is labeled 'Region x in secure privileged by default'. The bottom right corner of the diagram area is labeled 'MSv63635V1'.

In Figure 19, region x represents the external memory or backup SRAM region (such as FMC bank, OCTOSPI1, 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, 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 subregions A and B, when an overlap exists.

Table 36. Secure properties of subregions A and B

Subregion ASubregion BProperties of overlapped region A and B
NonsecureNonsecureNonsecure
NonsecureSecureNonsecure
SecureNonsecureNonsecure
SecureSecureSecure

Table 37. 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 SRAMs. The security and privileged policy can be individually configured per each 512-byte block.

Figure 20. MPCBB block diagram

Block diagram of the MPCBB (Memory Protection Controller - Block Based). The diagram shows the MPCBB block containing registers: MPCBB_CR, MPCBB_SECCFGR, MPCBB_PRIVCFGR, and MPCBB_CFGLOCK. It is connected to the AHB bus via a bidirectional arrow. A TZEN signal (from option bytes) is an input. The MPCBB outputs 'Secure/nonsecure' and 'Privileged/unprivileged' signals. It also outputs an 'MPCBB_ILA_event (to TZIC)' signal, with a note 'ILA = illegal access (security only)'. The version number 'MSv63636V1' is at the bottom right.
Block diagram of the MPCBB (Memory Protection Controller - Block Based). The diagram shows the MPCBB block containing registers: MPCBB_CR, MPCBB_SECCFGR, MPCBB_PRIVCFGR, and MPCBB_CFGLOCK. It is connected to the AHB bus via a bidirectional arrow. A TZEN signal (from option bytes) is an input. The MPCBB outputs 'Secure/nonsecure' and 'Privileged/unprivileged' signals. It also outputs an 'MPCBB_ILA_event (to TZIC)' signal, with a note 'ILA = illegal access (security only)'. The version number 'MSv63636V1' is at the bottom right.

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

An 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 an 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, GTZC1_TZSC_MPCWMxzR 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 38. 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.

RM0481column_2column_3
313029 28 27 26 25 24 23 22 21 20 19 18 17 16
Res.Res.Res. Res. Res. Res. Res. Res. Res. Res. Res. Res. Res. Res. Res. Res.
151413 12 11 10 9 8 7 6 5 4 3 2 1 0
Res.Res.Res. Res. Res. Res. Res. Res. Res. Res. Res. Res. Res. Res. Res. LCK rs
Bit 0 LCK: lock the configuration of GTZC1_TZSC_SECCFGRx and GTZC1_TZSC_PRIVCFGRx until next 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
313029 28 27 26 25 24 23 22 21 20 19 18 17 16
LPTIM2DTSSEUART1 UART9 UART8 UART7 DAC1S HDMIC USART USART USART CRSSE I3C1SE I2C2SE I2C1SE UART5
SECC2SEC SEC SEC SEC EC ECSEC 11SEC 10SEC 6SEC C C C C SEC
rwrwrw rw rw rw rw rw rw rw rw rw rw rw rw rw
151413 12 11 10 9 8 7 6 5 4 3 2 1 0
UART4USARTUSART SPI3SE SPI2SE IWDGS WWDG TIM14S TIM13S TIM12S TIM7S TIM6S TIM5S TIM4S TIM3S TIM2S
SEC3SEC2SEC C C EC SEC EC EC EC EC EC EC EC EC EC
rwrwrw rw rw rw rw rw rw rw rw rw rw rw rw rw

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 cannot 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 a 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.

Refer to the device datasheet for the peripheral availability. If not present, consider the associated bit as reserved, and keep it at reset value.

Bit 2 TIM4SEC: secure access mode for TIM4

0: nonsecure

1: secure

Bit 1 TIM3SEC: secure access mode for TIM3

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 a 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 a secure unprivileged transaction.

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

Refer to the device datasheet for the peripheral availability. If not present, consider the associated bit as reserved, and keep it at reset value.

31302928272625242322212019181716
LPTIM5
SEC
LPTIM4
SEC
LPTIM3
SEC
LPTIM1
SEC
I2C4SE
C
I2C3SE
C
LPUAR
T1SEC
SPI5SE
C
Res.Res.Res.Res.USBSE
C
SAI2SE
C
SAI1SE
C
SPI6SE
C
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
SPI4SE
C
TIM17S
EC
TIM16S
EC
TIM15S
EC
USART
1SEC
TIM8S
EC
SPI1SE
C
TIM1S
EC
Res.Res.Res.COMP
SEC
Res.UCPDS
EC
FDCAN
2SEC
FDCAN
1SEC
rwrwrwrwrwrwrwrwrwrwrwrw

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 9 SPI1SEC: secure access mode for SPI1

0: nonsecure

1: secure

Bit 8 TIM1SEC: secure access mode for TIM1

0: nonsecure

1: secure

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

Bit 4 COMPSEC: secure access mode for COMP

0: nonsecure

1: secure

Bit 3 Reserved, must be kept at reset value.

Bit 2 UCPDSEC: secure access mode for UCPD

0: nonsecure

1: secure

Bit 1 FDCAN2SEC: secure access mode for FDCAN2

0: nonsecure

1: secure

Bit 0 FDCAN1SEC: secure access mode for FDCAN1

0: nonsecure

1: secure

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 a 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 a secure unprivileged transaction.

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

Refer to the device datasheet for the peripheral availability. If not present, consider the associated bit as reserved, and keep it at reset value.

5.6.4column_2Bit 9 Bit 8 Bit 4 Bit 2 Bit 1 Bit 0SPI1SEC 1: secure TIM1SEC 1: secure COMPSEC 1: secure UCPDSEC 1: secure FDCAN2SEC 1: secure FDCAN1SEC 1: secure0: nonsecure 0: nonsecure 0: nonsecure 0: nonsecure 0: nonsecure 0: nonsecurecolumn_6column_7column_8column_9column_10column_11column_12column_13column_14column_15RM0481
3130292827262524 OCTOS2322212019181716
Res.Res.Res.Res.Res.RAMCPI1SEFMCSESDMMSDMMPKASESAESSRNGSHASHSAESSE
FGSECRes.CC2SECC1SECCECECECC
rwrwrwrwrwrwrwrwrwrw
1514131211109876543210
DCMISADC12DCACICACHETHSEFMACSCORDICRCSEVREFBLPTIM6
CRes.ADC3S
ECRes.CCBSE
CRes.I3C2SE
ECSECHESECESECCECCSECCUFSECSEC
rwrwrwrwrwrwrwrwrwrwrwrwrw

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

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 a 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 a nonsecure privileged transaction.

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

Refer to the device datasheet for the peripheral availability. If not present, consider the associated bit as reserved, and keep it at reset value.

RM0481 Bit 5SPI5RST: SPI5 block reset
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 a 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 a nonsecure privileged transaction.

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

Refer to the device datasheet for the peripheral availability. If not present, consider the associated bit as reserved, and keep it at reset value.

31302928272625242322212019181716
LPTIM5
PRIV
LPTIM4
PRIV
LPTIM3
PRIV
LPTIM1
PRIV
I2C4PR
IV
I2C3PR
IV
LPUAR
T1PRIV
SPI5P
RIV
Res.Res.Res.Res.USBPR
IV
SAI2P
RIV
SAI1P
RIV
SPI6P
RIV
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
SPI4P
RIV
TIM17P
RIV
TIM16P
RIV
TIM15P
RIV
USART
1PRIV
TIM8P
RIV
SPI1P
RIV
TIM1P
RIV
Res.Res.Res.COMP
PRIV
Res.UCPDP
RIV
FDCAN
2PRIV
FDCAN
1PRIV
rwrwrwrwrwrwrwrwrwrwrwrw

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:20 Reserved, must be kept at reset value.

Bit 19 USBPRIV: privileged access mode for USB

Bit 18 SAI2PRIV: privileged access mode for SAI2

Bit 17 SAI1PRIV: privileged access mode for SAI1

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 a secure privileged transaction when the corresponding GTZC1_TZSC_SECCFGR signal is set to1. If a given SEC bit is not set, the equivalent PRIV bit can be read/written by a nonsecure privileged transaction.

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

Refer to the device datasheet for the peripheral availability. If not present, consider the associated bit as reserved, and keep it at reset value.

31302928272625242322212019181716
Res.Res.Res.Res.Res.RAMCFGPRIVRes.OCTOSPI1PRIVFMCPRIVSDMMC2PRIVSDMMC1PRIVPKAPRIVSAESPRIVRNGPRIVHASHPRIVAESPRIV
rwrwrwrwrwrwrwrwrwrw
1514131211109876543210
DCMIPRIVADC12PRIVDCACHEPRIVICACHEPRIVETHPRIVFMACPRIVCORDICPRIVCRCPRIVRes.ADC3PRIVRes.CCBPRIVRes.I3C2PRIVVREFBUFPRIVLPTIM6PRIV
rwrwrwrwrwrwrwrwrwrwrwrwrw

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

Bit 26 RAMCFGPRIV: privileged access mode for RAMSCFG

0: unprivileged

1: privileged

Bit 25 Reserved, must be kept at reset value.

Bit 24 OCTOSPI1PRIV: privileged access mode for OCTOSPI1

0: unprivileged

1: privileged

Bit 23 FMCPRIV: privileged access mode for FMC

0: unprivileged

1: privileged

Bit 22 SDMMC2PRIV: privileged access mode for SDMMC2

0: unprivileged

1: privileged

Bit 21 SDMMC1PRIV: privileged access mode for SDMMC1

0: unprivileged

1: privileged

Bit 20 PKAPRIV: privileged access mode for PKA

0: unprivileged

1: privileged

Bit 19 SAESPRIV: privileged access mode for SAES

0: unprivileged

1: privileged

Bit 2 I3C2PRIV: privileged access mode for I3C2

0: unprivileged

1: privileged

Bit 1 VREFBUFPRIV: privileged access mode for VREFBUF

0: unprivileged

1: privileged

Bit 0 LPTIM6PRIV: privileged access mode for LPTIM6

0: unprivileged

1: privileged

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

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

Reset value: 0x0000 0000

Secure privilege access only.

BitRegister NameDescriptionReservedReservedReservedReservedReservedReservedReservedReservedReservedReservedReservedReservedReserved
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.SRLOCK SREN
rwrwrsrw
Bit 9PRIV: Privileged subregion A of base region x
Bit 8SEC: Secure subregion A of base region x
Bit 1SRLOCK: Subregion A lock

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, GTZC1_TZSC_MPCWMxAR and GTZC1_TZSC_MPCWMxBR can be written.

1: Writes to GTZC1_TZSC_MPCWMxCFGR, GTZC1_TZSC_MPCWMxAR and GTZC1_TZSC_MPCWMxBR are ignored.

Bit 0 SREN: Subregion A 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, defined in GTZC1_TZSC_MPCWMxAR and GTZC1_TZSC_MPCWMxBR.

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

5.6.9 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 31.

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, subregion A is disabled (SREN bit in GTZC1_TZSC_MPCWMxACFGR 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 31, versus the start of the region x.

Watermark controlled external memories start fully nonsecure at reset when TZEN = 0xC3. When TZEN = 0xB4, they start fully secure (inverted reset value).

5.6.10 GTZC1 TZSC memory x subregion B watermark configuration register (GTZC1_TZSC_MPCWMxBCFGR)

ST logo
ST logo

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.

Bits 7:2 Reserved, must be kept at 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.

ST logo
ST logo

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 31.

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 31, versus the start of the region x.

Watermark controlled external memories start fully nonsecure at reset when TZEN = 0xC3. When TZEN = 0xB4, they start fully secure (inverted reset value).

5.6.12 GTZC1 TZSC register map

Table 39. GTZC1 TZSC register map and reset values

OffsetRegister name313029282726252423222120191817161514131211109876543210
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.USBSECSAI2SECSAI1SECSPI6SECSPI4SECTIM17SECTIM16SECTIM15SECUSART1SECTIM8SECSPI1SECTIM1SECRes.Res.Res.COMPSECRes.UCPDSECFDCAN2SECFDCAN1SEC
Reset value000000000000000000000000
0x018GTZC1_TZSC_
SECCFGR3
Res.Res.Res.Res.Res.RAMCFGSECRes.OCTOSPI1SECFMCSECSDMMC2SECSDMMC1SECPKASECSAESSECRNGSECHASHSECAESSECDCMISECADC12SECDCACHESECICACHESECETHSECFMACSECCORDICSECCRCSECRes.ADC3SECRes.CCBSECRes.I3C2SECVREFBUFSECLPTIM6SEC
Reset value00000000000000000000000
0x01CReservedReserved
0x020GTZC1_TZSC_
PRIVCFGR1
LPTIM2PRIVDTSPRIVUART12PRIVUART9PRIVUART8PRIVUART7PRIVDAC1PRIVHDMICECPRIVUSART11PRIVUSART10PRIVUSART6PRIVCRSPRIVI3C1PRIVI2C2PRIVI2C1PRIVUART5PRIVUART4PRIVUSART3PRIVUSART2PRIVSPI3PRIVSPI2PRIVIWDGPRIVWWDGPRIVTIM14PRIVTIM13PRIVTIM112PRIVTIM7PRIVTIM6PRIVTIM5PRIVTIM4PRIVTIM3PRIVTIM2PRIV
Reset value00000000000000000000000000000000
0x024GTZC1_TZSC_
PRIVCFGR2
LPTIM5PRIVLPTIM4PRIVLPTIM3PRIVLPTIM1PRIVI2C4PRIVI2C3PRIVLPUART1PRIVSPI5PRIVRes.Res.Res.Res.USBPRIVSAI2PRIVSAI1PRIVSPI6PRIVSPI4PRIVTIM17PRIVTIM16PRIVTIM15PRIVUSART1PRIVTIM8PRIVSPI1PRIVTIM1PRIVRes.Res.Res.COMPPRIVRes.UCPDPRIVFDCAN2PRIVFDCAN1PRIV
Reset value000000000000000000000000
0x028GTZC1_TZSC_
PRIVFGR3
Res.Res.Res.Res.Res.RAMCFGPRIVRes.OCTOSPI1PRIVFMCPRIVSDMMC2PRIVSDMMC1PRIVPKAPRIVSAESPRIVRNGPRIVHASHPRIVAESPRIVDCMIPRIVADC12PRIVDCACHEPRIVICACHEPRIVETHPRIVFMACPRIVCORDICPRIVCRCPRIVRes.ADC3PRIVRes.CCBPRIVRes.I3C2PRIVVREFBUFPRIVLPTIM6PRIV
Reset value00000000000000000000000
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 39. GTZC1 TZSC register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
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 30: GTZC1 subblock 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.

Refer to the device datasheet for the peripheral availability. If not present, consider the associated bit as reserved, and keep it at reset value.

5.7 5.7.1column_2column_3RM0481
31 30 29282726 25 24 23 22 21 20 19 18 17 16
LPTIM2UART9IUART8IUART7I DAC1I HDMIC USART USART USART
IE DTSIE UART1
6IE CRSIE I3C1IE I2C2IE I2C1IE UART5I
2IEEEE E ECIE 11IE 10IE E
rw rw rwrwrwrw rw rw rw rw rw rw rw rw rw rw
15 14 13121110 9 8 7 6 5 4 3 2 1 0
UART4I USART USARTWWDG TIM14I TIM13I TIM12I
2IESPI3IE SPI2IEIWDGI
E 3IEE IE E E E TIM7IE TIM6IE TIM5IE TIM4IE TIM3IE TIM2IE
rw rw rwrwrwrw rw rw rw rw rw rw rw rw rw rw
Bit 31LPTIM2IE: illegal access interrupt enable for LPTIM2
Bit 30DTSIE: illegal access interrupt enable for DTS
Bit 29UART12IE: illegal access interrupt enable for UART12
Bit 28UART9IE: illegal access interrupt enable for UART9
Bit 27UART8IE: illegal access interrupt enable for UART8
Bit 26UART7IE: illegal access interrupt enable for UART7
Bit 25DAC1IE: illegal access interrupt enable for DAC1
Bit 24HDMICECIE: illegal access interrupt enable for HDMICEC

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

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.

Refer to the device datasheet for the peripheral availability. If not present, consider the associated bit as reserved, and keep it at reset value.

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_15RM0481
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
IEIEIET1IESPI5IERes.Res.Res.Res.USBIE SAI2IE SAI1IE SPI6IE
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
SPI4IETIM17ITIM16ITIM15IUSARTFDCANFDCAN
1IETIM8IE SPI1IE TIM1IERes.Res.Res.COMPI
ERes.UCPDI
EEEE2IE1IE
rwrwrwrwrwrwrwrwrwrwrwrw

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.

Refer to the device datasheet for the peripheral availability. If not present, consider the associated bit as reserved, and keep it at reset value.

RM0481 Bit 5SPI5RST: SPI5 block reset
31 30 292827 26 25 24 23 22 21 20 19 18 17 16
Res. Res. Res.Res.Res. RAMC SDMM
FGIE Res. OCTOS
PI1IE FMCIE SDMM
C1IE PKAIE SAESI
E RNGIE HASHI
C2IE E AESIE
rw rw rw rw rw rw rw rw rw rw
15 14 131211 10 9 8 7 6 5 4 3 2 1 0
DCMIIE ADC12I DCACICACHCORDI LPTIM6
EIEETHIE FMACI
CIE CRCIE Res. ADC3I
E Res. CCBIE Res. I3C2IE VREFB
E HEIEE UFIE IE
rw rw rwrwrw rw rw rw rw rw rw rw rw
Bit 26RAMCFGIE: illegal access interrupt enable for RAMSCFG 0: interrupt disabled
Bit 24OCTOSPI1IE: illegal access interrupt enable for OCTOSPI1 0: interrupt disabled
Bit 23FMCIE1: interrupt enabled : illegal access interrupt enable for FMC 0: interrupt disabled
Bit 22SDMMC2IE1: interrupt enabled : illegal access interrupt enable for SDMMC2 0: interrupt disabled
Bit 21SDMMC1IE1: interrupt enabled : illegal access interrupt enable for SDMMC1 0: interrupt disabled
Bit 20PKAIE1: interrupt enabled : illegal access interrupt enable for PKA 0: interrupt disabled
Bit 19SAESIE1: interrupt enabled : illegal access interrupt enable for SAES 0: interrupt disabled
Bit 18RNGIE1: interrupt enabled : illegal access interrupt enable for RNG 0: interrupt disabled
Bit 17HASHIE1: interrupt enabled : illegal access interrupt enable for HASH 0: interrupt disabled
Bit 16AESIE1: interrupt enabled : illegal access interrupt enable for AES 0: interrupt disabled
Bit 15DCMIIE1: interrupt enabled : illegal access interrupt enable for DCMI 0: interrupt disabled

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

Bit 26 RAMCFGIE: illegal access interrupt enable for RAMSCFG

0: interrupt disabled

1: interrupt enabled

Bit 25 Reserved, must be kept at reset value.

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

Bit 21 SDMMC1IE: illegal access interrupt enable for SDMMC1

0: interrupt disabled

1: interrupt enabled

Bit 20 PKAIE: illegal access interrupt enable for PKA

0: interrupt disabled

1: interrupt enabled

Bit 19 SAESIE: illegal access interrupt enable for SAES

0: interrupt disabled

1: interrupt enabled

Bit 18 RNGIE: illegal access interrupt enable for RNG

0: interrupt disabled

1: interrupt enabled

Bit 17 HASHIE: illegal access interrupt enable for HASH

0: interrupt disabled

1: interrupt enabled

Bit 16 AESIE: illegal access interrupt enable for AES

0: interrupt disabled

1: interrupt enabled

Bit 15 DCMIIE: illegal access interrupt enable for DCMI

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.

Refer to the device datasheet for the peripheral availability. If not present, consider the associated bit as reserved, and keep it at reset value.

31302928272625242322212019181716
Res.Res.MPCB
B3_RE
GIE
SRAM3
IE
MPCB
B2_RE
GIE
SRAM2
IE
MPCB
B1_RE
GIE
SRAM1
IE
Res.Res.Res.BKPSR
AMIE
FMC_
MEMIE
OCTOS
PI1_M
EMIE
TZIC1I
E
TZSC1I
E
rwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.PLAY1I
E
EXTIIERCCIEPWRIETAMPI
E
RTCIESBSIERes.OTFDE
C1IE
FLASHI
E
FLASH
_REGI
E
GPDM
A2IE
GPDM
A1IE
rwrwrwrwrwrwrwrwrwrwrwrw

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

Bit 29 MPCBB3_REGIE: illegal access interrupt enable for MPCBB3 registers

Bit 28 SRAM3IE: illegal access interrupt enable for SRAM3

Bit 27 MPCBB2_REGIE: illegal access interrupt enable for MPCBB2 registers

Bit 26 SRAM2IE: illegal access interrupt enable for SRAM2

Bit 25 MPCBB1_REGIE: illegal access interrupt enable for MPCBB1 registers

Bit 24 SRAM1IE: illegal access interrupt enable for SRAM1

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

Bit 20 BKPSRAMIE: illegal access interrupt enable for MPCWM4 (BKPSRAM) memory bank

Bit 2 FLASH_REGIE: illegal access interrupt enable for FLASH registers

Bit 1 GPDMA2IE: illegal access interrupt enable for GPDMA2

Bit 0 GPDMA1IE: illegal access interrupt enable for GPDMA1

5.7.5 GTZC1 TZIC status register 1 (GTZC1_TZIC_SR1)

Address offset: 0x010

Reset value: 0x0000 0000

Secure privileged access only.

Refer to the device datasheet for the peripheral availability. If not present, consider the associated bit as reserved, and keep it at reset value.

31302928272625242322212019181716
LPTIM2
F
DTSFUART1
2F
UART9
F
UART8
F
UART7
F
DAC1FHDMIC
ECF
USART
11F
USART
10F
USART
6F
CRSFI3C1FI2C2FI2C1FUART5
F
rrrrrrrrrrrrrrrr
1514131211109876543210
UART4
F
USART
3F
USART
2F
SPI3FSPI2FIWDGFWWDG
F
TIM14FTIM13FTIM12FTIM7FTIM6FTIM5FTIM4FTIM3FTIM2F
rrrrrrrrrrrrrrrr

Bit 31 LPTIM2F: illegal access flag for LPTIM2

Bit 30 DTSF: illegal access flag for DTS

Bit 29 UART12F: illegal access flag for UART12

Bit 28 UART9F: illegal access flag for UART9

Bit 27 UART8F: illegal access flag for UART8

Bit 26 UART7F: illegal access flag for UART7

5.7.6 GTZC1 TZIC status register 2 (GTZC1_TZIC_SR2)

Address offset: 0x014

Reset value: 0x0000 0000

Secure privileged access only.

Refer to the device datasheet for the peripheral availability. If not present, consider the associated bit as reserved, and keep it at reset value.

31302928272625242322212019181716
LPTIM5FLPTIM4FLPTIM3FLPTIM1FI2C4FI2C3FLPUART1FSPI5FRes.Res.Res.Res.USBFSAI2FSAI1FSPI6F
rrrrrrrrrrrr
1514131211109876543210
SPI4FTIM17FTIM16FTIM15FUSART1FTIM8FSPI1FTIM1FRes.Res.Res.COMP FRes.UCPDFFDCAN2FFDCAN1F
rrrrrrrrrrrr

Bit 31 LPTIM5F: illegal access flag for LPTIM5

Bit 30 LPTIM4F: illegal access flag for LPTIM4

Bit 29 LPTIM3F: illegal access flag for LPTIM3

Bit 28 LPTIM1F: illegal access flag for LPTIM1

Bit 27 I2C4F: illegal access flag for I2C4

Bit 26 I2C3F: illegal access flag for I2C3

Bit 25 LPUART1F: illegal access flag for LPUART

Bit 24 SPI5F: illegal access flag for SPI5

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

Bit 19 USBF: illegal access flag for USB

Bit 18 SAI2F: illegal access flag for SAI2

Bit 17 SAI1F: illegal access flag for SAI1

Bit 16 SPI6F: illegal access flag for SPI6

5.7.7 GTZC1 TZIC status register 3 (GTZC1_TZIC_SR3)

Address offset: 0x018

Reset value: 0x0000 0000

Secure privileged access only.

Refer to the device datasheet for the peripheral availability. If not present, consider the associated bit as reserved, and keep it at reset value.

BitRegister NameDescriptionReservedReservedReservedReservedReservedReservedReservedReservedReservedReservedReservedReservedReserved
31302928272625242322212019181716
Res.Res.Res.Res.Res.RAMCSDMM
FGFRes.OCTOS
PI1FFMCFSDMM
C2FC1FPKAF SAESF RNGF HASHF AESF
rrrrrrrrrr
1514131211109876543210
DCMIFADC12DCACICACHLPTIM6
EFETHF FMACFCORDI
CFCRCFRes.ADC3FRes.CCBFRes.I3C2FVREFB
FHEFUFFF
rrrrrrrrrrrrr
Bit 26RAMCFGF: illegal access flag for RAMSCFG
Bit 24OCTOSPI1F: illegal access flag for OCTOSPI1
Bit 23FMCF: illegal access flag for FMC
Bit 22SDMMC2F: illegal access flag for SDMMC2
Bit 21SDMMC1F: illegal access flag for SDMMC1
Bit 20PKAF: illegal access flag for PKA
Bit 19SAESF: illegal access flag for SAES
Bit 18RNGF: illegal access flag for RNG
Bit 17HASHF: illegal access flag for HASH

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

Bit 26 RAMCFGF: illegal access flag for RAMSCFG

Bit 25 Reserved, must be kept at reset value.

Bit 24 OCTOSPI1F: illegal access flag for OCTOSPI1

Bit 23 FMCF: illegal access flag for FMC

Bit 22 SDMMC2F: illegal access flag for SDMMC2

Bit 21 SDMMC1F: illegal access flag for SDMMC1

Bit 20 PKAF: illegal access flag for PKA

Bit 19 SAESF: illegal access flag for SAES

Bit 18 RNGF: illegal access flag for RNG

Bit 17 HASHF: illegal access flag for HASH

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.

Refer to the device datasheet for the peripheral availability. If not present, consider the associated bit as reserved, and keep it at reset value.

31302928272625242322212019181716
Res.Res.MPCB
B3_RE
GF
SRAM3
F
MPCB
B2_RE
GF
SRAM2
F
MPCB
B1_RE
GF
SRAM1
F
Res.Res.Res.BKPSR
AMF
FMC_
MEMF
OCTOS
PI1_M
EMF
TZIC1FTZSC1
F
rrrrrrrrrrr
1514131211109876543210
Res.Res.Res.PLAY1
F
EXTIFRCCFPWRFTAMPFRTCFSBSFRes.OTFDE
C1F
FLASH
F
FLASH
_REGF
GPDM
A2F
GPDM
A1F
rrrrrrrrrrrr

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

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

Bit 24 SRAM1F: illegal access flag for SRAM1

0: no illegal access event

1: illegal access event

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

Bit 20 BKPSRAMF: illegal access flag for MPCWM4 (BKPSRAM) memory bank

0: no illegal access event

1: illegal access event

Bit 2 FLASH_REGF: illegal access flag for FLASH registers

Bit 1 GPDMA2F: illegal access flag for GPDMA2

Bit 0 GPDMA1F: illegal access flag for GPDMA1

5.7.9 GTZC1 TZIC flag clear register 1 (GTZC1_TZIC_FCR1)

Address offset: 0x020

Reset value: 0x0000 0000

Secure privileged access only.

Refer to the device datasheet for the peripheral availability. If not present, consider the associated bit as reserved, and keep it at reset value.

31302928272625242322212019181716
CLPTIM2FCDTSFCUART12FCUART9FCUART8FCUART7FCDAC1FCHDMICECFCUSART11FCUSART10FCUSART6FCCRSFCI3C1FCI2C2FCI2C1FCUART5F
wwwwwwwwwwwwwwww
1514131211109876543210
CUART4FCUSART3FCUSART2FCSPI3FCSPI2FCIWDGFCWWDGFCTIM14FCTIM13FCTIM12FCTIM7FCTIM6FCTIM5FCTIM4FCTIM3FCTIM2F
wwwwwwwwwwwwwwww

Bit 31 CLPTIM2F: clear the illegal access flag for LPTIM2

Bit 30 CDTSF: clear the illegal access flag for DTS

Bit 29 CUART12F: clear the illegal access flag for UART12

Bit 28 CUART9F: clear the illegal access flag for UART9

Bit 27 CUART8F: clear the illegal access flag for UART8

Bit 26 CUART7F: clear the illegal access flag for UART7

5.7.10 GTZC1 TZIC flag clear register 2 (GTZC1_TZIC_FCR2)

Address offset: 0x024

Reset value: 0x0000 0000

Secure privileged access only.

Refer to the device datasheet for the peripheral availability. If not present, consider the associated bit as reserved, and keep it at reset value.

31302928272625242322212019181716
CLPTI
M5F
CLPTI
M4F
CLPTI
M3F
CLPTI
M1F
CI2C4FCI2C3FCLPUA
RT1F
CSPI5FRes.Res.Res.Res.CUSBFCSAI2FCSAI1FCSPI6F
wwwwwwwwwwww
1514131211109876543210
CSPI4FCTIM1
7F
CTIM1
6F
CTIM1
5F
CUSAR
T1F
CTIM8
F
CSPI1FCTIM1
F
Res.Res.Res.CCOM
PF
Res.CUCP
DF
CFDCA
N2F
CFDCA
N1F
wwwwwwwwwwww

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:20 Reserved, must be kept at reset value.

Bit 19 CUSBF: clear the illegal access flag for USB

0: no action

1: status flag cleared

Bit 18 CSAI2F: clear the illegal access flag for SAI2

0: no action

1: status flag cleared

Bit 17 CSAI1F: clear the illegal access flag for SAI1

0: no action

1: status flag cleared

Bit 16 CSPI6F: clear the illegal access flag for SPI6

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.

Refer to the device datasheet for the peripheral availability. If not present, consider the associated bit as reserved, and keep it at reset value.

31302928272625242322212019181716
Res.Res.Res.Res.Res.CRAM
CFGF
Res.COCT
OSPI1
F
CFMCFCSDM
MC2F
CSDM
MC1F
CPKAFCSAES
F
CRNG
F
CHASH
F
CAESF
wwwwwwwwww
1514131211109876543210
CDCMI
F
CADC1
2F
CDCA
CHEF
CICAC
HEF
CETHFCFMA
CF
CCOR
DICF
CCRCFRes.CADC3
F
Res.CCCBFRes.CI3C2FCVREF
BUFF
CLPTI
M6F
wwwwwwwwwwwww

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

Bit 26 CRAMCFGF: clear illegal access flag for RAMSCFG

0: no action

1: status flag cleared

Bit 25 Reserved, must be kept at reset value.

Bit 24 COCTOSPI1F: clear illegal access flag for OCTOSPI1

0: no action

1: status flag cleared

Bit 23 CFMCF: clear illegal access flag for FMC

0: no action

1: status flag cleared

Bit 22 CSDMMC2F: clear illegal access flag for SDMMC2

0: no action

1: status flag cleared

Bit 21 CSDMMC1F: clear illegal access flag for SDMMC1

0: no action

1: status flag cleared

Bit 20 CPKAF: clear illegal access flag for PKA

0: no action

1: status flag cleared

Bit 19 CSAESF: clear illegal access flag for SAES

0: no action

1: status flag cleared

Bit 18 CRNGF: clear illegal access flag for RNG

0: no action

1: status flag cleared

Bit 17 CHASHF: clear illegal access flag for HASH

0: no action

1: status flag cleared

Bit 16 CAESF: clear illegal access flag for AES

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.

Refer to the device datasheet for the peripheral availability. If not present, consider the associated bit as reserved, and keep it at reset value.

31302928272625242322212019181716
Res.Res.CMPC
BB3_R
EGF
CSRA
M3F
CMPC
BB2_R
EGF
CSRA
M2F
CMPC
BB1_R
EGF
CSRA
M1F
Res.Res.Res.CBKPS
RAMF
CFMC_
MEMF
COCT
OSPI1_
MEMF
CTZIC1
F
CTZSC
1F
wwwwwwwwwww
1514131211109876543210
Res.Res.Res.CPLAY
1F
CEXTI
F
CRCCFCPWR
F
CTAMP
F
CRTCFCSBSFRes.COTFD
EC1F
CFLAS
HF
CFLAS
H_REG
F
CGPD
MA2F
CGPD
MA1F
wwwwwwwwwwww

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

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

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

Bit 20 CBKPSRAMF: clear the illegal access flag for MPCWM4 (BKPSRAM) memory bank

0: no action

1: status flag cleared

Bit 19 CFMC_MEMF: clear the illegal access flag for MPCWM2 (FMC_NOR bank), MPCWM3 (FMC_NAND bank and FMC_SDRAM bank 1), and MPCWM4 (FMC_SDRAM bank 2)

0: no action

1: status flag cleared

Bit 0 CGPDMA1F: clear the illegal access flag for GPDMA1

0: no action

1: status flag cleared

5.7.13 GTZC1 TZIC register map

Table 40. GTZC1 TZIC register map and reset values

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x000GTZC1_TZIC_IER1LPTIM2IEDTSIEUART12IEUART9IEUART8IEUART7IEDAC1IEHDMICEIEUSART11IEUSART10IEUSART6IECRSIEI3C1IEI2C2IEI2C1IEUART5IEUART4IEUSART3IEUSART2IESPI3IESPI2IEIWDGIEWWDGIETIM14IETIM13IETIM12IETIM7IETIM6IETIM5IETIM4IETIM3IETIM2IE
Reset value00000000000000000000000000000000
0x004GTZC1_TZIC_IER2LPTIM5IELPTIM4IELPTIM3IELPTIM1IEI2C4IEI2C3IELPUART1IESPI5IERes.Res.Res.Res.USBIESAI2IESAI1IESPI6IESPI4IETIM17IETIM16IETIM15IEUSART1IETIM8IESPI1IETIM1IERes.Res.Res.Res.COMPIEUCPDIEFDCAN2IEFDCAN1IE
Reset value000000000000000000000000
0x008GTZC1_TZIC_IER3Res.Res.Res.Res.Res.RAMCFGIERes.OCTOSPI1IEFMCIESDMMC2IESDMMC1IEPKAIESAESIERNGIEHASHIEAESIEDCMIIEADC12IEDCACHEIEICACHEIEETHIEFMACIECORDICIECRCIERes.ADC3IERes.CCBIERes.I3C2IEVREFBUFIELPTIM6IE
Reset value00000000000000000000000
0x00CGTZC1_TZIC_IER4Res.Res.MPCBB3_REGIESRAM3IEMPCBB2_REGIESRAM2IEMPCBB1_REGIESRAM1IERes.Res.Res.BKPSRAMIEFMC_MEMIEOCTOSPI1_MEMIETZIC1IETZSC1IERes.Res.Res.PLAY1IEEXTIIERCCIEPWRIETAMPIERTCIESBSIERes.OTFDEC1IEFLASHIEFLASH_REGIEGPDMA2IEGPDMA1IE
Reset value00000000000000000000000
0x010GTZC1_TZIC_SR1LPTIM2FDTSFUART12FUART9FUART8FUART7FDAC1FHDMICECFUSART11FUSART10FUSART6FCRSFI3C1FI2C2FI2C1FUART5FUART4FUSART3FUSART2FSPI3FSPI2FIWDGFWWDGFTIM14FTIM13FTIM12FTIM7FTIM6FTIM5FTIM4FTIM3FTIM2F
Reset value00000000000000000000000000000000
0x014GTZC1_TZIC_SR2LPTIM5FLPTIM4FLPTIM3FLPTIM1FI2C4FI2C3FLPUART1FSPI5FRes.Res.Res.Res.USBFSAI2FSAI1FSPI6FSPI4FTIM17FTIM16FTIM15FUSART1FTIM8FSPI1FTIM1FRes.Res.Res.Res.COMPFUCPDFFDCAN2FFDCAN1F
Reset value000000000000000000000000
0x018GTZC1_TZIC_SR3Res.Res.Res.Res.Res.RAMCFGFRes.OCTOSPI1FFMCFSDMMC2FSDMMC1FPKAFSAESFRNGFHASHFAESFDCMIFADC12FDCACHEFICACHEFETHFFMACFCORDICFCRCFRes.ADC3FRes.CCBFRes.I3C2FVREFBUFFLPTIM6F
Reset value00000000000000000000000
0x01CGTZC1_TZIC_SR4Res.Res.MPCBB3_REGFSRAM3FMPCBB2_REGFSRAM2FMPCBB1_REGFSRAM1FRes.Res.Res.BKPSRAMFFMC_MEMFOCTOSPI1_MEMFTZIC1FTZSC1FRes.Res.Res.PLAY1FEXTIFRCCFPWRFTAMPFRTCFSBSFRes.OTFDEC1FFLASHFFLASH_REGFGPDMA2FGPDMA1F
Reset value00000000000000000000000

Table 40. GTZC1 TZIC register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x020GTZC1_TZIC_
FCR1
CLPTIM2FCDTSFCUART12FCUART9FCUART8FCUART7FCDAC1FCHDMICECFCUSART11FCUSART10FCUSART6FCCRSFCI3C1FCI2C2FCI2C1FCUART5FCUART4FCUSART3FCUSART2FCSPI3FCSPI2FCIWDGFCWWDGFCTIM14FCTIM13FCTIM12FCTIM7FCTIM6FCTIM5FCTIM4FCTIM3FCTIM2F
Reset value00000000000000000000000000000000
0x024GTZC1_TZIC_
FCR2
CLPTIM5FCLPTIM4FCLPTIM3FCLPTIM1FCI2C4FCI2C3FCLPUART1FCSPI5FRes.Res.Res.Res.CUSBFCSAI2FCSAI1FCSPI6FCSPI4FCTIM17FCTIM16FCTIM15FCUSART1FCTIM8FCSPI1FCTIM1FRes.Res.Res.CCOMPFRes.CUCPDFCFDCAN2FCFDCAN1F
Reset value000000000000000000000000
0x028GTZC1_TZIC_
FCR3
Res.Res.Res.Res.Res.CRAMCFGFRes.COCTOSPI1FCFMCFCSDMMC2FCSDMMC1FCPKAFCSAESFCRNGFCHASHFCAESFCDCMIFCADC12FCDCACHEFCICACHEFCETHFCFMACFCCORDICFCCRCFRes.CADC3FRes.CCCBFRes.CI3C2FCVREFBUFFCLPTIM6F
Reset value00000000000000000000000
0x02CGTZC1_TZIC_
FCR4
Res.Res.CMPCBB3_REGFCSRAM3FCMPCBB2_REGFCSRAM2FCMPCBB1_REGFCSRAM1FRes.Res.Res.CBKPSRAMFCFMC_MEMFCOCTOSPI1_MEMFCTZIC1FCTZSC1FRes.Res.Res.CPLAY1FCEXTIFCRCCFCPWRFCTAMPFCRTCFCSBSFRes.COTFDEC1FCFLASHFCFLASH_REGFCGPDMA2FCGPDMA1F
Reset value00000000000000000000000
Refer to Table 30: GTZC1 subblock 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 non secure 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 cannot 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 SRAMz MPCBB security configuration for super-block x register (GTZC1_MPCBBz_SECCFGRx) (z = 1 to 3)

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_MPCBBz_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_MPCBBz_PRIVCFGRx.

Writes are ignored if SPLCKx bit is set in GTZC1_MPCBBz_CFGLOCK.

5.8.4 GTZC1 SRAMz MPCBB privileged configuration for super-block x register (GTZC1_MPCBBz_PRIVCFGRx) (z = 1 to 3)

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_MPCBBz_SECCFGRx.

Writes are ignored if SPLCKx bit is set in GTZC1_MPCBBz_CFGLOCK.

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

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

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x000GTZC1_MPCBBz_CRSRWILADISINVSESTATERes.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 30: GTZC1 subblock address offset.