6. System security
The STM32MP23/25xx devices are designed with a comprehensive set of security features, some of which being built on top of the standard Arm TrustZone technology.
This section explains the different security features available on these devices.
6.1 Key security features
- • Resource isolation using privilege mode and Armv8-M mainline security extension of the Cortex-M33, extended to allocated I/Os, DMA channels, memories, and peripherals
- • Resource isolation using privilege mode and Arm TrustZone security extension of the Cortex-A35, extended to allocated I/Os, DMA channels, memories, and peripherals
- • For other masters than the Cortex-M33 and Cortex-A35, the STM32 resource isolation framework (RIF) can allocate peripherals, fixed-sized embedded memory blocks and variable-sized address space regions, under the control of security firmware.
- • Boot ROM, supporting the download of boot image through USART, USB, serial NOR or NAND flash (via OCTOSPI), parallel NAND flash (via FMC), SD-card or eMMC (via SDMMC)
- • Non-volatile storage (in BSEC), featuring:
- – ECC protected OTP words, one-time programmable
- – Redundancy protected OTP words, bit per bit programmable
- – Embedded lifecycle management (such as sticky lock, permanent lock, tamper mode)
- • Secure storage, featuring:
- – Battery-powered volatile secure storage, automatically erased in case of tamper (8-Kbyte RAM, 128-byte registers)
- – Write-only key registers in the AES engines
- – Device 96-bit unique ID, readable via JTAG
- – Provisioning of AES wrapped keys in non-volatile storage (for example external flash memory), encrypted with unreadable device-unique keys derived from non-volatile hardware unique key (DHUK). These provisioned AES keys are never readable in the clear, are only usable on this device, and are only usable in the target AES accelerator (SAES, CRYP1, or CRYP2). If the application-defined volatile boot hardware key (BHK) is used in the wrapping, the provisioned AES keys are not usable after a tamper.
- • General-purpose cryptographic acceleration:
- – Two cryptographic processors (CRYP1, CRYP2) supporting AES 256-bit and DES/triple DES with chaining modes ECB and CBC. CTR, GCM, and CCM chaining modes are also supported in AES mode.
- – Secure AES 256-bit security coprocessor, supporting ECB, CBC, CTR, GCM, and CCM chaining modes with side-channel counter-measures and mitigations. Using dedicated key bus, optional key sharing with faster CRYP1 or CRYP2, controlled by the SAES.
- – HASH processor supporting SHA-1 checksum, SHA-2 secure hash (224, 256, 384 and 512) and six Keccak-based functions (SHA3-224, SHA3-256, SHA3-384, SHA3-512, SHAKE128, and SHAKE256)
- – Public key accelerator (PKA) for RSA/DH (up to 4096 bits) and ECC (up to 640 bits), implementing side-channel counter measures and mitigations when manipulating secrets
- – True random number generator (RNG), NIST SP800-90B pre-certified
- • On-the-fly encryption/decryption of external DDR-SDRAM memory region(s).
- – Any secure region can be encrypted, with an automatic key erase in case of tamper
- • On-the-fly decryption of encrypted image stored on external flash memory connected through the OCTOSPI:
- – Almost-zero latency with standard NOR flash memories
- – Can be used to encrypt the image using device-unique secret keys
- – Automatic key erase in case of tamper
- • Secure lifecycle management (secret provisioning, return material for analysis using customer-defined 128-bit key, debug deactivation)
- • Secure software monitoring using independent watchdog 3 (for Cortex-M33) and independent watchdog 1 (for Cortex-A35)
- • Active tamper and protection against temperature, voltage, and frequency attacks
- – Up to 16 tamper pins for eight active output tamper pins, available in all power modes
- – Immediate erase of battery-backed volatile secrets on confirmed tamper detection
- • In Standby mode, the Cortex-M0+ can be used to intercept tamper events without waking up bigger cores like Cortex-M33 or Cortex-A35.
- – If the Cortex-M0+ confirms the tamper event while secrets are blocked, it triggers a wake-up of the CPU running the managing security loop.
6.2 Resource isolation framework (RIF)
The resource isolation framework (RIF) is a comprehensive set of hardware blocks designed to enforce and manage the isolation of STM32MP23/25xx hardware resources, like memory and peripherals.
Application software can use RIF to assign hardware resources to dedicated processing environments that are isolated from each other using hardware isolation boundaries. Within these environments masters are assigned to a security domain and can be secure, non-secure, running privileged or unprivileged code, executing from a CPU, an MCU, or a complex hardware subsystem like a multimedia engine.
RIF-protected resources are assigned at boot time (and subsequently locked) or assigned at run-time. Some RIF-protected resources are exclusively assigned, some are shared, and some are unassigned, as shown in Figure 8.
Figure 8. RIF principle

Legend
- Master (non-secure, secure)
- Resource (slave), can be dynamically taken by allowed compartments
- Resource (slave), statically locked to zero, one or more than one compartments
- Secure resource
- Hardware compartment IDs
MSv67821V1
Note: In the RIF, a security domain corresponds to a triplet (privilege, secure, compartment ID).
6.2.1 RIF security architecture
The resource isolation framework (RIF) is typically implemented as described in the figure below.
Figure 9. RIF block diagram

Legend
- RIFSC: RIF security controller
- RIMC: Resource isolation master controller
- RIMU: Resource isolation master unit
- RISAB: RISU for address space protection (block-based)
- RISAF: RISU for address space protection (full version)
- RISAL: RISU for address space protection (lite version)
- RISC: Resource isolation slave controller
- RISU: Resource isolation slave unit
- RISUP: RISU for peripheral protection
- RIF infrastructure component
- RIF-aware component
- Master port
- Slave port
- GPIO
MSv67820V2
The core components constituting the RIF are summarized below, and in Table 20:
- • RIMU (resource isolation master unit) are components associated to masters
- • RISU or RIS (resource isolation slave unit) are components associated to slave targets
- – filtering accesses to fixed-sized embedded memory blocks (RISAB), or variable sized address space regions (RISAF, RISAL)
- – filtering accesses to each peripheral (RISUP)
- • The RIFSC (RIF security controller) registers contains the following blocks:
- – RIMC (resource isolation master controller) configures the RIMU components.
- – RISC (resource isolation slave controller) configures the RISUP and RISAL components.
- • The IAC (illegal access controller) concentrates all illegal access events managed through the RIF framework (see Section 6.2.9)
When a peripheral needs a finer-grained filtering (like DMA, GPIO, or RTC), it becomes RIF-aware, implementing the needed resource isolation policy within itself (see Section 6.2.8).
Table 20. Overview of RIF core components
| - | RIFSC | RISAF | RISAB | ||
|---|---|---|---|---|---|
| RIMU | RISUP | RISAL | |||
| Affecting target | Initiator | Target | |||
| Resource type | Fixed | Variable | Fixed | ||
| Master port | Peripheral | Address space regions | Memory block | ||
| Access filtering | N/A | Privilege, secure, compartment ID | |||
| Read/write filtering | No | Yes | |||
| Special feature | Semaphore | N/A | Delegation | ||
Refer to the following sections for more details:
- • Section 9: Resource isolation framework security controller (RIFSC)
- • Section 10: Resource isolation slave unit for address space protection (block-based) (RISAB)
- • Section 11: Resource isolation slave unit for address space protection (full version) (RISAF)
As shown on Table 20, the access filtering can be, depending on the case:
- • restricted to none, one or more than one hardware compartment IDs
- • secure-only, non-secure only, or both
- • privileged-only or privileged/unprivileged
- • read-only, write-only, or read/write
Depending on the device, a couple of special features are available:
- • in-built hardware semaphores to dynamically change ownership of resources
- – This method is also available for GPIOs, DMA channels, as well as control of power, clock, and reset (in RCC and PWR).
- • delegation of resource isolation configuration software (from trusted domain) to the processing environment that owns the resource
Any RIF configuration of a resource can be locked at boot time.
6.2.2 RIF access control
The RIF access control principle is outlined in the figure below.
Figure 10. RIF access control principle

MSv67822V1
For Arm Cortex processors, each access to an hardware resource goes through the following steps:
- 1. Within the cores, the MPU or MMU performs filtering based on privilege, execute, and read/write criteria.
- 2. Still within the cores (when TrustZone is supported), a secure/non-secure access control is done, sometimes taking into account whether access is instruction or data.
- 3. The RIF verifies that the access is granted based on the compartment ID of the access initiator. Additional controls based on secure and privileged properties are also performed. Read/write extra control is supported for some RIF resources (such as embedded memory pages).
- 4. Finally, some resources performs extra-filtering like no-execute on banks of registers.
Accessing secure memories and peripherals
An application executing in non-secure state can only access non-secure memories and peripherals. An application executing in secure state can access both secure and non-secure memories and peripherals.
In the latter case, there is an important rule to follow: A secure application must access a non-secure memory or peripheral through a non-secure alias in the MMU/MPU table, as explained in Figure 11.
Figure 11. Accesses to secure memories and peripherals

The diagram shows the access permissions between Cortex core execution and Area declaration in MMU/MPU. On the left, Cortex core execution is divided into Secure and Non-secure. On the right, Area declaration in MMU/MPU is divided into Secure and Non-Secure. Accesses are shown as arrows between these regions, with red 'X' marks indicating prohibited access.
- Secure Cortex core execution can access Secure Area declaration (Secure peripheral, Secure memory) and Non-secure Area declaration (Non-secure peripheral, Non-secure memory).
- Non-secure Cortex core execution can access Non-secure Area declaration (Non-secure peripheral, Non-secure memory) and Secure Area declaration (Secure peripheral, Secure memory).
- Secure Area declaration can access Secure Cortex core execution (Secure peripheral, Secure memory) and Non-secure Cortex core execution (Non-secure peripheral, Non-secure memory).
- Non-Secure Area declaration can access Non-secure Cortex core execution (Non-secure peripheral, Non-secure memory) and Secure Cortex core execution (Secure peripheral, Secure memory).
Legend: (X) Except for data accesses (RISAB only)
MSv67823V1
More specifically, when a secure application wants to write data to the non-secure world, the secure data access is transformed automatically by the core into a non-secure data access, as the target region is mapped into a non-secure space in the MMU (Cortex-A) or SAU/IDAU (Cortex-M).
Note: This secure to non-secure conversion is also supported by the DMA, under the supervision of a secure application.
The RISAB supports the option of deactivating the secure read/write illegal access to non-secure memory (see SRWIAD bit in RISAB_CR).
Mapping peripherals in two address spaces (secure and non-secure) is optional for Cortex-A.
Accessing privileged memories and peripherals
An application executing in unprivileged state can only access unprivileged memories and peripherals. An application executing in privileged state can access both privileged and unprivileged memories and peripherals. Unlike with security, a privileged application can always access an unprivileged memory or peripheral, as shown in the figure below.
Figure 12. Accesses to secure memories and peripherals

The diagram shows the access permissions between Cortex core execution and Area declaration in MMU/MPU. On the left, Cortex core execution is divided into Privileged and Unprivileged. On the right, Area declaration in MMU/MPU is divided into Privileged and Unprivileged. Accesses are shown as arrows between these regions, with red 'X' marks indicating prohibited access.
- Privileged Cortex core execution can access Privileged Area declaration (Privileged peripheral, Privileged memory) and Unprivileged Area declaration (Unprivileged peripheral, Unprivileged memory).
- Unprivileged Cortex core execution can access Unprivileged Area declaration (Unprivileged peripheral, Unprivileged memory) and Privileged Area declaration (Privileged peripheral, Privileged memory).
- Privileged Area declaration can access Privileged Cortex core execution (Privileged peripheral, Privileged memory) and Unprivileged Cortex core execution (Unprivileged peripheral, Unprivileged memory).
- Unprivileged Area declaration can access Unprivileged Cortex core execution (Unprivileged peripheral, Unprivileged memory) and Privileged Cortex core execution (Privileged peripheral, Privileged memory).
MSv67824V1
6.2.3 Application interrupt management in RIF
As shown on Figure 8, a secure application can allocate or deallocate any resource to any compartment thanks to the RIF. The interrupt infrastructure between peripherals and CPU/MCUs must take into account this flexibility, with each compartment being able to see only the interrupt events of the resources allocated to its CPU/MCU.
Figure 13 and Table 21 describe the various interrupt management options in a dual-CPU context.
Note: When the compartment filtering is disabled (CFEN = 0), the interrupts are broadcasted to all CPU/MCUs. When a peripheral is not allocated to any compartment (CFEN = 1, SEM_EN = 1, and SEM_MUTEX = 0), no CPU/MCUs receive interrupts from this peripheral.
Figure 13. RIF interrupt connection types

The diagram illustrates RIF interrupt connection types between peripherals and two CPUs (CPU#1 and CPU#2) in a dual-CPU context:
- P1 (Peripheral legacy): Connected via Config port to RISUP block containing IRQ_GB switch routing to CPU#1_IRQx / CPU#2_IRQx, and configured by RIFSC.
- P2 (Peripheral RIF-aware top): Internal IRQ_GB switches connected to CPU#1_IRQx / CPU#2_IRQx.
- P3 (Peripheral RIF-aware top): Separated non-secure (IRQ_GB_NS) and secure (IRQ_GB_S, highlighted in pink) lines routing through internal switches to CPU#1 / CPU#2.
- P4 (Peripheral RIF-aware top): Multiple interrupt lines (IRQA, IRQB, IRQC, ...) each routing through dedicated switches to CPU#1 / CPU#2.
On the right side, CPU#1 TrustZone-aware (NVIC or GIC) and CPU#2 TrustZone-aware (NVIC or GIC) receive the IRQ lines. The legend indicates pink lines represent Secure interrupt. Identification code MSv67827V1 is shown at the bottom right.
Table 21. Interrupt connection types
| Peripheral type | RIF aware(1) | Global IT(2) | Secure/non-secure IT | Interrupt events destination |
|---|---|---|---|---|
| P1 | No | Yes | No | The allocated CPU, for all events (secure and non-secure) |
| P2 | Yes | Yes | ||
| P3 | ||||
| P4 | Yes(3) | No | No | The CPU concerned by its specific events (secure or non-secure, according to event resource setup) |
- 1. If yes, the peripheral is RIF-aware. It manages resources that are associated to more than one CID.
- 2. If yes, a single interrupt line captures all the interrupt events.
- 3. Any interrupt status bit in this peripheral must be readable only by the correct CPU in the correct security and privileged mode.
Note: The debug domain does not manage interrupts.
6.2.4 RIF illegal access definition
When RIF access control is enforced, illegal access events are defined in following tables.
Table 22. Access-type definitions for Arm TrustZone cores
| Processing environment | Core access | MPU(1)/MMU setup | Access type |
|---|---|---|---|
| Secure | Data | Secure | Secure |
| Non-secure | Non-secure | ||
| Instruction | Secure | Secure | |
| Non-secure | Denied(2) | ||
| Non-secure | Data | Secure | Denied(2) |
| Non-secure | Non-secure | ||
| Instruction | Secure | Denied(2) | |
| Non-secure | Non-secure |
- 1. Actual configuration in Cortex-M33 is done as a mix of programmable SAU and fixed IDAU.
- 2. A fault is triggered within the core.
Table 23. RIF illegal access definitions (security)
| Access type (see Table 22) | Memory resource | Peripheral resource | |||
|---|---|---|---|---|---|
| Secure | Non-secure | Secure | Non-secure | ||
| Secure | Data | OK | Silent fail(1)(2) | OK | OK |
| Non-secure | Silent fail(2) | OK | Silent fail(2) | OK | |
| Secure | Instruction | OK | Bus error | Bus error | Bus error |
| Non-secure | Bus error | OK | Bus error | Bus error | |
- 1. Always OK for debug domain. Configurable as OK for any compartment if SRWIAD = 1 in RISAB_CR.
- 2. Secure illegal access event, also triggered toward the IAC.
Table 24. RIF illegal access definitions (privilege)
| Access type (see Table 22) | Memory resource | Peripheral resource | |||
|---|---|---|---|---|---|
| Privileged | Unprivileged | Privileged | Unprivileged | ||
| Privileged | Data | OK | OK | OK | OK |
| Unprivileged | Silent fail(1) | OK | Silent fail(1) | OK | |
| Privileged | Instruction | OK | OK | Bus error | Bus error |
| Unprivileged | Bus error | OK | Bus error | Bus error | |
1. Privileged illegal access event, also triggered toward the IAC.
Table 25. RIF illegal access definitions (compartments)
| Access type | Memory resource | Peripheral resource | |||
|---|---|---|---|---|---|
| CID1 | CID2 | CID1 | CID2 | ||
| CID1 | Data | OK | Silent fail(1) | OK | Silent fail(1) |
| CID2 | Silent fail(1) | OK | Silent fail(1) | OK | |
| CID1 | Instruction | OK | Bus error(1) | Bus error | Bus error |
| CID2 | Bus error(1) | OK | Bus error | Bus error | |
1. Compartment illegal access event, also triggered toward the IAC.
As shown in Table 22, for a core executing in a TrustZone secure processing environment, the memory and peripheral resources must be mapped into a secure space.
A silent fail is defined as read as zero (for data reads) and write ignored (for writes). An illegal access signaling to the IAC usually also occurs (see Section 6.2.5).
A bus error is defined as read as zero and generation of an error on the system bus, so that the Cortex core can get the fault address. Bus errors do not raise any error flags in the device.
Note: A read as zero (RaZ) answer to an illegal instruction fetch also generates an HardFault in Cortex cores, because when decoding all-zero instruction code, the core triggers an HardFault exception.
Events not generating an illegal access
When a valid access tries to read (resp. write) to a read-only (resp. write-only) register protected by RIF, the access is denied (RaZ/write ignored), without the generation of an illegal access.
During a register read (resp. write) access, if at least one bitfield is not read (resp. write) xx-protected, meaning that at least one bitfield can be read (resp. written), then the output signal xx_ilac is not asserted (xx = sec, priv or cid).
For legacy peripherals protected by RISUP, no compartment access error is triggered when the semaphore is taken via one of RISC_PERY_SEMCR registers, unless the compartment of this access is not part of the white-listed compartments.
6.2.5 Managing illegal accesses with RIF
The RIF components do not use the standard interrupt lines toward NVIC or GIC concentrators. The IAC, captures all RIF interrupt events, called illegal access events.
Such events are triggered in the following cases:
- • illegal access to a RIF protected resource because of security
- • illegal access to a RIF protected resource because of privilege
- • illegal access to a RIF protected resource because of bad CID
See Section 12: Illegal access controller (IAC) for more information on the way illegal accesses are managed.
6.2.6 RIF special security domain: trusted domain
In the RIF, a master with a security domain that equals to secure, privileged, and CID = TDCID, is part of a special domain called the trusted domain. Such a master is initialized as part of the trusted boot in order to manage the critical RIF configuration.
The trusted domain compartment TDCID is fixed by default to 0x1, and is stored in RIMC_CR. The default TDCID corresponds to the boot ROM executing on Cortex-A35.
The devices support two trusted domain scenarios, shown in the figure below.
Figure 14. Trusted domain chaining principle

The diagram illustrates two scenarios for trusted domain chaining between Cortex-A35 and Cortex-M33.
Scenario 1: Runtime trusted domain: Cortex-A35
- Cortex-A35 boot: Starts with a black circle, leading to an Immutable Root-of-Trust (RoT) (pink box).
- Cortex-A35: The Immutable RoT leads to an Updatable RoT (pink box), which leads to TD init (pink box). A note indicates "TDCID kept as Cortex-A35".
- Cortex-M33 run time: The TD init leads to a thick horizontal bar, which then branches to user-A boot and sec user-M boot (optional).
- Application flow: user-A boot leads to CPU app (pink box). sec user-M boot (optional) leads to user-M boot, which leads to MCU app (pink box).
Scenario 2: Runtime trusted domain: Cortex-M33
- Cortex-A35 boot: Starts with a black circle, leading to an Immutable (RoT) (pink box). A note indicates "Default TDCID = 1".
- Cortex-A35: The Immutable (RoT) leads to TD init (pink box). A note indicates "TDCID goes to Cortex-M33".
- Cortex-M33 run time: The TD init leads to a thick horizontal bar, which then branches to sec user-A boot (optional) and user-M boot.
- Application flow: sec user-A boot (optional) leads to user-A boot, which leads to CPU app (pink box). user-M boot leads to MCU app (pink box).
Legend: A pink box with "XXXX" represents a Trusted domain (TD) application.
Reference: MSv67825V1
In the first scenario, a typical chain of trust executes on the default trusted CPU (Cortex-A35 secure privileged). In the second scenario, after securely installing MCU firmware in the embedded SRAM, the Cortex-A35 transfers the trusted domain ownership to the Cortex-M33 secure privileged, by setting TDCID = 0x2 in RIMC_CR.
Note: A TDCID transfer is possible only once.
6.2.7 RIF special security domain: debug domain
In the RIF, a privileged master with CID = DDCID, is part of a special domain called the debug domain. Such a master (usually a DAP peripheral) is initialized as part of the trusted boot to manage the debugging of a RIF protected device.
Note: In the STM32MP23/25xx devices, DDCID is fixed to value 0x7.
The debugging tools with debug domain access rights (privileged, DDCID) can access to all peripheral and memory resources in the device, if their security level is sufficient.
More specifically:
- • Non-secure debug domain can only access peripherals and memories that are tagged by application as non-secure.
- • Secure debug domain can read and write anywhere in the device, including registers reserved to the trusted domain.
Note: The debug domain master is always privileged.
When the debug domain is activated, DDEN = 1 in RIMC_CR. It is always activated in STM32MP23/25xx devices.
The debugging tool access right setup by trusted application is detailed in Section 7.3.10: BSEC debug and trace control. For more information on RIF debug access port security, see Section 9: Resource isolation framework security controller (RIFSC).
6.2.8 Managing security in RIF-aware peripherals
The resources isolated by the RIF core framework defined in Section 6.2.1 are peripherals, fixed-sized embedded memory blocks, and variable-sized address space regions.
As a RIF framework extension, additional resources are available in this device (see corresponding sections for more details).
- • central DMA channels (see HPDMA, LPDMA)
- • reset and clock control (see RCC)
- • power control (see PWR)
- • general purpose I/Os (see GPIO)
- • real-time clock and tamper/backup registers (see RTC and TAMP)
- • hardware semaphore (see HSEM)
- • inter-processor communication controller (IPCC)
- • flexible memory controller (FMC)
- • system configuration controller (SYSCFG)
- • extended interrupts and event controller (see EXTI)
6.2.9 Activating RIF security
RIF state following a system reset
After a general reset (POR, power-on reset), all non RIF-aware peripherals become non-secure and unprivileged (RISC_SECCFGRx and RISC_PRIVCFGRx are zeroed).
For embedded SRAM protected by RISAB (resp. RISAL), default values are defined in Section 10.3: RISAB implementation (resp. Section 9.3: RIFSC implementation).
Address spaces protected by RISAF are by default secure, privileged, and TDCID only.
Note: Out-of-reset compartment-based filtering is bypassed only for peripherals and for memories protected by RISAB.
RIF wake-up from standby
When the device leaves the Standby state (see PWR), the RIF allows the Cortex-M33 to execute a RIF restoration sequence, temporarily upgrading CID = 0x2 as TDCID in RIFSC_RIMC.
Note: When the wake-up CPU option is enabled, the TDCID information out of reset from RIFSC is not RIFSC_RIMC_CR default value 0x1 (Cortex-A35), but the wake-up CID value 0x2 (Cortex-M33).
A typical wake-up CPU sequence is described in the figure below.
Figure 15. Wake-up CPU principle

sequenceDiagram
participant TDCPU
participant PM as Power manager
participant WUCPU
Note over PM: Cold boot trigger
PM->>TDCPU: Release CPU
Note over TDCPU: Wake-up CPU preparation sequence (crossed out)
TDCPU->>PM: Go to Standby
Note over PM: Wake-up event
PM->>WUCPU: Release CPU
Note over WUCPU: Wake-up CPU sequence done
WUCPU->>PM: Done
PM->>TDCPU: Release CPU
Note over TDCPU: From here, RIF access rights are restored as before STandby.
MSv67826V1
The main steps are detailed below:
- 1. The trusted CPU executes following a cold boot trigger. The RIF is properly initialized while the applications are installed in the device.
- 2. The trusted CPU configures the device to allow the Cortex-M33 to quickly restore the context that is lost in Standby state. Following steps are expected:
- – Store restoration firmware in RETRAM, writing reference CRC in RAMCFG.
- – Set up wake-up event mode in the RCC, and adapt the EXTI2 configuration accordingly. The trusted domain also sets in the RCC, the necessary configuration to have wu_cpuen signal to RIFSC set.
- – Enable automatic CRC and ECC protection in RAMCFG.
- 3. When a wake-up event occurs, the Cortex-M33 executes restoration firmware stored in the RETRAM, if CRC is correct and if no double-error detection (DED) occurred on the RETRAM. By hardware, WUCEN is also set in RIMC_SR. At the end of the restoration sequence, the Cortex-M33 sets WUCDONE in RIMC_CR. The TDCID value goes back to the original one, stored in RIMC_CR.
- 4. The power manager releases the CPUs to wake up. The device is fully functional.
6.2.10 Programming of RIFSC, RCC and IAC
In order to properly program the RISUP and the RCC, and to read back illegal access information in the IAC, refer to the peripheral index tables (in Section 9.3: RIFSC implementation), as follows:
- • When an illegal access occurs, the secure privileged application running in the trusted domain can find the source of the error using the given index x:
- – IAIEx bit to set/clear in IAC_IER
- – IAFx bit to read (resp. write) in IAC_ISR (resp. IAC_ICR)
- • For legacy peripherals protected with RISUP (that is, all peripherals in Table 38: Indexes for non-RIF-aware peripherals (RISUP), without footnote #2 or #3), the index x provides the following extra information:
- – SECx bit to set/clear in RISC_SECCFGR
- – PRIVx bit to set/clear in RISC_PRIVCFGR
- – RLOCKx bit to set in RISC_RCFGLOCKR
- – which RISC_PERx_CIDFG to use: offset = 0x100+0x8*x
- – which RISC_PERx_SEMCR to use: offset = 0x104+0x8*x
- – which RCC register to use for clock enable and reset: offset = 0x700+0x4*x
- • For the local resources protected in RIF-aware RCC peripheral, the index y (RCC index) provides the following extra information:
- – SECy bit to set/clear in RCC_SECCFGR
- – PRIVy bit to set/clear in RCC_PRIVCFGR
- – RLOCKy bit to set in RCC_RCFGLOCKR
- – which RCC_RyCIDFG to use: offset = 0x030+0x8*y
- – which RCC_RySEMCR to use: offset = 0x034+0x8*y