9. Resource isolation framework security controller (RIFSC)

9.1 Introduction

Resource isolation framework (RIF) is a comprehensive set of hardware blocks designed to enforce and manage isolation of STM32 hardware resources, like memory and peripherals.

The RIFSC (RIF security controller) is composed of three sets of registers, each managing a specific set of hardware resources:

9.2 RIFSC main features

9.3 RIFSC implementation

RIMU

Master port RIF protections in this device (using RIMU) are defined in Table 37. Possible inheritance from RISUP of RIF configuration is also defined.

Table 37. RIMU resource assignment

Index(1)Master nameCID at resetRISUP(2) inheritance
-CPU1 (Cortex-A35)0x1No
-CPU2 (Cortex-M33)0x2
-CPU3 (Cortex-M0+)0x3
0Trace (ETR)0x0
1SDMMC1RISUP76CID, secure guard(3)
2SDMMC2RISUP77
3SDMMC3RISUP78
4USB3DRRISUP66
5USBH (USB2)RISUP63
6ETH1RISUP60
7ETH2RISUP61
8PCIERISUP68
9GPURISUP79
10DCMIPP (camera)RISUP87
11LTDC L1 or L20x0No
12LTDC L3
13LTDC ROT
14VDECRISUP89CID, secure guard(3)
15VENCRISUP90
  1. 1. When no index is written, the CID values are hardcoded, and the master manages security.
  2. 2. When applicable, the corresponding CIDSEL bit is available in RIFSC_RIMC_ATTRx.
  3. 3. The master is forced by hardware to non-secure when its associated RISUP is programmed non-secure.

Note: All DMA instances (HPDMA, LPDMA) are not mentioned, as they automatically manage the CID to use on their master ports (0 to 2, or 0 to 3 only), inheriting the value from the CPU that controls a given channel.

RISUP

Table 38 defines the index of the non-RIF-aware peripherals managed by the RIFSC (RISUP blocks) and the IAC. Few RIF-aware peripherals are also listed.

When a peripheral is used by multiple security domains (like multiple CPU codes), the RCC implements specific clock and reset access control registers, using a dedicated rcc index, also shown in this table.

Table 38. Indexes for non-RIF-aware peripherals (RISUP)

Peripherals 31 to 0
rcc-USART131
SPDIFRX30
rcc-SPI829
SPI728
rcc-SPI627
SPI526
rcc-SPI425
SPI324
rcc-SPI223
SPI122
rcc-LPTIM521
LPTIM420
rcc-LPTIM319
LPTIM218
rcc-LPTIM117
TIM2016
rcc-TIM1715
TIM1614
rcc-TIM1513
TIM1412
rcc-TIM1311
TIM1210
rcc-TIM119
TIM108
rcc-TIM87
TIM76
rcc-TIM65
TIM54
rcc-TIM43
TIM32
rcc-TIM21
TIM10
Peripherals 63 to 32
rcc-USBH63
-62
rcc-ETH261
ETH160
rcc-ADC359
ADC1258
rcc-HDP57
FDCAN56
rcc-ADF155
MDF154
rcc--53
SAI452
rcc-SAI351
SAI250
rcc-SAI149
I2C848
rcc-I2C747
I2C646
rcc-I2C545
I2C444
rcc-I2C343
I2C242
rcc-I2C141
LPUART140
rcc-UART939
UART838
rcc-UART737
USART636
rcc-UART535
UART434
rcc-USART333
USART232
Peripherals 95 to 64
rcc-HASH95
SAES94
rcc-PKA93
RNG92
rcc--91
VENC90
rcc-VDEC89
DCMI PSSI88
rcc-DCMI PP87
CSI86
rcc--85
LVDS84
rcc--83
-82
rcc-DSI common(1)81
LTDC common(1)80
rcc-GPU79
SDMMC378
rcc-SDMMC277
SDMMC176
rcc-OCTOSPI275
OCTOSPI174
rcc-STGEN(2)73
ETHSW_ACM_MSG72
rcc-ETHSW_ACM71
ETHSW_DEIP70
rcc-UCPD169
PCIE68
rcc-COMBOPHY67
USB3DR66
rcc--65
-64
Peripherals 127 to 96
rcc-IAC(2)(3)127
OTFDEC2126
rcc-OTFDEC1125
-124
rcc-DSI_RD(3)123
DSI_TRIG(3)122
rcc-LTDC_ROT(3)121
LTDC_L3(3)120
rcc-LTDC_L1L2(3)119
ICACHE DCACHE(3)118
rcc-I3C4117
I3C3116
rcc-I3C2115
I3C1114
rcc--113
GICV2M112
rcc-OCTOSPIM111
SERC110
rcc-CRC109
RAMCFG108
rcc-DTS107
VREFBUF106
rcc--105
WWDG2104
rcc-WWDG1103
IWDG5102
rcc-IWDG4101
IWDG3100
rcc-IWDG299
IWDG198
rcc-CRYP297
CRYP196
  1. 1. Common configuration registers (refer to the corresponding peripheral section for details).
  2. 2. RIF-aware peripheral, without access control registers in the RIFSC.
  3. 3. No associated registers in the RCC.

IAC and RCC indexes for RIF-aware peripherals and RIF protected memories

Table 39 defines the index of the RIF firewall components and RIF-aware peripherals managed by IAC and RCC peripherals.

Note: All these peripherals are RIF-aware, not requiring RISUP, and usually belonging to multiple compartments.

Table 39. Indexes for RIF-aware peripherals (with RCC control index)

Peripherals 159 to 128
159158157156155154153152151150149148147146145144143142141140139138137136135134133132131130129128
-SYSCFGRIFSCCA35SSRCCPWREXTI2EXTI1TAMPRTCLPDMA1HPDMA3HPDMA2HPDMA1HSEMIPCC2IPCC1--RISAL3 (LPSRAM3)RISAL2 (LPSRAM2)RISAL1 (LPSRAM1)RISAF5 (PCIE)RISAF4 (DDR-SDRAM)-RISAF2 (OCTOSPI1/2)RISAF1 (BKPSRAM)RISAB6 (VDERAM)RISAB5 (RETRAM)RISAB4 (SRAM2)RISAB3 (SRAM1)-RISAB1/2 (SYSRAM)
rcc--106----10210286858483898887--828180-104-110/1117775767978-74
Peripherals 191 to 160
191190189188187186185184183182181180179178177176175174173172171170169168167166165164163162161160
---------------BSECFMCDDRPHYCDDRCTRL--GPIOZGPIOKGPIOJGPIOIGPIOHGPIOGGPIOFGPIOEGPIODGPIOCGPIOBGPIOA
rcc--------------103112104104--10110099989796959493929190

RIFSC, RCC, and IAC common programming

To program the RISUP and the RCC, and to read back illegal access information in the IAC, refer to Section 6.2: Resource isolation framework (RIF).

ST logo
ST logo

RISAL

Memories protected in this device by RISAL logic are defined in Table 40.

Table 40. RISAL resource assignment (SmartRun domain)

Protected memoryBase region nameWatermark programmingDefault protection(1)
Subregion A and B configuration registersGranularity (bytes)(2)Region size (Kbytes)
LPSRAM11RISC_REG1_ACFGR
RISC_REG1_BCFGR
N/A8Non-secure
Privileged or unprivileged
Cortex-M33 and Cortex-M0+ only
(CID = 0x2 or 0x3)
LPSRAM22RISC_REG2_ACFGR
RISC_REG2_BCFGR
8
LPSRAM3 (data RAM)3RISC_REG3_ACFGR
RISC_REG3_AADDR
RISC_REG3_BCFGR
RISC_REG3_BADDR
816
  1. 1. Default protection policy out of reset.
  2. 2. Subregion watermark programming is not applicable (N/A) when subregion length is fixed.

9.4 RIFSC functional description

9.4.1 RIFSC block diagrams

The RIFSC is composed of three sets of registers, each managing a specific set of hardware resources: RIMU, RISUP, and RISAL

RIFSC and RIMU block diagram

The following figures show the RIMU block diagrams, associated with its master on the interconnect, and the RIFSC peripheral. RISUP inheritance is defined in Section 9.3.

Figure 19. RIMU block diagram (without inheritance)

Figure 19: RIMU block diagram (without inheritance). The diagram shows the RIFSC block on the left, the RIMUx block in the center, and a Peripheral block on the right. RIFSC contains the RIMC_ATTRx* register. RIMUx is a shaded block containing three sub-regions: per_nsec, per_priv, and per_cid, each with a switch. RIFSC outputs mcid, msec (inverted), and mpriv to RIMUx. RIMUx outputs per_nsec, per_priv, and per_cid to the AHB or AXI interconnect. The Peripheral block has a Master port connected to the AHB or AXI interconnect and provides per_clk to RIMUx. The AHB bus is connected to the AHB or AXI interconnect. A note indicates (*) trusted domain only. The diagram is labeled MSv67854V1.
Figure 19: RIMU block diagram (without inheritance). The diagram shows the RIFSC block on the left, the RIMUx block in the center, and a Peripheral block on the right. RIFSC contains the RIMC_ATTRx* register. RIMUx is a shaded block containing three sub-regions: per_nsec, per_priv, and per_cid, each with a switch. RIFSC outputs mcid, msec (inverted), and mpriv to RIMUx. RIMUx outputs per_nsec, per_priv, and per_cid to the AHB or AXI interconnect. The Peripheral block has a Master port connected to the AHB or AXI interconnect and provides per_clk to RIMUx. The AHB bus is connected to the AHB or AXI interconnect. A note indicates (*) trusted domain only. The diagram is labeled MSv67854V1.

Figure 20. RIMU block diagram (with inheritance from RISUP programming)

RIMU block diagram showing RIFSC, RISUP, RIMUx, and Periph y connected via AHB bus and AHB or AXI interconnect. RIFSC contains RISC_SECCFGR, RISC_CIDCFGRy (1), and RIMC_ATTRx (1). RISUP is connected to the AHB bus and Periph y via Slave and Master ports. RIMUx is a central block with internal logic and multiplexers. Periph y is connected to the AHB or AXI interconnect.

The diagram illustrates the RIMU block diagram. The RIFSC block on the left contains RISC_SECCFGR, RISC_CIDCFGRy (1), and RIMC_ATTRx (1). It provides signals sec, cid, cidsel, mcid, msec, and mpriv to the RIMUx block. The RISUP block is connected to the AHB bus and Periph y via Slave and Master ports. RIMUx contains internal logic, including a multiplexer (2) and several multiplexers with '1' inputs. It outputs per_nsec, per_priv, and per_cid to the AHB or AXI interconnect. Periph y is connected to the AHB or AXI interconnect via a Master port. The AHB bus is connected to the RISUP and RIMUx. The AHB or AXI interconnect is connected to the RIMUx and Periph y. A per_clk signal is also shown.

(1) Trusted domain only
(2) Default CID value selected when IPy is not controlled by a single compartment.

MSv67855V1

RIMU block diagram showing RIFSC, RISUP, RIMUx, and Periph y connected via AHB bus and AHB or AXI interconnect. RIFSC contains RISC_SECCFGR, RISC_CIDCFGRy (1), and RIMC_ATTRx (1). RISUP is connected to the AHB bus and Periph y via Slave and Master ports. RIMUx is a central block with internal logic and multiplexers. Periph y is connected to the AHB or AXI interconnect.

RIFSC and RISUP block diagram

Figure 21 shows the block diagram of the RISUP, associated with its slaves on the interconnect, the IAC, and the RIFSC peripherals.

The RISUP logic protecting a peripheral uses information from the RIFSC to determine which security, privilege, and compartment are allowed to go through. There is also inheritance between the access right to the peripheral and the access to the corresponding clocking and reset bits in the RCC peripheral.

Figure 21. RISUP block diagram

RISUP block diagram showing connections between AHB bus, RIFSC, RCC, RISUP, IAC, and various slaves and masters.

The RISUP block diagram illustrates the Resource Isolation Security Unit Peripheral. It features an AHB bus connected to a RIFSC block containing registers: RISC_SECCFG, RISC_CIDCFGx(*), RISC_PRIVCFG, and RISC_SEMCRx. The RIFSC is connected to an RCC block. The RISUP block contains two RIF gates, each connected to a Slave peripheral (Slave periph 0 and Slave periph 1). The RIF gates are connected to a System bus, which is further connected to AHB and APB buses. The System bus is connected to Master 1 and Master 2. The RIF gates are connected to the RCC block via signals: sec, priv, cid, and config. The RIF gates are connected to the Slave peripherals via signals: ck_per0, ck_per1, and per0_irq[0 to 3], per1_irq[0 to 3]. The Slave peripherals are connected to the IAC block via signals: per0_ilac and per1_ilac. The Slave peripherals are connected to the CPU0, CPU1, CPU2, and CPU3 blocks. The RISUP block is connected to the IAC block via signals: per0_irq[0 to 3] and per1_irq[0 to 3]. The RISUP block is connected to the CPU0, CPU1, CPU2, and CPU3 blocks via signals: per0_irq[0 to 3] and per1_irq[0 to 3]. The RISUP block is connected to the IAC block via signals: per0_ilac and per1_ilac. The RISUP block is connected to the CPU0, CPU1, CPU2, and CPU3 blocks via signals: per0_irq[0 to 3] and per1_irq[0 to 3]. The RISUP block is connected to the IAC block via signals: per0_ilac and per1_ilac. The RISUP block is connected to the CPU0, CPU1, CPU2, and CPU3 blocks via signals: per0_irq[0 to 3] and per1_irq[0 to 3].

RISUP block diagram showing connections between AHB bus, RIFSC, RCC, RISUP, IAC, and various slaves and masters.

RIFSC and RISAL block diagram

Figure 22 shows the block diagram of the RISAL, associated with its memory controller on the interconnect, the IAC, and the RIFSC peripherals.

Figure 22. RISAL block diagram

RISAL block diagram showing connections between AHB bus, RIFSC, RISAL1, RISAL2, IAC, Memory ctrl, and Memory.

The RISAL block diagram illustrates the Resource Isolation Security Unit Address Logic. It features an AHB bus connected to a RIFSC block containing registers: RISC_REG1_ACFGR, RISC_REG1_BCFGR, RISC_REG1_AADDR(*), and RISC_REG2_BADDR(*). The RIFSC is connected to an IAC block. The RISAL1 block contains a RIF gate connected to a System bus, which is further connected to AHB and APB buses. The System bus is connected to Master 1 and Master 2. The RIF gate is connected to the RIFSC block via signals: sec, priv, cid, start/end, and risal_ilac. The RIF gate is connected to the Memory ctrl block via signals: sck and -tdcid. The Memory ctrl block is connected to the Memory block. The RISAL2 block is also shown. The RISAL1 block is connected to the RIFSC block via signals: sec, priv, cid, start/end, and risal_ilac. The RISAL1 block is connected to the Memory ctrl block via signals: sck and -tdcid. The Memory ctrl block is connected to the Memory block. The RISAL2 block is also shown.

RISAL block diagram showing connections between AHB bus, RIFSC, RISAL1, RISAL2, IAC, Memory ctrl, and Memory.

9.4.2 RIFSC internal signals

Table 41, Table 42, and Table 43, describe some internal signals available at, respectively, RIMU, RISUP, and RISAL logic levels.

Table 41. RIMU internal input/output signal

NameTypeDescription
per_clkDigital inputPeripheral master port bus clock

Table 42. RISUP internal input/output signals

NameTypeDescription
ck_perXDigital inputPeripheral x kernel clock from RCC
ilacDigital outputIllegal access signal to IAC

Table 43. RISAL internal input/output signals

NameTypeDescription
sckDigital inputSystem bus clock, also used by the protected memory controller
ilacDigital outputIllegal access signal to IAC

9.4.3 RIFSC reset and clocks

RIMU, RISUP, and RISAL logics share the same clock and the same reset as the resource they are protecting.

The RIFSC has a single reset. After a SoC general reset (power-on reset), all non RIF-aware peripherals become non-secure and unprivileged, reachable by any CID. For embedded SRAM protected by RISAL, default values are defined in RISAL.

9.4.4 RIFSC control of masters (RIMU)

RIMC registers in RIFSC, associated with the RIMU logic, assign bus master x to a security domain by setting secure, privileged, and compartment information on the system bus using RIMC_ATTRx registers. Alternatively, when clearing the corresponding SEL bit in RIMC_ATTRx, the bus attribute of the master port x is taken from the RISUP that controls the access to slave port of this peripheral x (supported attribute: CID).

RIMC registers must be initialized by a trusted domain application after the device reset. Optionally this application can set the GLOCK bit in RIMC_CR, preventing further writes to all RIMC registers. This bit can be cleared only by a power-on reset.

If a trusted domain application programs a compartment ID equals 4, 5, or 6 using the MCID[2:0] bitfield, these masters are usually sand boxed to dedicated chunk of memories, and have a reduced set of peripherals and GPIOs.

Note: In the STM32MP23/25xA/D device, CID 7 is reserved for multicore debugging (see Section 6.2.7: RIF special security domain: debug domain).

9.4.5 RIFSC control of debug access port (DAP)

For the protection of the DAP master port, a specific hardware has been implemented in the device. The table below summarizes how the DAP peripheral performs its accesses on the interconnect, based on the debug profile selected by the secure application in the device.

Table 44. DAP compartment ID allocation

Debug profileCPU debugMCUs debugDAP CID valueComment
Microcontroller debugNoYessame as Cortex-M33 (0x2)In this profile, both MCUs can be debugged. Only peripherals accessible to Cortex-M33 can be accessed by the DAP, if security and privilege allow it.
Application processor debugYesNosame as Cortex-A35 (0x1)Only peripherals accessible to Cortex-A35 can be accessed by the DAP, if security and privilege allow it.
Global debug (MCUs and CPU)YesYesAny CID (default: 0x7)DAP CID is defined by DAPCID bitfield in RIMC_CR. DAPCID is writable by secure, non-secure, privileged or unprivileged DAP.

Three important notes are linked to this table:

The way to set up these debug profiles in the device is explained in Section 7.3.10: BSEC debug and trace control.

Figure 23 illustrates how BSEC, DAP, RIMU, and RIMC are integrated. If a global debug profile is selected in BSEC (CPU + MCU debug activated), the DAPCID bitfield in RIMC_CR is writable by secure, non-secure, privileged, or unprivileged DAP. The GDPEN bit is also set in RIMC_SR. If any other debug profile is selected, RIMC_CR can be written only by a trusted domain application.

Note: When no debug profile is selected, the DAP CID is zero.

When DAPCID is left with its default value (0x7), the DAP is assigned to the RIF debug domain, when a global debug profile is selected.

DAP privileged level is not defined by RIMU. Hence, if debug tools define the DAP as unprivileged, its access can be rejected by the target even if DAPCID = 0x7.

Figure 23. DAP and its RIMU

Figure 23. DAP and its RIMU: Diagram showing BSEC, RIFSC, RIMU, DAP, and AHB or AXI interconnect connections.
Figure 23. DAP and its RIMU: Diagram showing BSEC, RIFSC, RIMU, DAP, and AHB or AXI interconnect connections.

9.4.6 RIFSC control of peripherals (RISUP)

RISC registers in RIFSC, associated with the RISUP logic, assign non-RIF aware peripherals to none, one or any security domain (secure, privilege, compartment). The figure below illustrates the principle of this allocation.

Figure 24. Allocation of RISUP resources

Static lock icon Static lock icon Static lock icon Dynamic CID selection icon Static lock icon (pink) Dynamic CID selection icon Static lock icon (pink) Static lock icon Dynamic CID selection icon Static/static-locked CID selection icon
Periph#0Periph#1Periph#2Periph#3Periph#4Periph#5Periph#6Periph#7
snss or nsss or nsns
pnpp or nppp or npnp
CID1CID2C1 or C2 or noneCID2C2 or C3 or noneCID3All CIDs
All CIDs
(ro)
All CIDs
(ro)

Legend Dynamic CID selection (semaphore) s/ns: Secure-only access (or not) ro: Read only
Static/static-locked CID selection p/np: Privileged-only access (or not)

Static lock icon Static lock icon Static lock icon Dynamic CID selection icon Static lock icon (pink) Dynamic CID selection icon Static lock icon (pink) Static lock icon Dynamic CID selection icon Static/static-locked CID selection icon

For each peripheral, the RIF allows the following policies:

Note: For the first three cases, the filtering based on secure and privileged always applies.

At any point in time, the trusted domain application can lock the RIF configuration of a peripheral until the next reset, by setting the RLOCK bit in RISC_RCFGLOCKR.

As defined in Section 6.2: Resource isolation framework (RIF), the debug domain (privileged) must be granted following accesses when activated:

RISUP application information

To assign statically the peripheral x to the compartment y, a trusted domain application must set SCID to CIDy and CFEN to 1 in RISC_PERx_CIDCFGR. An application in compartment y can then set or clear the SECx bit in RISC_SECCFG, and the PRIVx bit in RISC_PRIVCFGR, if the security and privilege of the access are sufficient.

To grant statically the peripheral x to any compartment, a trusted domain application must clear CFEN bit to 0 in RISC_PERx_CIDCFGR. An application in any compartment can then set or clear SECx in RISC_SECCFG, and PRIVx in RISC_PRIVCFGR, if the security and privilege of the access are sufficient.

Note: Only a secure privileged application can write to RISC_SECCFG, while only a privileged application can write to RISC_PRIVCFGR.

The SECx bit in RISC_SECCFG controls the secure access to PRIVx in RISC_PRIVCFGR.

The dynamic assignment of peripheral x to compartment y1 or y2 is done as follows:

Note: At any time, a trusted domain application can reset the peripheral x semaphore by clearing then setting SEM_EN in RISC_PERx_CIDCFGR.

When the trusted domain needs to prevent any compartment to access a peripheral x, the recommended procedure is the following:

From that point, no applications can take the semaphore, hence the access to the peripheral is prevented.

Note: Steps 2 to 3 are not needed if the RCC bits corresponding to this peripheral are at the default values.

The above methods are summarized in the figure below.

Figure 25. RISUP initialization principle

Flowchart showing RISUP initialization principle for a given peripheral resource. It branches based on CFEN and SEM_EN values, leading to various security and privilege update steps for CIDs, and finally to enabling the resource.
graph TD; Start(( )) --> D1{ }; D1 -- "[CFEN=0]" --> B1([Any secure privileged CID can update security]); D1 -- "[CFEN=1]" --> D2{ }; D2 -- "[SEM_EN=0]" --> B2([Grant peripheral usage to one CID]); D2 -- "[SEM_EN=1]" --> B3([Grant peripheral usage to some CIDs]); B3 --> B4([One CID takes ownership of the peripheral]); B4 --> B5([Granted privileged secure CID updates peripheral security]); B2 --> B5; B1 --> D3{ }; D3 -- "[non-secure]" --> B6([Any privileged CID can update privilege]); D3 -- "[secure]" --> B7([Any secure privileged CID can update privilege]); B5 --> D4{ }; D4 -- "[non-secure]" --> B8([Granted privileged CID can update peripheral privilege]); D4 -- "[secure]" --> B9([Granted secure privileged CID can update peripheral privilege]); B6 --> End(( )); B7 --> End; B8 --> End; B9 --> End; End --> Label[Enable the resource];

CFEN: Compartment filtering enable
SEM_EN: Semaphore enable

Blue: resource configuration delegation to one CPU (if resource not locked)

MSv67860V1

Flowchart showing RISUP initialization principle for a given peripheral resource. It branches based on CFEN and SEM_EN values, leading to various security and privilege update steps for CIDs, and finally to enabling the resource.

9.4.7 RIFSC control of address spaces (RISAL)

RISC registers in RIFSC, associated with the RISAL logic, assign address space subregions to one security domain (secure, privilege, compartment). The figure below illustrates the principle of this allocation.

Note: RISAL base region allocation is defined in RISAL.

Figure 26. RISAL region programming

Diagram illustrating RISAL region programming with subregions and base regions.

The diagram illustrates RISAL region programming, divided into two main sections: Subregions programmable length and Subregions fixed length.

Subregions programmable length:

Subregions fixed length:

At the bottom left, a note states: (*) Base region filtering does not apply.

At the bottom right, the identifier MSv67861V1 is present.

Diagram illustrating RISAL region programming with subregions and base regions.

As shown in the above figure, there are multiple types of access toward a base region, filtered by RISAL:

Note: When a subregion is disabled, the associated filtering is also disabled.

RISAL application information

Programming RISAL is consistent with programming subregion registers in RISAF, using the SEC, PRIV, SRCID, RLOCK, and SREN bits in RISC_REGx_zCFGR. Read and write protection is not supported by RISAL subregions.

Note: To change RISC_REG3_zADDR register, the subregion z must be disabled by clearing SREN in RISC_REG3_zCFGR. In this case, the base region access rules apply immediately.

Unlike the RISAF trusted domain cannot delegate the RIF configuration of RISAL, only a trusted domain application can set up RISAL subregions through RISC_REGx_zCFGR and RISC_REG3_zADDR (z = A or B).

For more details, refer to Section 11: Resource isolation slave unit for address space protection (full version) (RISAF).

The RISAL initialization method by a trusted domain application is summarized in the figure below.

Figure 27. RISAL initialization principle

Flowchart of RISAL initialization principle
graph TD
    Start(( )) --> Step1(set subregion start and end addresses (if not fixed))
    Step1 --> Step2(Grant subregion access to one CID)
    Step2 --> Step3(Set privilege and security level to granted CID)
    Step3 --> End((enable the resource))
  

The flowchart illustrates the RISAL initialization principle. It begins with a start node (a solid black circle) labeled "For a given subregion resource". The process follows three sequential steps, each in a rounded rectangle: "set subregion start and end addresses (if not fixed)", "Grant subregion access to one CID", and "Set privilege and security level to granted CID". The process concludes with an end node (a solid black circle with a white border) labeled "enable the resource". The reference code "MSv67862V1" is located in the bottom right corner of the diagram area.

Flowchart of RISAL initialization principle

9.4.8 Managing illegal accesses

RIF components RISUP and RISAL do not use the standard interrupt lines toward NVIC or GIC concentrators. The IAC captures all RIF interrupt events, called illegal access events.

Refer to Section 12: Illegal access controller (IAC) for more information on the way illegal accesses are managed.

9.5 RIFSC registers

These registers are accessible through the register interface of the RIFSC peripheral.

Registers Section 9.5.1 to Section 9.5.6 are slave control registers for peripherals.

Registers Section 9.5.7 and Section 9.5.9 are slave control registers for memories.

Registers Section 9.5.10 and Section 9.5.12 are master configuration registers.

If security and privileged policy allows it, the debug domain traffic goes through, regardless of any CID filtering policy.

9.5.1 RIFSC RISC slave configuration register x (RIFSC_RISC_CR)

Address offset: 0x000

Reset value: 0x0000 0000

Secure privileged, trusted domain CID write access only. Any read access is allowed on this register. Writes are ignored if GLOCK is set.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.GLOCK
rs

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

Bit 0 GLOCK: Global lock

This bit locks the configuration of RIFSC RISC registers until next reset. This bit is cleared by default and, once set, it cannot be reset until global RIFSC reset.

0: RIFSC RISC registers are writable.

1: All writes to RIFSC RISC registers are ignored, except RIFSC_RISC_PERy_SEMCR.

9.5.2 RIFSC RISC slave security configuration register x (RIFSC_RISC_SECCFGRx)

Address offset: 0x010 + 0x4 * x, (x = 0 to 5)

Reset value: 0x0000 0000

Non-secure or unprivileged writes to this register are ignored, while any read is allowed. Writes are ignored if GLOCK is set in RIFSC_RISC_CR.

31302928272625242322212019181716
SEC{i + 32 * x}
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
SEC{i + 32 * x}
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 SEC{i + 32 * x}: Security configuration for peripheral {i + 32 * x} (i = 0 to 31)

0: Secure and non-secure data access are granted to the peripheral {i + 32 * x}.

1: Secure data access only are granted to the peripheral {i + 32 * x}.

Note: Regardless of SEC value, any execute access to peripheral {i + 32 * x} triggers a bus error.

If the compartment filtering for peripheral {i + 32 * x} is enabled (resp. disabled) using CFEN in RIFSC_RISC_PERy_CIDCFGR, only an authorized compartment (resp. any compartment) can write this bit, if privilege and security of the access is sufficient.

Authorized compartment is defined as SCID if SEM_EN = 0 in

RIFSC_RISC_PERy_CIDCFGR. If SEM_EN = 1, it is equal to SEMCID, if SEM_MUTEX = 1 in RIFSC_RISC_PERy_SEMCR. There is no authorized compartment if SEM_EN = 1 and SEM_MUTEX = 0.

9.5.3 RIFSC RISFC slave privileged register x
(RIFSC_RISC_PRIVCFGRx)

Address offset: 0x030 + 0x4 * x, (x = 0 to 5)

Reset value: 0x0000 0000

Unprivileged writes to this register are ignored, while any read is allowed. Writes are ignored if GLOCK is set in RIFSC_RISC_CR.

31302928272625242322212019181716
PRIV{i + 32 * x}
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
PRIV{i + 32 * x}
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

Bits 31:0 PRIV{i + 32 * x}: Privileged-only access permission for peripheral {i + 32 * x} (i = 0 to 31)

0: Privileged and unprivileged data access are granted to the peripheral {i + 32 * x}.

1: Privileged data access only are granted to the peripheral {i + 32 * x}.

Note: If corresponding SEC{i + 32 * x} bit is set in RIFSC_RISC_SECCFGRx, this bit can only be written by a secure privileged application.

If the compartment filtering for peripheral {i + 32 * x} is enabled (resp. disabled) using CFEN in RIFSC_RISC_PERy_CIDCFGR, only an authorized compartment (resp. any compartment) can write this bit, if privilege and security of the access is sufficient.

Authorized compartment is defined as SCID if SEM_EN = 0 in RIFSC_RISC_PERy_CIDCFGR. If SEM_EN = 1, it is equal to SEMCID, if SEM_MUTEX = 1 in RIFSC_RISC_PERy_SEMCR. There is no authorized compartment if SEM_EN = 1 and SEM_MUTEX = 0.

9.5.4 RIFSC RISC slave resource configuration lock register x
(RIFSC_RISC_RCFGLOCKRx)

Address offset: 0x050 + 0x4 * x, (x = 0 to 5)

Reset value: 0x0000 0000

Secure privileged, trusted domain CID write access only. Any read access is allowed on this register. Writes are ignored if GLOCK is set in RIFSC_RISC_CR.

31302928272625242322212019181716
RLOCK{i + 32 * x}
rsrsrsrsrsrsrsrsrsrsrsrsrsrsrsrs
1514131211109876543210
RLOCK{i + 32 * x}
rsrsrsrsrsrsrsrsrsrsrsrsrsrsrsrs

Bits 31:0 RLOCK{i + 32 * x}: rResource lock for peripheral {i + 32 * x} (i = 0 to 31)

This bit is set to lock the peripheral resource {i + 32 * x}. It is cleared by default and, once set, this bit cannot be cleared until the RIFSC RISC peripheral is reset.

0: SEC{i + 32 * x} in RIFSC_RISC_SECCFGRx and PRIV{i + 32 * x} in RIFSC_RISC_PRIVCFGRx are writable. RIFSC_RISC_PERy_CIDCFGR is writable.

1: Writes to SEC{i + 32 * x} and PRIV{i + 32 * x} are ignored. Writes to RIFSC_RISC_PERy_CIDCFGR register are ignored.

9.5.5 RIFSC RISC slave peripheral y CID configuration register (RIFSC_RISC_PERy_CIDCFGR)

Address offset: 0x100 + 0x8 * y, (y = 0 to 127)

Reset value: 0x0000 0000

Secure privileged, trusted domain CID write access only. Any read access is allowed on this register. Writes are ignored if GLOCK is set in RIFSC_RISC_CR, or if RLOCKy is set in RIFSC_RISC_RCFGLOCKRx.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.SEMw LC7SEMw LC6SEMw LC5SEMw LC4SEMw LC3SEMw LC2SEMw LC1SEMw LC0
rwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.SCID[2:0]Res.Res.SEM_E NCFEN
rwrwrwrwrw

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

Bits 23:16 SEMwLCi: Semaphore white list for compartment i (i = 7 to 0)

0: Application running in compartment i cannot get access to peripheral y through the semaphore SEM_MUTEX.

1: Application running in compartment i can get access to peripheral y through the semaphore SEM_MUTEX.

Note: This bit is not taken into account by RISC when the semaphore is disabled (SEM_EN = 0) or compartment filtering is off (CFEN = 0).

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

Bits 6:4 SCID[2:0]: Static CID

The trusted domain application uses this bitfield to statically define which compartment has access to the peripheral y when SEM_EN = 0.

Note: This CID is not taken into account by RISC when the semaphore is enabled (SEM_EN = 1) or compartment filtering is off (CFEN = 0).

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

Bit 1 SEM_EN: Semaphore enable

0: Access to peripheral y is granted only if CID of the access equals to SCID.

1: Access to peripheral y is granted only if SEM_MUTEX = 1 and CID of the access equals to SEMCID in RIFSC_RISC_PERy_SEMCR.

Note: This bit is not taken into account by RISC if the compartment filtering is off (CFEN = 0). When this bit is cleared from 1 by the trusted domain application, SEM_MUTEX is cleared to zero by RISC.

Bit 0 CFEN: CID filtering enable

0: Compartment-based filtering defined in RIFSC_RISC_PERy_CIDCFGR and optionally RIFSC_RISC_PERy_SEMCR is disabled for peripheral y.

1: Compartment-based filtering defined in RIFSC_RISC_PERy_CIDCFGR and optionally RIFSC_RISC_PERy_SEMCR is enabled for peripheral y.

For any CFEN value, access controls to peripheral y defined in RIFSC_RISC_PRIVCFGRx and RIFSC_RISC_SECCFGRx always apply.

Note: When this bit is cleared from 1 by the trusted domain application, SEM_MUTEX is cleared to zero by RISC.

9.5.6 RIFSC RISC slave peripheral y semaphore control register (RIFSC_RISC_PERy_SEMCR)

Address offset: 0x104 + 0x8 * y, (y = 0 to 127)

Reset value: 0x0000 0000

If the compartment filtering is disabled (CFEN = 0) or the semaphore is disabled (SEM_EN = 0) in RIFSC_RISC_PERy_CIDCFGR, any write to this register is ignored.

Privileged-only write if PRIVy is set in RIFSC_RISC_PRIVCFGRx. Secure-only write if SECy bit is set in RIFSC_RISC_SECCFGRx.

If compartment filtering is enabled and semaphore is enabled (CFEN = SEM_EN = 1), only an authorized compartment can write to this register. For this register, the authorized compartment is equal to SEMCID if SEM_MUTEX = 1, else it is defined by the CID white list (SEMWLCy) in register RIFSC_RISC_PERy_CIDCFGR. There is no authorized compartment if the semaphore is disabled (SEM_EN = 0).

Any read access is allowed to this register. The debug domain is managed like any other masters, when activated.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.SEMCID[2:0]Res.Res.Res.SEM_MUTEX
rrrrw

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

Bits 6:4 SEMCID[2:0]: Semaphore current CID

When SEM_EN and CFEN are set in RIFSC_RISC_PERy_CIDCFGR, this read-only bitfield is updated with the CID value of the latest successful acquisition of RIFSC_RISC_PERy_SEMCR semaphore (SEM_MUTEX = 1).

In all the other cases, this bitfield stays unchanged.

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

Bit 0 SEM_MUTEX: Semaphore mutex

A white-listed application can set this bit to get exclusive access to peripheral y when SEM_EN is set in RIFSC_RISC_PERy_CIDCFGR (writes are ignored otherwise).

Read 0: Semaphore is free to take.

Read 1: Semaphore is taken.

Write 0: Release semaphore.

Write 1: Acquire semaphore.

Note: When SEM_MUTEX = 0, only applications belonging to white-listed compartments (defined with SEMWLCi bits in RIFSC_RISC_PERy_CIDCFGR) can acquire this semaphore.

When SEM_MUTEX = 1, only applications belonging to compartment SEMCID can release this semaphore.

This bit is cleared when CFEN or SEM_EN are cleared from 1 by the trusted domain application in RIFSC_RISC_PERy_CIDCFGR.

9.5.7 RIFSC RISAL memory region x subregion A configuration register (RIFSC_RISC_REGx_ACFGR)

Address offset: 0x900+0x010*(x-1) (x = 1 to 3)

Reset value: 0x0000 0021

Secure privileged, trusted domain CID write access only. Any read access is allowed on this register. Writes are ignored if GLOCK is set in RIFSC_RISC_CR.

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.SRCID[2:0]Res.Res.RLOCKSREN
rwrwrwrwrwrsrw

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

Bit 9 PRIV: Privileged subregion

This bit is taken into account only if SREN = 1.

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

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

Note: Access control defined by SEC and SRCID[2:0] also apply.

Bit 8 SEC: Secure subregion

This bit is taken into account only if SREN = 1.

0: Only non-secure requests can access subregion A of region x.

1: Only secure requests can access subregion A of region x.

Note: Access control defined by PRIV and SRCID[2:0] also apply.

Bit 7 Reserved, must be kept at reset value.

Bits 6:4 SRCID[2:0]: Subregion CID

When SREN = 1, this bitfield defines which compartment has access to the subregion A of region x.

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

Bit 1 RLOCK: Resource lock

This bit is set to lock this subregion resource. This bit is set once, cleared only by RIFSC reset.

0: RIFSC_RISC_REGx_ACFGR and RIFSC_RISC_REGx_AADDR are writable.

1: Writes to RIFSC_RISC_REGx_ACFGR and RIFSC_RISC_REGx_AADDR are ignored.

Bit 0 SREN: Subregion enable

0: Subregion A is disabled. Only secure, privileged, and trusted domain CID can access between this subregion start and end addresses.

1: Subregion A of region x is enabled. Access control defined in this subregion applies to any access between this subregion start and end addresses.

9.5.8 RIFSC RISAL memory region x subregion B configuration register (RIFSC_RISC_REGx_BCFGR)

Address offset: 0x908+0x010*(x-1) (x = 1 to 3)

Reset value: 0x0000 0031

Secure privileged, trusted domain CID write access only. Any read access is allowed on this register. Writes are ignored if GLOCK is set in RIFSC_RISC_CR.

RM0457 9.5.8column_2Bit 1 Bit 0RLOCK : Resource lock reset. SREN : Subregion enablecolumn_5column_6column_7column_8column_9column_10column_11column_12column_13
31302928 27 26 25242322212019181716
Res.Res.Res.Res. Res. Res. Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
15141312 11 10 9876543210
Res.Res.Res.Res. Res. Res. PRIVSECRes.SRCID[2:0]Res.Res.RLOCK SREN
rwrwrwrwrwrsrw
Bit 9PRIV : Privileged subregion
Bit 8SEC : Secure subregion
Bits 6:4SRCID[2:0] : Subregion CID region x.
RM0457 Rev 5365/5881

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

Bit 9 PRIV: Privileged subregion

This bit is taken into account only if SREN = 1.

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

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

Note: Access control defined by SEC and SRCID[2:0] also apply.

Bit 8 SEC: Secure subregion

This bit is taken into account only if SREN = 1.

0: Only non-secure requests can access subregion B of region x.

1: Only secure requests can access subregion B of region x.

Note: Access control defined by PRIV and SRCID[2:0] also apply.

Bit 7 Reserved, must be kept at reset value.

Bits 6:4 SRCID[2:0]: Subregion CID

When SREN = 1, this bitfield defines which compartment has access to the subregion B of region x.

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

Bit 1 RLOCK: Resource lock
This bit is set to lock this subregion resource. This bit is set once, cleared only by RIFSC reset.
0: RIFSC_RISC_REGx_BCFGR and RIFSC_RISC_REGx_BADDR are writable.
1: Writes to RIFSC_RISC_REGx_BCFGR and RIFSC_RISC_REGx_BADDR are ignored.

Bit 0 SREN: Subregion enable
0: Subregion B is disabled. Only secure, privileged, and trusted domain CID can access between this subregion start and end addresses.
1: Subregion B of region x is enabled. Access control defined in this subregion applies to any access between this subregion start and end addresses.

9.5.9 RIFSC RISAL memory region 3 address register (RIFSC_RISC_REG3_zADDR) (z = A to B)

Address offset: Block A: 0x924

Address offset: Block B: 0x92C

Reset value: 0x0800 0000

Secure privileged, trusted domain CID write access only. Any read access is allowed on this register. Writes are ignored if GLOCK is set in RIFSC_RISC_CR.

31302928272625242322212019181716
Res.Res.Res.Res.SUBLENGTH[11:0]
rwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
Res.Res.Res.Res.Res.SUBSTART[10:0]
rwrwrwrwrwrwrwrwrwrwrw

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

Bits 27:16 SUBLENGTH[11:0]: Subregion length
This bitfield defines the length of the subregion z, to be multiplied by the RISAL granularity defined in Section 9.3.
As a subregion must be defined within its base region, the access control defined in RIFSC_RISC_REG3_zCFGR applies from offset address SUBSTART[10:0] to the offset address corresponding to the end of the base region 3, when SUBLENGTH[11:0] value is too high.

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

Bits 10:0 SUBSTART[10:0]: Subregion start
This bitfield defines the start address of the subregion z in the RISAL base region 3.
The subregion physical start address equals to the sum of the base address of the base region, plus the SUBSTART[10:0] value multiplied by the RISAL granularity, defined in Section 9.3

ST logo
ST logo

9.5.10 RIFSC RIMC master configuration register (RIFSC_RIMC_CR)

Address offset: 0xC00

Reset value: 0x0000 8710

Any read access is allowed on this register. Writes are ignored if GLOCK is set in this register.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
DDENRes.Res.Res.Res.DAPCID[2:0]Res.TDCID[2:0]Res.Res.WUCD ONEGLOCK
rrwrwrwrworworworsrs

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

Bit 15 DDEN: Debug domain enable

This read-only bit gives the status on the debug domain feature availability on this device.

0: Debug domain not available

1: Debug domain available

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

Bits 10:8 DAPCID[2:0]: Debug access port compartment ID

This bitfield defines the CID of the DAP when GDPEN is set in RIFSC_RIMC_SR.

When DAPCID[2:0] = 0x7, debugging tools have the highest level of debug access, if secure global debug profile is enabled in the BSEC peripheral.

When GDPEN = 0, DAPCID[2:0] can be written by trusted application (TDCID secure privileged). When GDPEN = 1, the DAP can also change this bitfield regardless of the access type (secure, non-secure, privileged, or unprivileged).

Bit 7 Reserved, must be kept at reset value.

Bits 6:4 TDCID[2:0]: Trusted domain compartment ID

Master with this compartment ID runs the application with the highest level of trust.

TDCID[2:0] value is distributed in all the device. This bitfield is write once (subsequent writes are ignored).

Note: Secure privileged write access only. Write only by debug domain and trusted domain CIDs, as defined in this register.

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

Bit 1 WUCDONE: Wake-up CPU done

Setting this bit deactivates the wake-up CPU mechanism described in Section 6.2: Resource isolation framework (RIF). Reading this bit always returns zero.

0: When WUCEN = 1 in RIFSC_RIMC_SR, the trusted domain CID information is fixed to 0x2 (wake-up CPU), else it is defined in this register.

1: Setting this bit clears WUCEN after few cycles. Once WUCEN = 0, the trusted domain CID information is defined in this register.

Note: Secure privileged write access only. Write only by debug domain and trusted domain CIDs, as defined in this register (including this bit).

Bit 0 GLOCK: Global lock

This bit is used to lock the configuration of RIFSC RIMC registers until next reset. This bit is cleared by default and, once set, it cannot be reset until global RIFSC reset.

0: RIFSC RIMC registers are writable.
1: All writes to RIFSC RIMC registers are ignored.

Note: Secure privileged write access only. Write only by debug domain and trusted domain CIDs, as defined in this register.

9.5.11 RIFSC RIMC master status register (RIFSC_RIMC_SR)

Address offset: 0xC04

Reset value: 0x0000 0000

Any read access is allowed on this register.

9.5.11column_2Bit 0GLOCKcolumn_5: Global lockcolumn_7column_8column_9column_10column_11column_12column_13column_14column_15RM0457
31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.WUCE N rGDPE N r
Bit 1WUCEN: Wake-up CPU enable
mechanism described inSection 6.2: Resource isolation framework (RIF).
Bit 0GDPEN: Global debug profile enable

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

Bit 1 WUCEN: Wake-up CPU enable

This read-only bit is set when the application properly initializes the wake-up CPU mechanism described in Section 6.2: Resource isolation framework (RIF).

0: Wake-up CPU is disabled. The trusted domain CID value is driven by RIFSC_RIMC_CR.
1: Wake-up CPU is enabled. The trusted domain CID value is fixed to 0x2 until the application sets WUCDONE in RIFSC_RIMC_CR (in this case, WUCDONE is cleared after few cycles).

Bit 0 GDPEN: Global debug profile enable

This read-only bit is set when the global-debug profile is activated in the device (CPU and MCU debugging allowed).

0: Global-debug profile (CPU + MCU) is not activated.
1: Global-debug profile (CPU + MCU) is activated.

9.5.12 RIFSC RIMC master attribute register x (RIFSC_RIMC_ATTRx)

Address offset: 0xC10 + x * 0x4 (x = 0 to 15)

Reset value: 0x0000 0000

Secure privileged, trusted domain CID write access only. Any read access is allowed on this register. Writes are ignored if GLOCK is set in RIFSC_RIMC_CR register.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.MPRIVMSECRes.MCID[2:0]Res.CIDSELRes.Res.
rwrwrwrwrwrw

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

Bit 9 MPRIV: Master privileged

Value of the privileged flag on the interconnect for this master, programmed by the trusted domain.

0: This master is unprivileged.

1: This master is privileged.

Bit 8 MSEC: Master secure

Value of the secure flag on the interconnect for this master, programmed by the trusted domain.

0: This master is non-secure.

1: This master is secure.

Bit 7 Reserved, must be kept at reset value.

Bits 6:4 MCID[2:0]: Master CID

Value of the CID flag on the interconnect for this master, programmed by the trusted domain.

Valid only if indicated in RIF masters table in Section 9.3. This bitfield is not taken into account when CIDSEL = 0 in this register.

This bitfield cannot be written with a value of 0x7 (write to MCID[2:0] is ignored).

Bit 3 Reserved, must be kept at reset value.

Bit 2 CIDSEL: CID selection

0: Compartment ID of master x is driven by hardware value or by inheritance to associated RISUP. See master table in Section 9.3 for details.

1: Compartment ID of master x is defined by MCID[2:0] in this register.

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

9.5.13 RIFSC peripheral protection status register x (RIFSC_PPSRx)

Address offset: 0xFB0 + 0x4 * x, (x = 0 to 3)

Reset value: 0xFFFF FFFF, 0xBFDF FFFF, 0xF7D3 FDFC, 0x6FFD FDFE

31302928272625242322212019181716
PPEN{i + 32 * x}
rrrrrrrrrrrrrrrr
1514131211109876543210
PPEN{i + 32 * x}
rrrrrrrrrrrrrrrr

Bits 31:0 PPEN{i + 32 * x}: Peripheral protection enable {i + 32 * x} (i = 0 to 31)

0: RISUP protection to peripheral {i + 32 * x} is not present. The corresponding RIFSC_RISC_PERy_CIDCFGR and RIFSC_RISC_PERy_SEMCR (where y = i + 32 * x) are reserved.

1: RISUP protection to peripheral {i + 32 * x} is present.

9.5.14 RIFSC hardware configuration register 3 (RIFSC_HWCFGR3)

Address offset: 0xFE8

Reset value: 0x0000 0003

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

Bits 31:0 CFG[31:0]: Hardware configuration

This bitfield returns the generic value RISAL_FIXED_LENGTH.

9.5.15 RIFSC hardware configuration register 2 (RIFSC_HWCFGR2)

Address offset: 0xFEC

Reset value: 0x0310 0080

31302928272625242322212019181716
CFG3[7:0]CFG2[7:0]
rrrrrrrrrrrrrrrr
1514131211109876543210
CFG1[15:0]
rrrrrrrrrrrrrrrr

Bits 31:24 CFG3[7:0]: Hardware configuration 3

This bitfield returns the generic value NUM_RISAL (0x3).

Bits 23:16 CFG2[7:0]: Hardware configuration 2
This bitfield returns the generic value NUM_MP (0x10).

Bits 15:0 CFG1[15:0]: Hardware configuration 1
This bitfield returns the generic value NUM_SP (0x80).

9.5.16 RIFSC hardware configuration register 1 (RIFSC_HWCFGR1)

Address offset: 0xFF0

Reset value: 0x0071 3111

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.CFG6[3:0]CFG5[3:0]
rrrrrrrr
1514131211109876543210
CFG4[3:0]CFG3[3:0]CFG2[3:0]CFG1[3:0]
rrrrrrrrrrrrrrrr

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

Bits 23:20 CFG6[3:0]: Hardware configuration 6
This bitfield returns the generic value DEFAULT_DAPCID.

Bits 19:16 CFG5[3:0]: Hardware configuration 5
This bitfield returns the generic value DEFAULT_TDCID.

Bits 15:12 CFG4[3:0]: Hardware configuration 4
This bitfield returns the generic value CID_WIDTH.

Bits 11:8 CFG3[3:0]: Hardware configuration 3
This bitfield returns the generic value PRIV_ENABLED.

Bits 7:4 CFG2[3:0]: Hardware configuration 2
This bitfield returns the generic value SEC_ENABLED.

Bits 3:0 CFG1[3:0]: Hardware configuration 1
This bitfield returns the generic value RIF_ENABLED.

9.5.17 RIFSC version register (RIFSC_VERR)

Address offset: 0xFF4

Reset value: 0x0000 0010

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]: RIFSC major revision

Bits 3:0 MINREV[3:0] : RIFSC minor revision

9.5.18 RIFSC identification register (RIFSC_IPIDR)

Address offset: 0xFF8

Reset value: 0x0010 0162

31302928272625242322212019181716
ID[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
ID[15:0]
rrrrrrrrrrrrrrrr
Bits 31:0 ID[31:0] : RIFSC identification code

9.5.19 RIFSC size identification register (RIFSC_SIDR)

Address offset: 0xFFC

Reset value: 0xA3C5 DD04

31302928272625242322212019181716
SID[31:16]
rrrrrrrrrrrrrrrr
1514131211109876543210
SID[15:0]
rrrrrrrrrrrrrrrr
Bits 31:0 SID[31:0] : RIFSC size identification code

Bits[31:8] = 0xA3C5DD (fixed code)

Bits[7:0] = 0x04 (4-Kbyte address decoding)

9.5.20 RIFSC register map

Table 45. RIFSC register map and reset values
OffsetRegister name313029282726252423222120191817161514131211109876543210
0x000RIFSC_RISC_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.Res.
Reset value0
0x010 +
0x004 * x
(x = 0 to 5)
Last
address:
0x024
RIFSC_RISC_SECCFGRxSEC{i + 32 * x}
Reset value00000000000000000000000000000000
0x028-
0x02C
ReservedReserved

Table 45. RIFSC register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x030 + 0x004 * x
(x = 0 to 5)
Last address: 0x044
RIFSC_RISC_
PRIVCFGRx
PRIV{i + 32 * x}
Reset value00000000000000000000000000000000
0x048-0x04CReservedReserved
0x050 + 0x004 * x
(x = 0 to 5)
Last address: 0x064
RIFSC_RISC_
RCFGLOCKRx
RLOCK{i + 32 * x}
Reset value00000000000000000000000000000000
0x068-0x06CReservedReserved
0x100 + 0x008 * y
(y = 0 to 127) Last address: 0x4F8
RIFSC_RISC_
PERy_
CIDCFGR
Res.Res.Res.Res.Res.Res.Res.Res.Res.SEMWLC7SEMWLC6SEMWLC5SEMWLC4SEMWLC3SEMWLC2SEMWLC1SEMWLC0Res.Res.Res.Res.Res.Res.Res.Res.SCID[2:0]Res.Res.SEM_ENCFEN
Reset value0000000000000
0x104 + 0x008 * y
(y = 0 to 127) Last address: 0x4FC
RIFSC_RISC_
PERy_SEMCR
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.SEMID
[2:0]
Res.Res.Res.SEM_MUTEX
Reset value0000
0x500-0x904ReservedReserved
0x908 + 0x010 * (x-1), (x = 1 to 3) Last address: 0x928RIFSC_RISC_
REGx_BCFGR
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PRIVSECRes.SRCID
[2:0]
Res.Res.RLOCKSREN
Reset value0001101
0x90C-0x914, 0x91C-0x920ReservedReserved
0x924RIFSC_RISC_
REG3_AADDR
Res.Res.Res.Res.SUBLENGHT[11:0]Res.Res.Res.Res.Res.SUBSTART[10:0]
Reset value10000000000000000000000
0x92CRIFSC_RISC_
REG3_BADDR
Res.Res.Res.Res.SUBLENGHT[11:0]Res.Res.Res.Res.Res.SUBSTART[10:0]
Reset value10000000000000000000000
0x930-0xBFCReservedReserved
0xC00RIFSC_RIMC
_CR
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DDENRes.Res.Res.Res.DAPCID
[2:0]
Res.TDCID
[2:0]
Res.Res.WUCDONEGLOCK
Reset value111100100
0xC04RIFSC_RIMC
_SR
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.WUCENGPDEN
Reset value00
0xC08-0xC0CReservedReserved

Table 45. RIFSC register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0xC10 + 0x004 * x
(x = 1 to 15) Last address: 0xC4C
RIFSC_RIMC_ATTRxRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MPRIVMSECRes.MCID[2:0]Res.CIDSELRes.Res.
Reset value000000
0xC50 to 0xFACReservedReserved
0xFB0 + 0x004 * x
(x = 0 to 3)
Last address: 0xFBC
RIFSC_PPSRxPPEN{i + 32 * x}
Reset value(1)XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0xFC0-0xFE4ReservedReserved
0xFE8RIFSC_HWCFGR3CFG[31:0]
Reset value00000000000000000000000000000011
0xFECRIFSC_HWCFGR2CFG3[7:0]CFG2[7:0]CFG1[15:0]
Reset value00000011000100000000000010000000
0xFF0RIFSC_HWCFGR1Res.Res.Res.Res.Res.Res.Res.Res.CFG6[3:0]CFG5[3:0]CFG4[3:0]CFG3[3:0]CFG2[3:0]CFG1[3:0]
Reset value011100010011000100010001
0xFF4RIFSC_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 value00010000
0xFF8RIFSC_IPIDRID[31:0]
Reset value00000000000100000000000101100010
0xFFCRIFSC_SIDRSID[31:0]
Reset value10100011110001011101110100000100

1. See RIFSC peripheral protection status register x (RIFSC_PPSRx) for the various reset values.

Refer to Section 2.4 for the register boundary addresses.