15. Extended TrustZone ® protection controller (ETZPC)

15.1 ETZPC introduction

The ETZPC configures TrustZone security in a SoC having bus masters and slaves with programmable-security attributes (securable resources) such as:

15.2 ETZPC features

15.3 Extended TrustZone architecture and ETZPC

proceed to the peripheral.

When the peripheral is configured as non-secure by the ETZPC, both secure and non-secure reads and writes can proceed to the peripheral.

Note: The Bus error is conditioned to interconnect clocking (for example, illicit access to an unclocked peripheral does not generate a bus error).

Note: Before releasing a RAM region to the non-secure world by programming the TZMA to decrease the secure region size, the RAM should be cleared.

15.4 ETZPC functional description

The ETZPC consists of a set of registers to control securable IPs through:

By default, after reset, memory regions are secure and all peripherals are read/ write secure.

r0size[] and decprot[] can be individually locked to prevent security configuration changes until next reset.

15.5 STM32MP153 security architecture

IP security properties can be classified as:

Note: Debug access port (DAP) security properties are set via the DBG authentication interface.
The STM32MP153 security architecture is shown in Figure 126.

Figure 126. STM32MP153 security architecture

A detailed block diagram of the STM32MP153 security architecture. At the top, the Cortex-A7 core is connected to the AXIMC and AXI & AHB interconnect with TrustZone extension. The interconnect includes AXI and AHB buses, with AHB extended with security. TrustZone aware IP blocks like TZMA0, TZMA1, TZC, DDRCTRL, and DDRPHYC are connected via APB4 and APB5 buses. The ETZPC (Extended TrustZone Protection Controller) is shown as a central security component. Various peripherals are connected to the AHB and APB buses, including CRYP1, HASH1, RNG1, GPIOZ, BKPSRAM, SRAM1-4, RETRAM, PWR, RCC, EXTI, MDMA Register bank, I2C4, I2C6, STGENC, USART1, SPI6, IWDG1, and RTC/TAMP. A legend defines the color coding for IP types: TrustZone capable IP (yellow), Secure IP (blue), Securable IP (grey), and TrustZone aware IP (green). It also defines the line colors for AXI (red), AHB (blue), and APB (green). Dashed red boxes indicate ETZPC Security Infrastructure components.
A detailed block diagram of the STM32MP153 security architecture. At the top, the Cortex-A7 core is connected to the AXIMC and AXI & AHB interconnect with TrustZone extension. The interconnect includes AXI and AHB buses, with AHB extended with security. TrustZone aware IP blocks like TZMA0, TZMA1, TZC, DDRCTRL, and DDRPHYC are connected via APB4 and APB5 buses. The ETZPC (Extended TrustZone Protection Controller) is shown as a central security component. Various peripherals are connected to the AHB and APB buses, including CRYP1, HASH1, RNG1, GPIOZ, BKPSRAM, SRAM1-4, RETRAM, PWR, RCC, EXTI, MDMA Register bank, I2C4, I2C6, STGENC, USART1, SPI6, IWDG1, and RTC/TAMP. A legend defines the color coding for IP types: TrustZone capable IP (yellow), Secure IP (blue), Securable IP (grey), and TrustZone aware IP (green). It also defines the line colors for AXI (red), AHB (blue), and APB (green). Dashed red boxes indicate ETZPC Security Infrastructure components.

MSv60130V2

The STM32MP153 security architecture is based on an extended version of Arm TrustZone with:

Table 86. STM32MP153 secure and securable peripherals

IPType(1)Buscomment
DDRPHYCPAPB4DDR PHY
DDRCTRLPAPB4DDR controller
CRYP1PAHBCRYP1
HASH1PAHBHASH1
RNG1PAHBRNG1
I2C4PAPB5I2C for secure applications
I2C6PAPB5I2C for secure applications
Table 86. STM32MP153 secure and securable peripherals (continued)
IPType(1)Buscomment
SPI6PAPB5SPI for secure applications
USART1PAPB5USART for secure applications
IWDG1PAPB5Secure Independent Watchdog
BKPSRAMPAHBBKPSRAM (4 Kbytes)
STGENCPAPB5System Timer GENERator (STGEN) Control port
TZCSAPB5TrustZone address space controller
ETZPCWSAPB5TrustZone protection controller (this IP)
SRAM1/2/3/4PAHBSRAM1/2/3/4
RETRAMPAHBRETRAM
AXIMSAXIGPV local to AXIM

1. P: securable peripherals, S: R/W secure peripheral, WS: Write secure peripheral.

Table 87. STM32MP153 TrustZone-aware peripherals
IPBuscomment
BSECAPB5BSEC includes a subset of secure registers
MDMAAHBMDMA supports security per channel and its slave port is made TrustZone aware to forbid non-secure access to secure channels
GPIOZAHBGPIoZ is TrustZone-aware and supporting pin level security
RCCAHBRCC includes sensitive registers which are write secure
PWRAHBPWR includes sensitive registers which are write secure
EXTIAHBEXTI includes sensitive registers which are write secure
RTC and TamperAPBRTC/TAMP includes a subset of secure registers

For more information about IP security features refer to the corresponding IP section.

Table 88. STM32MP153 memory firewalls
On-chip memoryIPcomment
ROMTZMA0ROM can be partitioned into secure/non-secure regions on a 4 Kbyte boundary, the lower region is secure with 0 K, 4 K, 8 K, and so on up to 128 Kbyte size.
After system reset all ROM is secure.
SYSRAMTZMA1SYSRAM can be partitioned into secure/non-secure regions at a 4 Kbyte boundary, the lower region is secure with 0 K, 4 K, 8 K, and so on up to 256 Kbyte size.
After system reset all SYSRAM is secure.

Table 89. STM32MP153 TrustZone-capable bus masters

IPI/Fcomment
Cortex-A7AXICortex-A7 is TrustZone capable.
MDMAAXIMDMA channels can be set as secure or non-secure.
DAP AXI-APAXIAXI-AP is made TrustZone aware according to debug authentication interface (spiden, spniden) controlled by the BSEC.

15.6 STM32MP153 MCU resource isolation

The ETZPC can be used to define a set of resources to be accessed only by the Cortex-M4 domain (MCU resource isolation). Besides the Cortex-M4, the domain may also include several DMA masters assigned to the MCU isolation domain.

Resources and DMA masters that can be assigned to MCU isolation domains are listed in Table 93: Programmable options according to resource type with type =2 and type =3. This concerns a large set of resources, with access restricted to the Cortex-M4 and DMA master under its control for application safety purposes.

Resource isolation is programmed by the decprot[] bits and access filtering using AHB stubs and AHB2APB firewalling according to the Master IDs. Because security and MCU resource isolation peripherals are not orthogonal, the resources listed in Table 93 are of 3 types as follows:

Any resource not listed in Table 93: Programmable options according to resource type is accessible by any bus master (for example, non secured).

The debug AXI-AP is non-secure but able to access MCU resources.

Table 90. decprot bits for securable peripherals (type 1) and behavior

decprot[1:0]Comment
0b00The peripheral is RW secure.
Default after reset.
0b01The peripheral is write-secure (for example.only write secure are allowed, read can be secure or non-secure).
0b10Reserved. (Undefined behavior but does not weaken security.)
0b11The peripheral is not secure (read and write by secure and non-secure means).
Table 91. decprot bits for isolable peripherals (type 2) and behavior
decprot[1:0]Comment
0b0xReserved. (Undefined behavior but does not weaken security).
0b10Peripheral RW access only by the Cortex-M4 domain.
(Cortex-A7 and other bus masters not in the Cortex-M4 domains are denied whether secure or non secure).
0b11The peripheral is not secure (read and write by secure and non-secure means).
Default after reset.
Table 92. decprot bits for securable and Isolable Peripherals (type 3) and behavior
decprot[1:0]Comment
0b00The peripheral is RW secure.
0b01The peripheral is write-secure (for example, only secure writes are allowed, read can be secure or non-secure).
0b10Peripheral RW access only by Cortex-M4 domain.
(Cortex-A7 and other Bus master not in Cortex-M4 domains are denied whether secure or non secure).
0b11The peripheral is not secure (read and write by secure and non secure means).
Default after reset.

Programmable values of decprot[] bits according to resource type are summarized in Table 93

Table 93. Programmable options according to resource type

Resource type0b00
(secured)
0b01
(Write secured)
0b10
(MCU isolation)
0b11
(non-secured)
1: SecurableProg (default)ProgNoProg
2: MCU isolationNoNoProgProg (default)
3: Securable and MCU IsolationProgProgProgProg (default)

Note: Default after reset indicated by “*”.

Bus master and MCU resource isolation:

Bus masters listed in Table 94: DECPROT assignment (DMA1, DMA2, OTG, SDMMC3, ETH1) may be assigned to the MCU isolation domain according to their control port decprot[] bit programming value. In this case they have granted access to other MCU isolated resources.

Failed access behaviors:

Whether it is a security or isolation violation, failed writes are ignored and failed reads are returned as zeros. Furthermore a bus error is asserted to either raise an exception with the Cortex CPUs, or to be flagged by an interrupt with DMA IPs.

Note: The only exception is GPIOZ (Tz-aware IP), which fails silently.

Any write access to ETZPC locked settings is also silently ignored.

All peripherals concerned by security and MCU resource isolation, and controlled by the ETZPC are listed in Table 94 with the corresponding IP decprot[] bits.

Table 94. DECPROT assignment

Indexdecprot bitsIPBusDefaultBus masterTypeAttributes
0DECPROT0[1:0]STGENCAPB50b00-1Securable
1DECPROT0[3:2]BKPSRAMAHB50b00-1Securable
2DECPROT0[5:4]IWDG1APB50b00-1Securable
3DECPROT0[7:6]USART1APB50b00-1Securable
4DECPROT0[9:8]SPI6APB50b00-1Securable
5DECPROT0[11:10]I2C4APB50b00-1Securable
6DECPROT0[13:12]--0b00--Reserved
7DECPROT0[15:14]RNG1AHB50b00-1Securable
8DECPROT0[17:16]HASH1AHB50b00-1Securable
9DECPROT0[19:18]CRYP1AHB50b00-1Securable
10DECPROT0[21:20]DDRCTRLAPB40b00-1Securable
11DECPROT0[23:22]DDRPHYCAPB40b00-1Securable

Table 94. DECPROT assignment (continued)

Indexdecprot bitsIPBusDefaultBus masterTypeAttributes
12DECPROT0[25:24]I2C6APB50b00-1Securable
13DECPROT0[27:26]--0b00--Reserved
14DECPROT0[29:28]--0b00--Reserved
15DECPROT0[31:30]--0b00--Reserved
16DECPROT1[1:0]TIM2APB10b11-2Not securable, MCU isolation only
17DECPROT1[3:2]TIM3APB10b11-2Not securable, MCU isolation only.
18DECPROT1[5:4]TIM4APB10b11-2Not securable, MCU isolation only.
19DECPROT1[7:6]TIM5APB10b11-2Not securable, MCU isolation only.
20DECPROT1[9:8]TIM6APB10b11-2Not securable, MCU isolation only.
21DECPROT1[11:10]TIM7APB10b11-2Not securable, MCU isolation only.
22DECPROT1[13:12]TIM12APB10b11-2Not securable, MCU isolation only.
23DECPROT1[15:14]TIM13APB10b11-2Not securable, MCU isolation only.
24DECPROT1[17:16]TIM14APB10b11-2Not securable, MCU isolation only.
25DECPROT1[19:18]LPTIM1APB10b11-2Not securable, MCU isolation only.
26DECPROT1[21:20]WWDG1APB10b11-2Not securable, MCU isolation only.
27DECPROT1[23:22]SPI2APB10b11-2Not securable, MCU isolation only.
28DECPROT1[25:24]SPI3APB10b11-2Not securable, MCU isolation only.
29DECPROT1[27:26]SPDIFRXAPB10b11-2Not securable, MCU isolation only.
30DECPROT1[29:28]USART2APB10b11-2Not securable, MCU isolation only.
31DECPROT1[31:30]USART3APB10b11-2Not securable, MCU isolation only.
32DECPROT2[1:0]UART4APB10b11-2Not securable, MCU isolation only.
33DECPROT2[3:2]UART5APB10b11-2Not securable, MCU isolation only.

Table 94. DECPROT assignment (continued)

Indexdecprot bitsIPBusDefaultBus masterTypeAttributes
34DECPROT2[5:4]I2C1APB10b11-2Not securable, MCU isolation only
35DECPROT2[7:6]I2C2APB10b11-2Not securable, MCU isolation only.
36DECPROT2[9:8]I2C3APB10b11-2Not securable, MCU isolation only.
37DECPROT2[11:10]I2C5APB10b11-2Not securable, MCU isolation only.
38DECPROT2[13:12]CECAPB10b11-2Not securable, MCU isolation only.
39DECPROT2[15:14]DACAPB10b11-2Not securable, MCU isolation only.
40DECPROT2[17:16]UART7APB10b11-2Not securable, MCU isolation only.
41DECPROT2[19:18]UART8APB10b11-2Not securable, MCU isolation only.
42DECPROT2[21:20]-0b11--Reserved
43DECPROT2[23:22]-0b11--Reserved
44DECPROT2[25:24]MDIOSAPB10b11-2Not securable, MCU isolation only.
45DECPROT2[27:26]-0b11--Reserved
46DECPROT2[29:28]-0b11--Reserved
47DECPROT2[31:30]-0b11--Reserved
48DECPROT3[1:0]TIM1APB20b11-2Not securable, MCU isolation only.
49DECPROT3[3:2]TIM8APB20b11-2Not securable, MCU isolation only.
50DECPROT3[5:4]-0b11--Reserved
51DECPROT3[7:6]USART6APB20b11-2Not securable, MCU isolation only.
52DECPROT3[9:8]SPI1APB20b11-2Not securable, MCU isolation only.
53DECPROT3[11:10]SPI4APB20b11-2Not securable, MCU isolation only.
54DECPROT3[13:12]TIM15APB20b11-2Not securable, MCU isolation only.
55DECPROT3[15:14]TIM16APB20b11-2Not securable, MCU isolation only.
56DECPROT3[17:16]TIM17APB20b11-2Not securable, MCU isolation only.

Table 94. DECPROT assignment (continued)

Indexdecprot bitsIPBusDefaultBus masterTypeAttributes
57DECPROT3[19:18]SPI5APB20b11-2Not securable, MCU isolation only
58DECPROT3[21:20]SAI1APB20b11-2Not securable, MCU isolation only
59DECPROT3[23:22]SAI2APB20b11-2Not securable, MCU isolation only
60DECPROT3[25:24]SAI3APB20b11-2Not securable, MCU isolation only
61DECPROT3[27:26]DFSDMAPB20b11-2Not securable, MCU isolation only
62DECPROT3[29:28]TT_FDCAN(1)APB20b11-2Not securable, MCU isolation only
63DECPROT3[31:30]-0b11--Reserved
64DECPROT4[1:0]LPTIM2APB30b11-2Not securable, MCU isolation only
65DECPROT4[3:2]LPTIM3APB30b11-2Not securable, MCU isolation only
66DECPROT4[5:4]LPTIM4APB30b11-2Not securable, MCU isolation only
67DECPROT4[7:6]LPTIM5APB30b11-2Not securable, MCU isolation only
68DECPROT4[9:8]SAI4APB30b11-2Not securable, MCU isolation only
69DECPROT4[11:10]VREFBUFAPB30b11-2Not securable, MCU isolation only
70DECPROT4[13:12]DCMIAHB30b11-2Not securable, MCU isolation only
71DECPROT4[15:14]CRC2AHB30b11-2Not securable, MCU isolation only
72DECPROT4[17:16]ADCAHB20b11-2Not securable, MCU isolation only
73DECPROT4[19:18]HASH2AHB30b11-2Not securable, MCU isolation only
74DECPROT4[21:20]RNG2AHB30b11-2Not securable, MCU isolation only
75DECPROT4[23:22]CRYP2AHB30b11-2Not securable, MCU isolation only
76DECPROT4[25:24]-0b11--Reserved
77DECPROT4[27:26]-0b11--Reserved
78DECPROT4[29:28]-0b11--Reserved

Table 94. DECPROT assignment (continued)

Indexdecprot bitsIPBusDefaultBus masterTypeAttributes
79DECPROT4[31:30]-0b11--Reserved
80DECPROT5[1:0]SRAM1MLAHB0b11-3Securable and MCU isolation support
81DECPROT5[3:2]SRAM2MLAHB0b11-3Securable and MCU isolation support
82DECPROT5[5:4]SRAM3MLAHB0b11-3Securable and MCU isolation support
83DECPROT5[7:6]SRAM4MLAHB0b11-3Securable and MCU isolation support
84DECPROT5[9:8]RETRAMMLAHB0b11-3Securable and MCU isolation support
85DECPROT5[11:10]OTG(2)AHB20b11yes2Not securable, MCU isolation only
86DECPROT5[13:12]SDMMC3AHB20b11yes2Not securable, MCU isolation only
87DECPROT5[15:14]DLYBSD3AHB20b11-2Not securable, MCU isolation only
88DECPROT5[17:16]DMA1AHB20b11yes2Not securable, MCU isolation only
89DECPROT5[19:18]DMA2AHB20b11yes2Not securable, MCU isolation only
90DECPROT5[21:20]DMAMUXAHB20b11-2Not securable, MCU isolation only
91DECPROT5[23:22]FMCAXIM0b11-2Not securable, MCU isolation only
92DECPROT5[25:24]QSPIAXIM0b11-2Not securable, MCU isolation only
93DECPROT5[27:26]DLYBQAHB60b11-2Not securable, MCU isolation only
94DECPROT5[29:28]ETH1AHB60b11yes2Not securable, MCU isolation only
95DECPROT5[31:30]-0b11--Reserved

1. FDCAN use one decprot[] for several APB regions

2. USBPHYC associated to OTG cannot be isolated

15.7 ETZPC registers

The ETZPC registers are accessed only by word (32-bit).

ETZPC registers are write-secure (that is, read accesses are allowed by secure and non-secure domains, write accesses are allowed by the secure domain only).

The ETZPC_DECPROTx registers are used to control security and resource isolation for all peripherals listed in Table 94: DECPROT assignment according to the index (from 0 to 95).

Caution: The ETZPC is programmed during early boot, it should not be changed afterwards, lock bits can enforce this; propagation of the ETZPC decprot[] bits takes some delay, two APB cycles must be observed before security rule is applied.

15.7.1 ETZPC ROM secure size definition (ETZPC_TZMA0_SIZE)

Address offset: 0x000

Reset value: 0x0000 03FF

31302928272625242322212019181716
LOCKRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rs
1514131211109876543210
Res.Res.Res.Res.Res.Res.R0SIZE[9:0]
rwrwrwrwrwrwrwrwrwrw

Bit 31 LOCK: To lock r0size settings of the TZMA
0: r0size[] can be written
1: r0size[] cannot be modified until the next reset, therefore the write to r0size is silently ignored (for example no APB SLVERR).

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

Bits 9:0 R0SIZE[9:0]
Defines the size of the secure ROM at the lower values, and non-secure ROM at the higher values:
0x000: all ROM is non-secure
0x001: 4 Kbyte ROM secure
0x002: 8 Kbyte ROM secure
....
0x020 to 0x3FF: 128 Kbyte ROM secure (for example all ROM secure)

ST logo
ST logo

15.7.2 ETZPC RAM secure size definition (ETZPC_TZMA1_SIZE)

Address offset: 0x004

Reset value: 0x0000 03FF

31302928272625242322212019181716
LOCKRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rs
1514131211109876543210
Res.Res.Res.Res.Res.Res.R0SIZE[9:0]
rwrwrwrwrwrwrwrwrwrw

Bit 31 LOCK: To lock r0size settings of the TZMA

0: r0size[] can be written

1: r0size[] can not be modified until next reset, therefore the write to r0size is silently ignored (for example APB SLVERR)

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

Bits 9:0 R0SIZE[9:0]: Defines the size of the secure RAM at the lower values, and non-secure RAM at the higher values:

0x000: all RAM is non-secure

0x001: 4 Kbyte RAM secure

0x002: 8 Kbyte RAM secure

....

0x040 to 0x3FF: 256 Kbyte RAM secure (for example all RAM secure)

15.7.3 ETZPC securable peripheral control register x (ETZPC_DECPROTx)

Address offset: 0x010 + 0x004 * (x - 0) (x = 0 to 5)

Reset value: 0x0000 0000, 0xFFFF FFFF, 0xFFFF FFFF, 0xFFFF FFFF, 0xFFFF FFFF, 0xFFFF FFFF

Register reset values according to values in Table 94: DECPROT assignment column Default, see also register map.

Define security and isolation for peripheral at index (16 * x + y) in Table 94 according to ETZPC_DECPROTx with (x = 0 to 5) and (y = 0 to 15) according to DECPROTy[1:0]:

Permissible values of DECPROTy[1:0] are according to Table 94 column Attributes.

31302928272625242322212019181716
DECPROT15
[1:0]
DECPROT14
[1:0]
DECPROT13
[1:0]
DECPROT12
[1:0]
DECPROT11
[1:0]
DECPROT10
[1:0]
DECPROT9
[1:0]
DECPROT8
[1:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
DECPROT7
[1:0]
DECPROT6
[1:0]
DECPROT5
[1:0]
DECPROT4
[1:0]
DECPROT3
[1:0]
DECPROT2
[1:0]
DECPROT1
[1:0]
DECPROT0
[1:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:30 DECPROT15[1:0]: Settings for peripheral with index (16 * x + 15) in Table 94

Bits 29:28 DECPROT14[1:0]: Settings for peripheral with index (16 * x + 14) in Table 94

Bits 27:26 DECPROT13[1:0]: Settings for peripheral with index (16 * x + 13) in Table 94

Bits 25:24 DECPROT12[1:0]: Settings for peripheral with index (16 * x + 12) in Table 94

Bits 23:22 DECPROT11[1:0]: Settings for peripheral with index (16 * x + 11) in Table 94

Bits 21:20 DECPROT10[1:0]: Settings for peripheral with index (16 * x + 10) in Table 94.

Bits 19:18 DECPROT9[1:0]: Settings for peripheral with index (16 * x + 9) in Table 94.

Bits 17:16 DECPROT8[1:0]: Settings for peripheral with index (16 * x + 8) in Table 94.

Bits 15:14 DECPROT7[1:0]: Settings for peripheral with index (16 * x + 7) in Table 94.

Bits 13:12 DECPROT6[1:0]: Settings for peripheral with index (16 * x + 6) in Table 94.

Bits 11:10 DECPROT5[1:0]: Settings for peripheral with index (16 * x + 5) in Table 94.

Bits 9:8 DECPROT4[1:0]: Settings for peripheral with index (16 * x + 4) in Table 94.

Bits 7:6 DECPROT3[1:0]: Settings for peripheral with index (16 * x + 3) in Table 94.

Bits 5:4 DECPROT2[1:0]: Settings for peripheral with index (16 * x + 2) in Table 94.

Bits 3:2 DECPROT1[1:0]: Settings for peripheral with index (16 * x + 1) in Table 94.

Bits 1:0 DECPROT0[1:0]: Settings for peripheral with index (16 * x + 0) in Table 94.

15.7.4 ETZPC decprot lock x register (ETZPC_DECPROT_LOCKx)

Address offset: 0x030+0x004*(x-0) (x = 0 to 2)

Reset value: 0x0000 0000

31302928272625242322212019181716
LOCK3
1
LOCK3
0
LOCK2
9
LOCK2
8
LOCK2
7
LOCK2
6
LOCK2
5
LOCK2
4
LOCK2
3
LOCK2
2
LOCK2
1
LOCK2
0
LOCK1
9
LOCK1
8
LOCK1
7
LOCK1
6
rsrsrsrsrsrsrsrsrsrsrsrsrsrsrsrs
1514131211109876543210
LOCK1
5
LOCK1
4
LOCK1
3
LOCK1
2
LOCK1
1
LOCK1
0
LOCK9LOCK8LOCK7LOCK6LOCK5LOCK4LOCK3LOCK2LOCK1LOCK0
rsrsrsrsrsrsrsrsrsrsrsrsrsrsrsrs

Bit 31 LOCK31: Lock of security for peripheral with index (32*x+31) as defined by Table 94.

0: not locked

1: peripheral decprot[] bits are locked until next reset, therefore the write to decprot[] is silently ignored (for example no APB SLVERR)

Bit 30 LOCK30: Lock of security for peripheral with index (32*x+30) as defined by Table 94.

0: not locked

1: peripheral decprot[] bits are locked until next reset, therefore the write to decprot[] is silently ignored (for example no APB SLVERR)

Bit 29 LOCK29: Lock of security for peripheral with index (32*x+29) as defined by Table 94.

0: not locked

1: peripheral decprot[] bits are locked until next reset, therefore the write to decprot[] is silently ignored (for example no APB SLVERR)

Bit 28 LOCK28: Lock of security for peripheral with index (32*x+28) as defined by Table 94.

0: not locked

1: peripheral decprot[] bits are locked until next reset, therefore the write to decprot[] is silently ignored (for example no APB SLVERR)

Bit 27 LOCK27: Lock of security for peripheral with index (32*x+27) as defined by Table 94.

0: not locked

1: peripheral decprot[] bits are locked until next reset, therefore the write to decprot[] is silently ignored (for example no APB SLVERR)

Bit 26 LOCK26: Lock of security for peripheral with index (32*x+26) as defined by Table 94.

0: not locked

1: peripheral decprot[] bits are locked until next reset, therefore the write to decprot[] is silently ignored (for example no APB SLVERR)

Bit 25 LOCK25: Lock of security for peripheral with index (32*x+25) as defined by Table 94.

0: not locked

1: peripheral decprot[] bits are locked until next reset, therefore the write to decprot[] is silently ignored (for example no APB SLVERR)

Bit 24 LOCK24: Lock of security for peripheral with index (32*x+24) as defined by Table 94.

0: not locked

1: peripheral decprot[] bits are locked until next reset, therefore the write to decprot[] is silently ignored (for example no APB SLVERR)

15.7.5 ETZPC HW configuration register (ETZPC_HWCFGR)

Address offset: 0x3F0

Reset value: 0x0000 6002

31302928272625242322212019181716
CHUNKS1N4[7:0]NUM_AHB_SEC[7:0]
rrrrrrrrrrrrrrrr
1514131211109876543210
NUM_PER_SEC[7:0]NUM_TZMA[7:0]
rrrrrrrrrrrrrrrr

Bits 31:24 CHUNKS1N4[7:0]: TZMA size steps (0: 4 Kbytes, 1: 1 Kbyte)

Bits 23:16 NUM_AHB_SEC[7:0]: Number of securable AHB masters

Bits 15:8 NUM_PER_SEC[7:0]: Number of securable peripherals

Bits 7:0 NUM_TZMA[7:0]: Number of TZMA instances

15.7.6 ETZPC version register (ETZPC_VERR)

Address offset: 0x3F4

Reset value: 0x0000 0021

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.MAJREV[3:0]MINREV[3:0]
rrrrrrrr

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

Bits 7:4 MAJREV[3:0]: Major revision

This field returns the major revision of the ETZPC

Bits 3:0 MINREV[3:0]: Minor revision

This field returns the minor revision of the ETZPC

15.7.7 ETZPC identification register (ETZPC_IDR)

Address offset: 0x3F8

Reset value: 0x0010 0061

31302928272625242322212019181716
ID[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
ID[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 ID[31:0]: Identification code.

This field returns the Identification code of ETZPC

15.7.8 ETZPC size identification register (ETZPC_SIDR)

Address offset: 0x3FC

Reset value: 0xA3C5 DD01

31302928272625242322212019181716
SID[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
SID[15:0]
rrrrrrrrrrrrrrrr

Bits 31:0 SID[31:0]: Size and ID.

This field returns the size and ID of ETZPC

15.7.9 ETZPC register map

The table below provides the ETZPC register map and reset values.

Table 95. ETZPC register map and reset values

OffsetRegister313029282726252423222120191817161514131211109876543210
0x000ETZPC_TZMA0_SIZELOCKRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.R0SIZE
Reset value011111111111
0x004ETZPC_TZMA1_SIZELOCKRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.R0SIZE
Reset value011111111111
0x010ETZPC_DECPROT0DECPROT15DECPROT14DECPROT13DECPROT12DECPROT11DECPROT10DECPROT9DECPROT8DECPROT7DECPROT6DECPROT5DECPROT4DECPROT3DECPROT2DECPROT1DECPROT0
Reset value00000000000000000000000000000000
0x014ETZPC_DECPROT1DECPROT15DECPROT14DECPROT13DECPROT12DECPROT11DECPROT10DECPROT9DECPROT8DECPROT7DECPROT6DECPROT5DECPROT4DECPROT3DECPROT2DECPROT1DECPROT0
Reset value11111111111111111111111111111111
0x018ETZPC_DECPROT2DECPROT15DECPROT14DECPROT13DECPROT12DECPROT11DECPROT10DECPROT9DECPROT8DECPROT7DECPROT6DECPROT5DECPROT4DECPROT3DECPROT2DECPROT1DECPROT0
Reset value11111111111111111111111111111111
0x01CETZPC_DECPROT3DECPROT15DECPROT14DECPROT13DECPROT12DECPROT11DECPROT10DECPROT9DECPROT8DECPROT7DECPROT6DECPROT5DECPROT4DECPROT3DECPROT2DECPROT1DECPROT0
Reset value11111111111111111111111111111111
0x020ETZPC_DECPROT4DECPROT15DECPROT14DECPROT13DECPROT12DECPROT11DECPROT10DECPROT9DECPROT8DECPROT7DECPROT6DECPROT5DECPROT4DECPROT3DECPROT2DECPROT1DECPROT0
Reset value11111111111111111111111111111111
0x024ETZPC_DECPROT5DECPROT15DECPROT14DECPROT13DECPROT12DECPROT11DECPROT10DECPROT9DECPROT8DECPROT7DECPROT6DECPROT5DECPROT4DECPROT3DECPROT2DECPROT1DECPROT0
Reset value11111111111111111111111111111111
0x030ETZPC_DECPROT_LOCK0LOCK31LOCK30LOCK29LOCK28LOCK27LOCK26LOCK25LOCK24LOCK23LOCK22LOCK21LOCK20LOCK19LOCK18LOCK17LOCK16LOCK15LOCK14LOCK13LOCK12LOCK11LOCK10LOCK9LOCK8LOCK7LOCK6LOCK5LOCK4LOCK3LOCK2LOCK1LOCK0
Reset value00000000000000000000000000000000
0x034ETZPC_DECPROT_LOCK1LOCK31LOCK30LOCK29LOCK28LOCK27LOCK26LOCK25LOCK24LOCK23LOCK22LOCK21LOCK20LOCK19LOCK18LOCK17LOCK16LOCK15LOCK14LOCK13LOCK12LOCK11LOCK10LOCK9LOCK8LOCK7LOCK6LOCK5LOCK4LOCK3LOCK2LOCK1LOCK0
Reset value00000000000000000000000000000000
0x038ETZPC_DECPROT_LOCK3LOCK31LOCK30LOCK29LOCK28LOCK27LOCK26LOCK25LOCK24LOCK23LOCK22LOCK21LOCK20LOCK19LOCK18LOCK17LOCK16LOCK15LOCK14LOCK13LOCK12LOCK11LOCK10LOCK9LOCK8LOCK7LOCK6LOCK5LOCK4LOCK3LOCK2LOCK1LOCK0
Reset value00000000000000000000000000000000

Table 95. ETZPC register map and reset values (continued)

OffsetRegister313029282726252423222120191817161514131211109876543210
0x3F0ETZPC_HWCGRCHUNKS1N4NUM_AHB_SEC[7:0]NUM_PER_SEC[7:0]NUM_TZMA[7:0]
Reset value000000000000000000110000000000010
0x3F4ETZPC_VERRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MAJREV[3:0]MINREV[3:0]
Reset value001000000
0x3F8ETZPC_IDRID[31:0]
Reset value000000000001000000000000110000001
0x3FCETZPC_SIDRSID[31:0]
Reset value101000111100010111011101000000001

Refer to Section 2.5 on page 153 for the register boundary addresses.