13. Extended TrustZone ® protection controller (ETZPC)
13.1 ETZPC introduction
The ETZPC configures TrustZone security in a SoC having bus masters and slaves with programmable-security attributes (securable resources) such as:
- • On-chip RAM/ROM with programmable secure region size
- • AHB and APB peripherals to be made secure
13.2 ETZPC features
- • 32-bit APB4 interface
- • ETZPC is always Write-secure
- • Register set to control SoC security settings for:
- – securable on-chip RAM and ROM secure region size
- – access rights for securable AHB and APB peripherals
- • Locking of the security configuration per memory region and per peripheral
- • Configurable memory region size in 4-Kbyte steps.
13.3 Extended TrustZone architecture and ETZPC
- • The Arm TrustZone model supports the isolation between:
- – A secure world, where security sensitive applications are run and critical resources are located; secure transactions are signaled with AxPROT[1] = 0 on the AXI bus
- – A non-secure or public world (Linux user space); non-secure transactions are signaled with AxPROT[1] = 1 on the AXI bus.
- – The STM32MP13xx TrustZone architecture is extended beyond AXI and Cortex-A with AXI/AHB sideband signals to propagate the secure/non-secure transaction attributes to AHB and APB agents.
- • AHB and APB peripherals are categorized as:
- – secure:
These peripherals are protected by an AHB/APB firewall stub used to reject any non-secure access.
Non secure writes are ignored with a Bus error.
Non secure reads do not proceed to the peripheral, zeros are returned on the bus with a bus error. - – securable:
These peripherals are protected by an AHB/APB firewall, which is controlled by ETZPC to define its security mode.
When the peripheral is configured as secure by ETZPC: non-secure writes are ignored with a Bus error, non-secure reads do not proceed to the peripheral, and zeros are returned on the bus with a Bus error. Only secure reads and writes can proceed to the peripheral.
- – secure:
When the peripheral is configured as non-secure by the ETZPC, both secure and non-secure reads and writes can proceed to the peripheral.
- – non-secure:
These peripherals are connected directly to AHB/APB and both secure and non-secure read and write can proceed to the peripheral. - – TrustZone-aware:
These peripherals are connected directly to the AHB or APB bus and implement a specific TrustZone behavior, for example a subset of registers can be made secure according to the peripheral state, or to its programming interface.
Note: The Bus error is conditioned to interconnect clocking (for example, illicit access to an unclocked peripheral does not generate a bus error).
- • AXI bus masters drive the AxPROT[1] signal according to their secure state; an AXI bus master can be:
- a) non-secure (in which case AxPROT[1]=1)
- b) TrustZone capable (Cortex-A7,MDMA) in which case AxPROT[1] is driven low when the bus master is in secure state.
- • AHB masters are non-secure, except for DMA3 (always secure).
It is expected that the ETZPC is programmed during secure BOOT and not changed later:- – The TZMA secure region size can only be changed by secure software.
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.
13.4 ETZPC functional description
The ETZPC consists of a set of registers to control securable IPs through:
- • r0size[] bits to define each TZMA secure region size.
decprot[1:0] bits to control each AHB/APB securable peripheral access permissions as:- – decprot[1:0] = 00: the peripheral is secure; read/write accesses are allowed by the secure world only.
- – decprot[1:0] = 01: the peripheral is write secure; read accesses are allowed by both secure and non-secure worlds, but write accesses are allowed by the secure world only.
- – decprot[1:0] = 10: reserved - do not use.
- – decprot[1:0] = 11: the peripheral is non-secure; both read and write access are allowed by both the secure and non-secure worlds.
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.
13.5 STM32MP13xx security architecture
IP security properties can be classified as:
- • TrustZone capable bus master IPs, as listed in Table 84.
- • TrustZone aware peripherals, whose behavior is conditioned to transaction security, as listed in Table 82.
- • TrustZone securable peripherals which rely on some AHB stub or on the AHB2APB bridge to control IP access according to decprot[] bits and transaction security. These are listed in Table 81 with type P.
- • TrustZone secure (always secure) peripherals, as listed in Table 81 with type S or WS (write secure).
Note: Debug access port (DAP) security properties are set via the DBG authentication interface.
The STM32MP13xx security architecture is shown in Figure 110.
Figure 110. STM32MP13xx security architecture

MSv67592V1
The STM32MP13xx security architecture is based on an extended version of Arm TrustZone with:
- • TrustZone extension to AHB
- • AHB stubs to protect securable AHB peripherals
- • AHB2APB bridge using PPROT[1] signal propagation to TrustZone aware IPs listed in Table 82
- • AHB2APB bridge to protect the securable APB peripherals listed in Table 81
- • TZMA firewalls for ROM and SYSRAM shown in Table 83
Table 81. STM32MP13xx secure and securable peripherals
| IP | Type(1) | Bus | Comment |
|---|---|---|---|
| VREFBUF | P | APB | Voltage reference buffer |
| LPTIM2/3 | P | APB | Low power timer |
| LTDC | P | APB | LCD display control port |
| DCMIPP | P | APB | Camera interface control port |
| USBPHYC | P | APB | USB PHY control port |
| DDRCTRL | P | APB | DDR controller control port |
| DDRPHYC | P | APB | DDR PHY control port |
| DDRMCE | P | APB | Memory cipher engine |
| IP | Type(1) | Bus | Comment |
|---|---|---|---|
| STGENC | P | APB | System timer generator (STGEN) control port |
| IWDG1 | P | APB | Independent watchdog |
| USART1/2 | P | APB | Universal synchronous/asynchronous receiver/transmitter |
| SPI4/5 | P | APB | Serial peripheral interface |
| I2C3/4/5 | P | APB | Inter-IC interface |
| TIM12/13/14/15/16/17 | P | APB | General purpose timer |
| ADC1/2 | P | AHB | Analog-to-digital converter |
| OTG | P | AHB | USB OTG controller control port |
| RNG | P | AHB | Random number generator |
| HASH | P | AHB | HASH processor |
| CRYP | P | AHB | Cryptographic accelerator |
| SAES | P | AHB | Secure AES accelerator |
| PKA | P | AHB | Public key cryptographic accelerator |
| BKPSRAM | P | AHB | Back up RAM (8 Kbytes) |
| ETH1/2 | P | AHB | Ethernet MAC control port |
| SDMMC1/2 | P | AHB | SD/MMC interface control port (inc. delay block) |
| FMC | P | AHB | Flexible memory controller control port |
| QSPI | P | AHB | Quad-SPI control port (inc. delay block) |
| SRAM1/2/3 | P | AHB | SRAM |
| TZC | S | APB | TrustZone address space controller |
| ETZPC | WS | APB | TrustZone protection controller (this IP) |
| DMA3/DMAMUX2 | S | AHB | Secure DMA controller and multiplexer |
1. P: programmable secure, S: always secure, WS: write secure, read non-secure
Table 82. STM32MP13xx TrustZone-aware peripherals| IP | Bus | comment |
|---|---|---|
| BSEC | APB5 | BSEC includes a subset of secure registers |
| MDMA | AHB | MDMA supports security per channel and its slave port is made TrustZone aware to forbid non-secure access to secure channels |
| GPIO | AHB | All GPIO ports are TrustZone-aware and support pin level security |
| RCC | AHB | RCC includes sensitive registers which are write secure |
| PWR | AHB | PWR includes sensitive registers which are write secure |
| EXTI | AHB | EXTI includes sensitive registers which are write secure |
| IP | Bus | comment |
|---|---|---|
| RTC and Tamper | APB | RTC/TAMP includes a subset of secure registers |
| SYSCFG | APB | SYSCFG includes certain registers which are write secure. Several registers are associated with securable peripherals and are write secure if the peripheral DECPROT bits are programmed as secure. |
For more information about IP security features refer to the corresponding IP section.
Table 83. STM32MP13xx memory firewalls| On-chip memory | IP | comment |
|---|---|---|
| ROM | TZMA0 | ROM 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. |
| SYSRAM | TZMA1 | SYSRAM 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 128 Kbyte size. After system reset all SYSRAM is secure. |
| IP | I/F | comment |
|---|---|---|
| Cortex-A7 | AXI | Cortex-A7 is TrustZone capable. |
| MDMA | AXI | MDMA channels can be set as secure or non-secure. |
| DAP AXI-AP | AXI | AXI-AP is made TrustZone aware according to debug authentication interface (spiden, spniden) controlled by the BSEC. |
| ETH1/2 | AXI | Ethernet MAC behaves as a secure master if its DECPROT bits are set to “secure”. |
| LTDC layer 2 | AXI | LTDC layer 2 is a secure master if its DECPROT bits are set to “secure”. |
| DMA3 | AHB | DMA3 is a secure master. (The requester must be secure.) |
| Index | decprot bits | IP | Bus | Default | Bus master | Type |
|---|---|---|---|---|---|---|
| 0 | DECPROT0[1:0] | VREFBUF | APB3 | 0b00 | no | Securable |
| 1 | DECPROT0[3:2] | LPTIM2 | APB3 | 0b00 | no | Securable |
| 2 | DECPROT0[5:4] | LPTIM3 | APB3 | 0b00 | no | Securable |
| 3 | DECPROT0[7:6] | LTDC layer 2 | APB4 | 0b00 | yes | Securable |
| 4 | DECPROT0[9:8] | DCMIPP | APB4 | 0b00 | yes | Securable |
| 5 | DECPROT0[11:10] | USBPHYC | APB4 | 0b00 | no | Securable |
| 6 | DECPROT0[13:12] | DDRCTRL and DDRPHYC | APB4 | 0b00 | no | Securable |
| 7 | DECPROT0[15:14] | - | - | 0b00 | - | Reserved |
Table 85. DECPROT assignment (continued)
| Index | decprot bits | IP | Bus | Default | Bus master | Type |
|---|---|---|---|---|---|---|
| 8 | DECPROT0[17:16] | - | - | 0b00 | - | Reserved |
| 9 | DECPROT0[19:18] | - | - | 0b00 | - | Reserved |
| 10 | DECPROT0[21:20] | - | - | 0b00 | - | Reserved |
| 11 | DECPROT0[23:22] | - | - | 0b00 | - | Reserved |
| 12 | DECPROT0[25:24] | IWDG1 | APB5 | 0b00 | no | Securable |
| 13 | DECPROT0[27:26] | STGENC | APB5 | 0b00 | no | Securable |
| 14 | DECPROT0[29:28] | - | - | 0b00 | - | Reserved |
| 15 | DECPROT0[31:30] | - | - | 0b00 | - | Reserved |
| 16 | DECPROT1[1:0] | USART1 | APB6 | 0b00 | no | Securable |
| 17 | DECPROT1[3:2] | USART2 | APB6 | 0b00 | no | Securable |
| 18 | DECPROT1[5:4] | SPI4 | APB6 | 0b00 | no | Securable |
| 19 | DECPROT1[7:6] | SPI5 | APB6 | 0b00 | no | Securable |
| 20 | DECPROT1[9:8] | I2C3 | APB6 | 0b00 | no | Securable |
| 21 | DECPROT1[11:10] | I2C4 | APB6 | 0b00 | no | Securable |
| 22 | DECPROT1[13:12] | I2C5 | APB6 | 0b00 | no | Securable |
| 23 | DECPROT1[15:14] | TIM12 | APB6 | 0b00 | no | Securable |
| 24 | DECPROT1[17:16] | TIM13 | APB6 | 0b00 | no | Securable |
| 25 | DECPROT1[19:18] | TIM14 | APB6 | 0b00 | no | Securable |
| 26 | DECPROT1[21:20] | TIM15 | APB6 | 0b00 | no | Securable |
| 27 | DECPROT1[23:22] | TIM16 | APB6 | 0b00 | no | Securable |
| 28 | DECPROT1[25:24] | TIM17 | APB6 | 0b00 | no | Securable |
| 29 | DECPROT1[27:26] | - | - | 0b00 | - | Reserved |
| 30 | DECPROT1[29:28] | - | - | 0b00 | - | Reserved |
| 31 | DECPROT1[31:30] | - | - | 0b00 | - | Reserved |
| 32 | DECPROT2[1:0] | ADC1 | AHB2 | 0b00 | no | Securable |
| 33 | DECPROT2[3:2] | ADC2 | AHB2 | 0b00 | no | Securable |
| 34 | DECPROT2[5:4] | OTG | AHB2 | 0b00 | yes | Securable |
| 35 | DECPROT2[7:6] | - | - | 0b00 | - | Reserved |
| 36 | DECPROT2[9:8] | - | - | 0b00 | - | Reserved |
| 37 | DECPROT2[11:10] | - | - | 0b00 | - | Reserved |
| 38 | DECPROT2[13:12] | - | - | 0b00 | - | Reserved |
| 39 | DECPROT2[15:14] | - | - | 0b00 | - | Reserved |
| 40 | DECPROT2[17:16] | RNG | AHB5 | 0b00 | no | Securable |
| 41 | DECPROT2[19:18] | HASH | AHB5 | 0b00 | no | Securable |
| 42 | DECPROT2[21:20] | CRYP | AHB5 | 0b00 | no | Securable |
Table 85. DECPROT assignment (continued)
| Index | decprot bits | IP | Bus | Default | Bus master | Type |
|---|---|---|---|---|---|---|
| 43 | DECPROT2[23:22] | SAES | AHB5 | 0b00 | no | Securable |
| 44 | DECPROT2[25:24] | PKA | AHB5 | 0b00 | no | Securable |
| 45 | DECPROT2[27:26] | BKPSRAM | AHB5 | 0b00 | no | Securable |
| 46 | DECPROT2[29:28] | - | - | 0b00 | - | Reserved |
| 47 | DECPROT2[31:30] | - | - | 0b00 | - | Reserved |
| 48 | DECPROT3[1:0] | ETH1 | AHB6 | 0b00 | yes | Securable |
| 49 | DECPROT3[3:2] | ETH2 | AHB6 | 0b00 | yes | Securable |
| 50 | DECPROT3[5:4] | SDMMC1 and DLBSD1 | AHB6 | 0b00 | yes | Securable |
| 51 | DECPROT3[7:6] | SDMMC2 and DLBSD2 | AHB6 | 0b00 | yes | Securable |
| 52 | DECPROT3[9:8] | - | - | 0b00 | - | Reserved |
| 53 | DECPROT3[11:10] | DDRMCE | AHB6 | 0b00 | no | Securable |
| 54 | DECPROT3[13:12] | FMC | AHB6 | 0b00 | no | Securable |
| 55 | DECPROT3[15:14] | QSPI and DLBQ | AHB6 | 0b00 | no | Securable |
| 56 | DECPROT3[17:16] | - | - | 0b00 | - | Reserved |
| 57 | DECPROT3[19:18] | - | - | 0b00 | - | Reserved |
| 58 | DECPROT3[21:20] | - | - | 0b00 | - | Reserved |
| 59 | DECPROT3[23:22] | - | - | 0b00 | - | Reserved |
| 60 | DECPROT3[25:24] | SRAM1 | MLAHB | 0b00 | no | Securable |
| 61 | DECPROT3[27:26] | SRAM2 | MLAHB | 0b00 | no | Securable |
| 62 | DECPROT3[29:28] | SRAM3 | MLAHB | 0b00 | no | Securable |
| 63 | DECPROT3[31:30] | - | - | 0b00 | - | Reserved |
13.6 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 85 according to the index (from 0 to 63).
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.
13.6.1 ETZPC ROM secure size definition (ETZPC_TZMA0_SIZE)
Address offset: 0x000
Reset value: 0x0000 03FF
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| LOCK | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| rs | |||||||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | R0SIZE[9:0] | |||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | ||||||
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)

13.6.2 ETZPC RAM secure size definition (ETZPC_TZMA1_SIZE)
Address offset: 0x004
Reset value: 0x0000 03FF
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| LOCK | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| rs | |||||||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | R0SIZE[9:0] | |||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | ||||||
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
....
0x020 to 0x3FF: 128 Kbyte RAM secure (for example all RAM secure)
13.6.3 ETZPC securable peripheral control register x (ETZPC_DECPROTx)
Address offset: 0x010 + 0x004 * (x - 0) (x = 0 to 3)
Reset value: 0x0000 0000, 0x0000 0000, 0x0000 0000, 0x0000 0000
Register reset values according to values in Table 85 column Default, see also register map.
Define security and isolation for peripheral at index (16 * x + y) in Table 85 according to ETZPC_DECPROTx with (x = 0 to 3) and (y= 0 to 15) according to DECPROTy[1:0]:
- 00: read and write secure
- 01: read non-secure and write secure
- 10: reserved
- 11: non-secure.
Permissible values of DECPROTy[1:0] are according to Table 85 column Attributes.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| DECPROT15 [1:0] | DECPROT14 [1:0] | DECPROT13 [1:0] | DECPROT12 [1:0] | DECPROT11 [1:0] | DECPROT10 [1:0] | DECPROT9 [1:0] | DECPROT8 [1:0] | ||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| DECPROT7 [1:0] | DECPROT6 [1:0] | DECPROT5 [1:0] | DECPROT4 [1:0] | DECPROT3 [1:0] | DECPROT2 [1:0] | DECPROT1 [1:0] | DECPROT0 [1:0] | ||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:30 DECPROT15[1:0]: Settings for peripheral with index (16 * x + 15) in Table 85
Bits 29:28 DECPROT14[1:0]: Settings for peripheral with index (16 * x + 14) in Table 85
Bits 27:26 DECPROT13[1:0]: Settings for peripheral with index (16 * x + 13) in Table 85
Bits 25:24 DECPROT12[1:0]: Settings for peripheral with index (16 * x + 12) in Table 85
Bits 23:22 DECPROT11[1:0]: Settings for peripheral with index (16 * x + 11) in Table 85
Bits 21:20 DECPROT10[1:0]: Settings for peripheral with index (16 * x + 10) in Table 85
Bits 19:18 DECPROT9[1:0]: Settings for peripheral with index (16 * x + 9) in Table 85
Bits 17:16 DECPROT8[1:0]: Settings for peripheral with index (16 * x + 8) in Table 85
Bits 15:14 DECPROT7[1:0]: Settings for peripheral with index (16 * x + 7) in Table 85
Bits 13:12 DECPROT6[1:0]: Settings for peripheral with index (16 * x + 6) in Table 85
Bits 11:10 DECPROT5[1:0]: Settings for peripheral with index (16 * x + 5) in Table 85
Bits 9:8 DECPROT4[1:0]: Settings for peripheral with index (16 * x + 4) in Table 85
Bits 7:6 DECPROT3[1:0]: Settings for peripheral with index (16 * x + 3) in Table 85
Bits 5:4 DECPROT2[1:0]: Settings for peripheral with index (16 * x + 2) in Table 85
Bits 3:2 DECPROT1[1:0]: Settings for peripheral with index (16 * x + 1) in Table 85
Bits 1:0 DECPROT0[1:0]: Settings for peripheral with index (16 * x + 0) in Table 85
13.6.4 ETZPC decprot lock x register (ETZPC_DECPROT_LOCKx)
Address offset: 0x030 + 0x004 * (x-0) (x = 0 to 1)
Reset value: 0x0000 0000
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 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 |
| rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| LOCK1 5 | LOCK1 4 | LOCK1 3 | LOCK1 2 | LOCK1 1 | LOCK1 0 | LOCK9 | LOCK8 | LOCK7 | LOCK6 | LOCK5 | LOCK4 | LOCK3 | LOCK2 | LOCK1 | LOCK0 |
| rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs | rs |
Bit 31 LOCK31: Lock of security for peripheral with index (32*x+31) as defined by Table 85.
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 85.
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 85.
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 85.
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 85.
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 85.
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 85.
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 85.
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 23 LOCK23: Lock of security for peripheral with index (32*x+23) as defined by Table 85.
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 22 LOCK22: Lock of security for peripheral with index (32*x+22) as defined by Table 85.
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 21 LOCK21: Lock of security for peripheral with index (32*x+21) as defined by Table 85.
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 20 LOCK20: Lock of security for peripheral with index (32*x+20) as defined by Table 85.
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 19 LOCK19: Lock of security for peripheral with index (32*x+19) as defined by Table 85.
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 18 LOCK18: Lock of security for peripheral with index (32*x+18) as defined by Table 85.
0: not locked
1: decprot[] bits are locked until next reset - Bit 17 LOCK17: Lock of security for peripheral with index (32*x+17) as defined by Table 85.
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 16 LOCK16: Lock of security for peripheral with index (32*x+16) as defined by Table 85.
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 15 LOCK15: Lock of security for peripheral with index (32*x+15) as defined by Table 85.
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 14 LOCK14: Lock of security for peripheral with index (32*x+14) as defined by Table 85.
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 13 LOCK13: Lock of security for peripheral with index (32*x+13) as defined by Table 85.
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 12 LOCK12: Lock of security for peripheral with index (32*x+12) as defined by Table 85.
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 11 LOCK11: Lock of security for peripheral with index (32*x+11) as defined by Table 85.
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 10 LOCK10: Lock of security for peripheral with index (32*x+10) as defined by Table 85.
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 9 LOCK9: Lock of security for peripheral with index (32*x+9) as defined by Table 85.
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 8 LOCK8: Lock of security for peripheral with index (32*x+8) as defined by Table 85.
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 7 LOCK7: Lock of security for peripheral with index (32*x+7) as defined by Table 85.
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 6 LOCK6: Lock of security for peripheral with index (32*x+6) as defined by Table 85.
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 5 LOCK5: Lock of security for peripheral with index (32*x+5) as defined by Table 85.
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 4 LOCK4: Lock of security for peripheral with index (32*x+4) as defined by Table 85.
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 3 LOCK3: Lock of security for peripheral with index (32*x+3) as defined by Table 85.
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 2 LOCK2: Lock of security for peripheral with index (32*x+2) as defined by Table 85.
0: not locked
1: decprot[] bits are locked until next reset - Bit 1 LOCK1: Lock of security for peripheral with index (32*x+1) as defined by Table 85.
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 0 LOCK0: Lock of security for peripheral with index 32*x as defined by Table 85.
- 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)
13.6.5 ETZPC HW configuration register (ETZPC_HWCFGR)
Address offset: 0x3F0
Reset value: 0x0000 4002
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| CHUNKS1N4[7:0] | NUM_AHB_SEC[7:0] | ||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| NUM_PER_SEC[7:0] | NUM_TZMA[7:0] | ||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
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
13.6.6 ETZPC version register (ETZPC_VERR)
Address offset: 0x3F4
Reset value: 0x0000 0021
| 31 | 30 | 29 | 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. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | MAJREV[3:0] | MINREV[3:0] | ||||||
| r | r | r | r | r | r | r | r | ||||||||
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
13.6.7 ETZPC identification register (ETZPC_IDR)
Address offset: 0x3F8
Reset value: 0x0010 0061
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| ID[31:16] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| ID[15:0] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
Bits 31:0 ID[31:0]: Identification code.
This field returns the Identification code of ETZPC
13.6.8 ETZPC size identification register (ETZPC_SIDR)
Address offset: 0x3FC
Reset value: 0xA3C5 DD01
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| SID[31:16] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| SID[15:0] | |||||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
Bits 31:0 SID[31:0]: Size and ID.
This field returns the size and ID of ETZPC
13.6.9 ETZPC register map
The table below provides the ETZPC register map and reset values.
Table 86. ETZPC register map and reset values
| Offset | Register | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 | ||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x000 | ETZPC_TZMA0_SIZE | LOCK | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | R0SIZE | |||||||||||
| Reset value | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | |||||||||||||||||||||||
| 0x004 | ETZPC_TZMA1_SIZE | LOCK | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | R0SIZE | |||||||||||
| Reset value | 0 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 1 | |||||||||||||||||||||||
| 0x010 | ETZPC_DECPROT0 | DECPROT15 | DECPROT14 | DECPROT13 | DECPROT12 | DECPROT11 | DECPROT10 | DECPROT9 | DECPROT8 | DECPROT7 | DECPROT6 | DECPROT5 | DECPROT4 | DECPROT3 | DECPROT2 | DECPROT1 | DECPROT0 | ||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||
| 0x014 | ETZPC_DECPROT1 | DECPROT15 | DECPROT14 | DECPROT13 | DECPROT12 | DECPROT11 | DECPROT10 | DECPROT9 | DECPROT8 | DECPROT7 | DECPROT6 | DECPROT5 | DECPROT4 | DECPROT3 | DECPROT2 | DECPROT1 | DECPROT0 | ||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||
| 0x018 | ETZPC_DECPROT2 | DECPROT15 | DECPROT14 | DECPROT13 | DECPROT12 | DECPROT11 | DECPROT10 | DECPROT9 | DECPROT8 | DECPROT7 | DECPROT6 | DECPROT5 | DECPROT4 | DECPROT3 | DECPROT2 | DECPROT1 | DECPROT0 | ||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||
| 0x01C | ETZPC_DECPROT3 | DECPROT15 | DECPROT14 | DECPROT13 | DECPROT12 | DECPROT11 | DECPROT10 | DECPROT9 | DECPROT8 | DECPROT7 | DECPROT6 | DECPROT5 | DECPROT4 | DECPROT3 | DECPROT2 | DECPROT1 | DECPROT0 | ||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||
| 0x020 | Reserved | 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. | Res. | Res. | ||
| 0x024 | Reserved | 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. | Res. | Res. | ||
| 0x030 | ETZPC_DECPROT_LOCK0 | LOCK31 | LOCK30 | LOCK29 | LOCK28 | LOCK27 | LOCK26 | LOCK25 | LOCK24 | LOCK23 | LOCK22 | LOCK21 | LOCK20 | LOCK19 | LOCK18 | LOCK17 | LOCK16 | LOCK15 | LOCK14 | LOCK13 | LOCK12 | LOCK11 | LOCK10 | LOCK9 | LOCK8 | LOCK7 | LOCK6 | LOCK5 | LOCK4 | LOCK3 | LOCK2 | LOCK1 | LOCK0 | ||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||
| 0x034 | ETZPC_DECPROT_LOCK1 | LOCK31 | LOCK30 | LOCK29 | LOCK28 | LOCK27 | LOCK26 | LOCK25 | LOCK24 | LOCK23 | LOCK22 | LOCK21 | LOCK20 | LOCK19 | LOCK18 | LOCK17 | LOCK16 | LOCK15 | LOCK14 | LOCK13 | LOCK12 | LOCK11 | LOCK10 | LOCK9 | LOCK8 | LOCK7 | LOCK6 | LOCK5 | LOCK4 | LOCK3 | LOCK2 | LOCK1 | LOCK0 | ||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||
| 0x038 to 0x3EC | Reserved | 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. | Res. | Res. | ||
| 0x3F0 | ETZPC_HWCFG | CHUNKS1N4 | NUM_AHB_SEC[7:0] | NUM_PER_SEC[7:0] | NUM_TZMA[7:0] | ||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | ||
| 0x3F4 | ETZPC_VERR | 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 value | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | ||||||||||||||||||||||||||
Table 86. ETZPC register map and reset values (continued)
| Offset | Register | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x3F8 | ETZPC_IDR | ID[31:0] | |||||||||||||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 0 | 0 | 0 | 0 | 1 | |
| 0x3FC | ETZPC_SIDR | SID[31:0] | |||||||||||||||||||||||||||||||
| Reset value | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | |
Refer to Section 2.5 on page 153 for the register boundary addresses.