10. Resource isolation slave unit for address space protection (block-based) (RISAB)

10.1 RISAB introduction

The RIF (resource isolation framework) is a comprehensive set of hardware blocks designed to enforce and manage isolation of STM32 hardware resources, such as memory and peripherals.

Through RISAB registers, a trusted domain application, or the application to whom the page configuration has been delegated assigns memory pages to one or more security domains (secure, privilege, compartment).

10.2 RISAB main features

10.3 RISAB implementation

Table 46 describes the characteristics of the available instances.

Table 46. RISAB resource assignment

Protected memoryResource name(1)Blocks per pages(2)Number of pagesMemory size (Kbytes)Default protection(3)
SYSRAMRISAB1(4)832128Secure, privileged or unprivileged, any CID
RISAB2(5)
RETRAMRISAB5Non-secure, privileged or unprivileged, any CID
SRAM1RISAB3
SRAM2RISAB4
VDERAMRISAB6

1. According to the resource name, the reset value of RISAB_IPIDR changes: 0x00100165 for RISAB1, RISAB2, and RISAB6, 0x00100164 for RISAB3, RISAB4, and RISAB5.

2. The block size is fixed to 512 bytes, the page size to 4 Kbytes.

  1. 3. Default protection policy out of reset. When default protection is secure, the reset value of RISAB_PGy_SECCFGR is 0x0000 00FF (instead of 0x0000 0000).
  2. 4. Manages pages 0 to 31 of the 256-Kbyte SYSRAM. Only Cortex-A35 can program RISAB1.
  3. 5. Manages pages 32 to 63 of the 256-Kbyte SYSRAM. Only Cortex-A35 can program RISAB2.

10.4 RISAB functional description

10.4.1 RISAB block diagram

Figure 28 shows the block diagram of the RISAB, associated with its memory controller on the interconnect (optional), and the IAC peripheral.

Figure 28. RISAB block diagram

Block diagram of the RISAB peripheral. It shows a Master connected to a System bus, which provides sck and cid signals to the RISAB. The RISAB contains an AHB interface connected to a 32-bit AHB bus (with hclk input), Page-level config registers, and Block-level config registers. These registers feed into a RIF gate. The RIF gate is connected to a Memory or memory mapped area via sck and cid signals. The RISAB also outputs risab_ilac to the IAC peripheral. The diagram is labeled MSv67863V1.
Block diagram of the RISAB peripheral. It shows a Master connected to a System bus, which provides sck and cid signals to the RISAB. The RISAB contains an AHB interface connected to a 32-bit AHB bus (with hclk input), Page-level config registers, and Block-level config registers. These registers feed into a RIF gate. The RIF gate is connected to a Memory or memory mapped area via sck and cid signals. The RISAB also outputs risab_ilac to the IAC peripheral. The diagram is labeled MSv67863V1.

10.4.2 RISAB internal signals

Table 47 describes the signals available at RISAB level, not at product level (on pads).

Table 47. RISAB internal input/output signals

NameTypeDescription
risab_sckDigital inputSystem bus clock, also used by the protected memory controller
risab_hclkAHB bus clock
risab_ilacDigital outputIllegal access signal to IAC

10.4.3 RISAB reset and clocks

The RISAB peripheral has two clocks: one for its AHB register interface, and one for its system bus interface. The system bus clock is shared with the system bus memory controller target.

The RISAB peripheral has a single reset input.

Default RISAB values after a device general reset (power-on reset) are defined in Section 10.3.

10.4.4 RISAB address space management

Through RISAB registers, a trusted domain application, or the application to which the page configuration has been delegated, assigns memory pages to one or more security domains (secure, privilege, compartment). Figure 29 illustrates the principle of this allocation.

Note: Page size is defined in Section 10.3.

Figure 29. RISAB region programming overview

Figure 29. RISAB region programming overview. A diagram showing memory pages 0-7 and their access permissions for various components like Security, RIF configuration owner, CID1/Cortex-A, CID2/Cortex-M, CID4/Display, and CID5/PCIe,Eth. It includes a legend for access types: w/wo (Write/write-only), r/ro (Read/read-only), programmable (double arrow), and no read/no write (dashed line).
Page#0Page#1Page#2Page#3Page#4Page#5Page#6Page#7
Securitysec(*)nsec(*)sec(*)nsec(*)sec/nsec(*)
RIF configuration ownercpu1tdcpu2cpu1 or 2
CID1/Cortex-Arwwo---ro
CID2/Cortex-M---rorwwo
---npriv(*) ↔ priv(*) ↔ npriv(*) | priv/npriv(*)
CID4/Display---ro------
CID5/PCIe,Ethrw---rwrw

(*) programmed at block level, not page level

Legend w/wo Write/ write-only access r/ro Read/ read-only access
↔ Programmable --- No read, no write (for a given compartment)

MSv67864V1

Figure 29. RISAB region programming overview. A diagram showing memory pages 0-7 and their access permissions for various components like Security, RIF configuration owner, CID1/Cortex-A, CID2/Cortex-M, CID4/Display, and CID5/PCIe,Eth. It includes a legend for access types: w/wo (Write/write-only), r/ro (Read/read-only), programmable (double arrow), and no read/no write (dashed line).

As a Cortex-M defines the configurable regions in its address space with a 256-byte granularity, the RISAB can also be used to allocate secure and privileged access protection, at a lower 512-byte block level. The application can then align Cortex-M, and RISAB secure and privileged regions allocation.

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

As defined in Section 6.2: Resource isolation framework (RIF), a debug domain (privileged) must be granted the following accesses, depending on its security:

Access rules to secure, non-secure, privileged, and unprivileged memory regions are described in Section 6.2.2: RIF access control.

10.4.5 RISAB programming

When an application needs to use page x there are two configuration options:

To configure a page x go through the following steps (block and page sizes are defined in Section 10.3):

  1. 1. Define the security level of each block in the page, using RISAB_PGx_SECCFGR.
  2. 2. Define which CIDs can access the page in read and write, and with which privilege, using, respectively RISAB_CIDyRDCFGR, RISAB_CIDyWRCFGR, and RISAB_CIDyPRIVCFGR.
  3. 3. Each Cortex-M CPUz can define, if applicable, the privileged level of each block in the page, using RISAB_PGx_CzPRIVCFGR, unless the whole page has been defined privileged by the configuration owner, using RISAB_CIDzPRIVCFGR.

Note: When at least one block is defined secure in RISAB_PGx_SECCFGR, the read, write, and privileged configuration at page level becomes secure-only. This is important when the RIF configuration is delegated (DCEN = 1).

The RISAB initialization method is summarized in Figure 30.

Figure 30. RISAB initialization principle

Flowchart showing RISAB initialization principle: Starting from page resource, setting block security, branching on CFEN=0 to set block privilege directly, or on CFEN=1 to delegate RIF configuration, grant page access to CIDs, define privilege per page, set security level, and optionally define privilege per block for Cortex-M CPU.
graph TD
    Start(( )) -->|For a given page resource| Step1[Set block security for all CIDs]
    Step1 --> Decision{ }
    Decision -->|[CFEN=0]| Step2a[Set block privilege for all CIDs]
    Decision -->|[CFEN=1]| Step2b[Delegate RIF configuration or not]
    Step2b --> Step3b[Grant page access to some CIDs, in read and/or write]
    Step3b --> Step4b[For each granted CID define privilege access per page]
    Step4b --> Step5b[Set security level to all granted CIDs block level]
    Step5b --> Step6b[Optionally each allowed Cortex-M CPU can define privilege of each block]
    Step2a --> End((( )))
    Step6b --> End
Flowchart showing RISAB initialization principle: Starting from page resource, setting block security, branching on CFEN=0 to set block privilege directly, or on CFEN=1 to delegate RIF configuration, grant page access to CIDs, define privilege per page, set security level, and optionally define privilege per block for Cortex-M CPU.

10.4.6 RISAB runtime modification of region or subregion configuration

The RISAB supports on-the-fly update of blocks and pages programming.

10.4.7 Managing illegal accesses

As a RIF component, the RISAB does not use the standard interrupt lines towards 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.

10.5 RISAB registers

These registers are accessible through the register interface of each RISAB instance. Only word accesses (32 bits) are supported.

If the debug domain feature is activated and security and privileged policy allows it, the debug domain traffic goes through, regardless of any CID filtering policy. If the debug domain feature is deactivated, the CID filtering policy also applies to debug domain traffic.

10.5.1 RISAB configuration register (RISAB_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 in this register.

31302928272625242322212019181716
SRW
IAD
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
rw
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.GLOCK
rs

Bit 31 SRWIAD: Secure read/write illegal access disable

When set, this bit allows secure read/write data accesses to non-secure blocks and pages (secure execute remains illegal).

0: Any secure access to non-secure blocks or pages is illegal.

1: Secure read/write data access is allowed to non-secure blocks or pages, while secure execute generates a bus error.

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

Bit 0 GLOCK: Global lock

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

0: RISAB registers are writable.

1: All writes to RISAB registers are ignored, except RISAB_IACR.

10.5.2 RISAB illegal access status register (RISAB_IASR)

Address offset: 0x008

Reset value: 0x0000 0000

Secure privileged trusted domain CID read access only.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.IAEFCAEF
rr

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

Bit 1 IAEF: Illegal access error flag

This bit is set when an illegal access is detected on the system bus. More details on the error can be found in RISAB_IAESR and RISAB_IADDR.

This bit is cleared by setting the corresponding bit in RISAB_IACR.

Bit 0 CAEF: configuration access error flag

This bit is set when an illegal access to any RISAB configuration register is detected. This bit is cleared by setting the corresponding bit in RISAB_IACR.

10.5.3 RISAB illegal access clear register (RISAB_IACR)

Address offset: 0x00C

Reset value: 0x0000 0000

Secure privileged trusted domain CID write access only.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.IAEFCAEF
ww

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

Bit 1 IAEF: Illegal access error flag

Set this bit to clear IAEF in RISAB_IASR, allowing the capture of new error information in RISAB_IAESR and RISAB_IADDR.

Note: Clearing this bit does not clear RISAB_IADDR.

Bit 0 CAEF: Configuration access error flag

Set this bit to clear CAEF in RISAB_IASR.

10.5.4 RISAB configuration lock register (RISAB_RCFGLOCKR)

Address offset: 0x010

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 RISAB_CR. Refer to Section 10.3 for the actual number of blocks per page.

RM0457column_2column_3column_4column_5column_6column_7column_8column_9column_10column_11column_12column_13column_14column_15column_16
31302928272625242322212019181716
RLOCKRLOCKRLOCKRLOCKRLOCKRLOCKRLOCKRLOCKRLOCKRLOCKRLOCKRLOCKRLOCKRLOCKRLOCKRLOCK
31302928272625242322212019181716
rsrsrsrsrsrsrsrsrsrsrsrsrsrsrsrs
1514131211109876543210
RLOCKRLOCKRLOCKRLOCKRLOCKRLOCKRLOCKRLOCKRLOCKRLOCKRLOCKRLOCKRLOCKRLOCKRLOCKRLOCK
1514131211109876543210
rsrsrsrsrsrsrsrsrsrsrsrsrsrsrsrs
Bits 31:0RLOCKy: Resource lock for page y (y = 31 to 0)
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.IANRWRes.IASEC IAPRIVRes.IACID[2:0]
rrrrrr
Bit 7IANRW: Illegal access read/write
Bit 5IASEC: Illegal access security
RM0457 Rev 5381/5881

Bits 31:0 RLOCKy: Resource lock for page y (y = 31 to 0)

This bit is set to lock page y resource. It is cleared by default and, once set, cannot be cleared until RISAB is reset.

0: RISAB_PGy_CIDCFGR, RISAB_PGy_SECCFGR, RISAB_PGy_PRIVCFGR, and RISAB_PGy_C2PRIVCFGR are writable. Bit y in RISAB_CIDxPRIVCFGR, RISAB_CIDxRDCFG, and RISAB_CIDxWRCFGR are writable (x = 0 to 6).

1: Writes to RISAB_PGy_CIDCFGR, RISAB_PGy_SECCFGR, RISAB_PGy_PRIVCFGR, and RISAB_PGy_C2PRIVCFGR are ignored. Writes to bit y in RISAB_CIDxPRIVCFGR, RISAB_CIDxRDCFG, and RISAB_CIDxWRCFGR are ignored (m = 0 to 6).

10.5.5 RISAB illegal access error status register (RISAB_IAESR)

Address offset: 0x020

Reset value: 0x0000 0000

Secure privileged trusted domain CID read access only.

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

Bit 7 IANRW: Illegal access read/write

When IAEF = 1 in RISAB_IASR, IANRW captures the access type of the illegal access that occurred on the system bus.

0: Illegal access was a data read.

1: Illegal access was a data write.

Bit 6 Reserved, must be kept at reset value.

Bit 5 IASEC: Illegal access security

When IAEF = 1 in RISAB_IASR, IASEC captures the security type of the illegal access that occurred on the system bus.

0: Illegal access was non-secure.

1: Illegal access was secure.

Bit 4 IAPRIV: Illegal access privileged

When IAEF = 1 in RISAB_IASR, IAPRIV captures the privilege state of the master that issued the illegal access on the system bus.

Bit 3 Reserved, must be kept at reset value.

Bits 2:0 IACID[2:0]: illegal access compartment ID

When IAEF = 1 in RISAB_IASR, IACID[2:0] captures the compartment ID of the master that issued the illegal access on the system bus.

10.5.6 RISAB illegal address register (RISAB_IADDR)

Address offset: 0x024

Reset value: 0x0000 0000

Secure privileged trusted domain CID read access only.

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

Bits 31:0 IADD[31:0]: Illegal address

When IAEF = 1 in RISAB_IASR, IADD[31:0] captures the address of the erroneous access. Additional information can be found in RISAB_IAESR.

10.5.7 RISAB page y security configuration register (RISAB_PGy_SECCFGR)

Address offset: 0x100 + 0x4 * y (y = 0 to 31)

Reset value: 0x0000 00XX (refer to Section 10.3 for the actual value)

Non-secure or unprivileged writes to this register are ignored, all reads are allowed. Writes are ignored if GLOCK is set in RISAB_CR, or RLOCKy is set in RISAB_RCFGLOCKR. Refer to Section 10.3 for the actual number of blocks per page.

When the compartment filtering and delegated configuration are enabled (CFEN = DCEN = 1 in RISAB_PGy_CIDCFGR), only the compartment DCCID defined in RISAB_PGy_CIDCFGR can write to this register. When the compartment filtering is enabled but delegation is disabled (CFEN = 1, DCEN = 0), only the trusted domain CID can program this register.

When the compartment filtering is disabled (CFEN = 0), any compartment can program this 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.Res.Res.SEC7SEC6SEC5SEC4SEC3SEC2SEC1SEC0
rwrwrwrwrwrwrwrw

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

Bits 7:0 SECz: Security configuration for block z (z = 7 to 0)
0: Only non-secure requests can access block z of page y. Secure data access can be granted if SRWIAD = 1 in RISAB_CR (secure instruction fetch triggers a bus error).
1: Only secure requests can access block z of page y.

10.5.8 RISAB page y default privileged configuration register (RISAB_PGy_PRIVCFGR)

Address offset: 0x200 + 0x4 * y (y = 0 to 31)

Reset value: 0x0000 0000

Unprivileged writes to this register are ignored, while all reads are allowed. Writes are ignored if GLOCK is set in RISAB_CR, or RLOCKy is set in RISAB_RCFGLOCKR. Refer to Section 10.3 for the actual number of blocks per page.

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.PRIV7PRIV6PRIV5PRIV4PRIV3PRIV2PRIV1PRIV0
rwrwrwrwrwrwrwrw

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

Bits 7:0 PRIVz: Privileged configuration for block z (z = 7 to 0)
This bit is ignored if the filtering per compartment is activated for page y (CFEN = 1 in RISAB_PGy_CIDCFGR).
0: Privileged and unprivileged access are granted to block z of page y.
1: Only privileged access is granted to block z of page y.
Note: Non-secure write to this bit is ignored if SECz is set in RISAB_PGy_SECCFGR.

10.5.9 RISAB page y privileged configuration register for compartment 2 (RISAB_PGy_C2PRIVCFGR)

Address offset: 0x600 + 0x4 * y (y = 0 to 31)

Reset value: 0x0000 0000

Unprivileged writes to this register are ignored, all reads are allowed. Writes are ignored if GLOCK is set in RISAB_CR, or RLOCKy is set in RISAB_RCFGLOCKR.

Only a compartment 2 master can write to this register.

ST logo
ST logo
column_1column_2column_3column_4column_5column_6column_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.PRIV7 PRIV6 PRIV5 PRIV4 PRIV3 PRIV2 PRIV1 PRIV0
rwrwrwrwrwrwrwrw
Bits 7:0PRIVz: Privileged configuration for block z (z = 7 to 0)
31302928272625242322212019181716
PPRIVPPRIVPPRIVPPRIVPPRIVPPRIVPPRIVPPRIVPPRIVPPRIVPPRIVPPRIVPPRIVPPRIVPPRIVPPRIV
31302928272625242322212019181716
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
PPRIVPPRIVPPRIVPPRIVPPRIVPPRIVPPRIVPPRIVPPRIVPPRIVPPRIVPPRIVPPRIVPPRIVPPRIVPPRIV
1514131211109876543210
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
Bits 31:0PPRIVy: Page y privileged configuration (y = 31 to 0)

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

Bits 7:0 PRIVz: Privileged configuration for block z (z = 7 to 0)

This bit is ignored if the filtering per compartment is not activated for page y (CFEN = 0 in RISAB_PGy_CIDCFGR).

0: Compartment 2 privileged and unprivileged accesses are granted to block z of page y, if PRIVy is cleared in RISAB_CID2PRIVCFGR. If PRIVy is set, only privileged access is granted.

1: Only compartment 2 privileged access is granted to block z of page y.

Note: Non-secure write to this bit is ignored if SECz is set in RISAB_PGy_SECCFGR.

10.5.10 RISAB compartment x privilege configuration register (RISAB_CIDxPRIVCFGR)

Address offset: 0x800 + 0x20 * x (x = 0 to 6)

Reset value: 0x0000 0000

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

Bits 31:0 PPRIVy: Page y privileged configuration (y = 31 to 0)

PPRIVy is ignored if the filtering per compartment is not activated for page y (CFEN = 0 in RISAB_PGy_CIDCFGR).

Non-secure write to this bit is ignored if any bit is set in RISAB_PGy_SECCFGR, or if DCEN = 0 while CFEN = 1 in RISAB_PGy_CIDCFGR.

Writes are ignored if RLOCKy is set in RISAB_RCFGLOCKR.

0: Privileged and unprivileged access for compartment x are granted to page y.

Note: Additional privilege access control is defined in RISAB_PGy_C2PRIVCFGR.

1: Compartment x unprivileged accesses to page y are blocked (read as 0, write is ignored).

Note: When the delegated configuration is enabled (DCEN = 1 in RISAB_PGy_CIDCFGR), only the compartment DCCID defined in RISAB_PGy_CIDCFGR can write to this bit. When the delegation is disabled (DCEN = 0), only the trusted domain CID can write to this bit.

When the compartment filtering is disabled (CFEN = 0 in RISAB_PGy_CIDCFGR), any compartment can program this bit.

10.5.11 RISAB compartment x read configuration register (RISAB_CIDxRDCFGR)

Address offset: 0x808+0x20*x (x = 0 to 6)

Reset value: 0x0000 0000

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

RM0457column_2column_3column_4column_5column_6column_7column_8column_9column_10column_11column_12column_13column_14column_15column_16
31302928272625242322212019181716
PRDENPRDENPRDENPRDENPRDENPRDENPRDENPRDENPRDENPRDENPRDENPRDENPRDENPRDENPRDENPRDEN
31302928272625242322212019181716
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
PRDENPRDENPRDENPRDENPRDENPRDENPRDENPRDENPRDENPRDENPRDENPRDENPRDENPRDENPRDENPRDEN
1514131211109876543210
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
Bits 31:0PRDENy: Page y read access enable (y = 31 to 0)
31302928272625242322212019181716
PWRPWRPWRPWRPWRPWRPWRPWRPWRPWRPWRPWRPWRPWRPWRPWR
EN31EN30EN29EN28EN27EN26EN25EN24EN23EN22EN21EN20EN19EN18EN17EN16
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
1514131211109876543210
PWREPWREPWREPWREPWREPWREPWRPWRPWRPWRPWRPWRPWRPWRPWRPWR
N15N14N13N12N11N10EN9EN8EN7EN6EN5EN4EN3EN2EN1EN0
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw
RM0457 Rev 5385/5881

Bits 31:0 PRDENy: Page y read access enable (y = 31 to 0)

PRDENy is ignored if the filtering per compartment is not activated for page y (CFEN = 0 in RISAB_PGy_CIDCFGR).

Non-secure write to this bitfield is ignored if any bit is set in RISAB_PGy_SECCFGR, or if DCEN = 0 while CFEN = 1 in RISAB_PGy_CIDCFGR.

Writes are ignored if RLOCKy is set in RISAB_RCFGLOCKR.

0: Compartment x read as 0 when accessing page y.

1: Compartment x can read page y.

Note: When the delegated configuration is enable (DCEN = 1 in RISAB_PGy_CIDCFGR), only the compartment DCCID defined in RISAB_PGy_CIDCFGR can write to this bit. When the delegation is disabled (DCEN = 0), only the trusted domain CID can write to this bit. When compartment filtering is disabled (CFEN = 0 in RISAB_PGy_CIDCFGR), any compartment can program this bit.

10.5.12 RISAB compartment x write configuration register (RISAB_CIDxWRCFGR)

Address offset: 0x810+0x20*x (x = 0 to 6)

Reset value: 0x0000 0000

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

Bits 31:0 PWRENy: Page y write access enable (y = 31 to 0)

PWRENy is ignored if the filtering per compartment is not activated for page y (CFEN = 0 in RISAB_PGy_CIDCFGR).

Non-secure write to this bitfield is ignored if any bit is set in RISAB_PGy_SECCFGR, or if DCEN = 0 while CFEN = 1 in RISAB_PGy_CIDCFGR.

Writes are ignored if RLOCKy is set in RISAB_RCFGLOCKR.

0: Compartment x write to page y is ignored.

1: Compartment x can write page y.

Note: When the delegated configuration is enable (DCEN = 1 in RISAB_PGy_CIDCFGR), only the compartment DCCID defined in RISAB_PGy_CIDCFGR can write to this bit. When the delegation is disabled (DCEN = 0), only the trusted domain CID can write to this bit. When compartment filtering is disabled (CFEN = 0 in RISAB_PGy_CIDCFGR), any compartment can program this bit.

10.5.13 RISAB page y CID configuration register (RISAB_PGy_CIDCFGR)

Address offset: 0xA00 + 0x4 * y (y = 0 to 31)

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 RISAB_CR, or RLOCKx is set in RISAB_RCFGLOCKR.

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.DCCID[2:0]Res.DCENRes.CFEN
rwrwrwrwrw

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

Bits 6:4 DCCID[2:0]: Delegated configuration CID

The trusted domain application can use this bitfield to statically define which compartment can program the security domain of page y, if DCEN = 1.

Bit 3 Reserved, must be kept at reset value.

Bit 2 DCEN: Delegated configuration enable

This bit defines the access control of RISAB_PGy_SECCFGR, PPRIVy in RISAB_CIDxPRIVCFGR, PRDENy in RISAB_CIDxRDCFGR, and PWRENy in RISAB_CIDxWRCFGR.

0: Bit/register can be written only by trusted domain application.

1: Bit/register can be written only by the compartment DCCID[2:0], defined in this register.

Note: When DCEN is set, the configuration application must be secure if at least one bit is set in RISAB_PGy_SECCFGR.

Bit 1 Reserved, must be kept at reset value.

Bit 0 CFEN: CID filtering enable

0: Compartment-based filtering is disabled for page y.

1: Compartment-based filtering is enabled for page y.

Note: For any CFEN value, the access controls to page y, defined in RISAB_PGy_SECCFGR, and RISAB_zzPRIVCFGR (zz = PGy_ if CFEN = 0, zz=PGy_C2 or CIDx if CFEN = 1) always apply.

10.5.14 RISAB hardware configuration register 3 (RISAB_HWCFGR3)

Address offset: 0xFE8

Reset value: 0x0000 0000

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

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

This bitfield returns 0x0.

10.5.15 RISAB hardware configuration register 2 (RISAB_HWCFGR2)

Address offset: 0xFEC

Reset value: 0x000X 0000

Refer to Section 10.3 for the actual reset value.

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

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

This bitfield returns the protected memory size in bytes.

10.5.16 RISAB hardware configuration register 1 (RISAB_HWCFGR1)

Address offset: 0xFF0

Reset value: 0x0X39 3111

Refer to Section 10.3 for the actual reset value.

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

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

Bits 27:24 CFG7[3:0]: Hardware configuration 7

This bitfield returns the number of pages (LOG_NUM_PAGE).

Bits 23:20 CFG6[3:0]: Hardware configuration 6

This bitfield returns the number of blocks per pages (LOG_BLOCKS_PER_PAGE).

Bits 19:16 CFG5[3:0]: Hardware configuration 5

This bitfield returns the block size (LOG_BLOCK_SIZE).

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.

10.5.17 RISAB version register (RISAB_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]: RISAB major revision

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

10.5.18 RISAB identification register (RISAB_IPIDR)

Address offset: 0xFF8

Reset value: 0x0010 016X

Refer to Section 10.3 for the actual reset value.

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

Bits 31:0 ID[31:0]: RISAB identification code

10.5.19 RISAB size identification register (RISAB_SIDR)

Address offset: 0xFFC

Reset value: 0xA3C5 DD04

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

Bits 31:0 SID[31:0]: RISAB size identification code

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

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

10.5.20 RISAB register map

Table 48. RISAB register map and reset values

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x000RISAB_CRSRWADRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.GLOCK
Reset value000
0x004ReservedReserved
0x008RISAB_IASRRes.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.IAEFCAEF
Reset value00
0x00CRISAB_IACRRes.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.IAEFCAEF
Reset value00
0x010RISAB_RCFGLOCKRRLOCK31RLOCK30RLOCK29RLOCK28RLOCK27RLOCK26RLOCK25RLOCK24RLOCK23RLOCK22RLOCK21RLOCK20RLOCK19RLOCK18RLOCK17RLOCK16RLOCK15RLOCK14RLOCK13RLOCK12RLOCK11RLOCK10RLOCK9RLOCK8RLOCK7RLOCK6RLOCK5RLOCK4RLOCK3RLOCK2RLOCK1RLOCK0
Reset value00000000000000000000000000000000
0x014-0x01CReservedReserved
0x020RISAB_IAESRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.ANRWRes.Res.IASECIAPRIVRes.IACID [2:0]
Reset value0000000
0x024RISAB_IADDRIADD[31:0]
Reset value00000000000000000000000000000000
0x028-0x0FCReservedReserved
0x100 + 0x004 * y (y = 0 to 31)
Last address: 0x17C
RISAB_PGy_SECCFGRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.SEC7SEC6SEC5SEC4SEC3SEC2SEC1SEC0
Reset value11111111
0x180-0x1FCReservedReserved
0x200 + 0x4 * y (y = 0 to 31)
Last address: 0x27C
RISAB_PGy_PRIVCFGRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PRIV7PRIV6PRIV5PRIV4PRIV3PRIV2PRIV1PRIV0
Reset value00000000
0x280 to 0x5FCReservedReserved
0x600 + 0x4 * y (y = 0 to 31)
Last address: 0x67C
RISAB_PGy_C2PRIVCFGRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PRIV7PRIV6PRIV5PRIV4PRIV3PRIV2PRIV1PRIV0
Reset value00000000
0x680 to 0x7FCReservedReserved
0x800 + 0x020 * x (x = 0 to 6)
Last address: 0x8C0
RISAB_CIDxPRIVCFG RPPRIV31PPRIV30PPRIV29PPRIV28PPRIV27PPRIV26PPRIV25PPRIV24PPRIV23PPRIV22PPRIV21PPRIV20PPRIV19PPRIV18PPRIV17PPRIV16PPRIV15PPRIV14PPRIV13PPRIV12PPRIV11PPRIV10PPRIV9PPRIV8PPRIV7PPRIV6PPRIV5PPRIV4PPRIV3PPRIV2PPRIV1PPRIV0
Reset value00000000000000000000000000000000
ST logo
ST logo

Table 48. RISAB register map and reset values (continued)

OffsetRegister name313029282726252423222120191817161514131211109876543210
0x808 + 0x20 * x
(x = 0 to 6)
Last address: 0x8C8
RISAB_CIDxRDCFGRPRDEN31PRDEN30PRDEN29PRDEN28PRDEN27PRDEN26PRDEN25PRDEN24PRDEN23PRDEN22PRDEN21PRDEN20PRDEN19PRDEN18PRDEN17PRDEN16PRDEN15PRDEN14PRDEN13PRDEN12PRDEN11PRDEN10PRDEN9PRDEN8PRDEN7PRDEN6PRDEN5PRDEN4PRDEN3PRDEN2PRDEN1PRDEN0
Reset value00000000000000000000000000000000
0x810 + 0x20 * x
(x = 1 to 6)
Last address: 0x8D0
RISAB_CIDxWRCFGRPWREN31PWREN30PWREN29PWREN28PWREN27PWREN26PWREN25PWREN24PWREN23PWREN22PWREN21PWREN20PWREN19PWREN18PWREN17PWREN16PWREN15PWREN14PWREN13PWREN12PWREN11PWREN10PWREN9PWREN8PWREN7PWREN6PWREN5PWREN4PWREN3PWREN2PWREN1PWREN0
Reset value00000000000000000000000000000000
0x8D4-0x9FCReservedReserved
0xA00 + 0x4 * y
(y = 1 to 31)
Last address: 0xA7C
RISAB_PGy_CIDCFGRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.DCCID [2:0]Res.DCENRes.CFEN
Reset value0000000
0xA80-0xFE4ReservedReserved
0xFE8RISAB_HWCFGR3CGF[31:0]
Reset value00000000000000000000000000000000
0xFECRISAB_HWCFGR2CGF[31:0]
Reset value(1)XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0xFF0RISAB_HWCFGR1Res.Res.Res.Res.CFG7[3:0]CFG6[3:0]CFG5[3:0]CFG4[3:0]CFG3[3:0]CFG2[3:0]CFG1[3:0]
Reset value(1)XXXXXXXXXXXXXXXXXXXXXXXXXXXX
0xFF4RISAB_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
0xFF8RISAB_IPIDRID[31:0]
Reset value(1)XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
0xFFCRISAB_SIDRSID[31:0]
Reset value10100011110001011101110100000100

1. Refer to Section 10.3 for the actual value.

Refer to Section 2.4 for the register boundary addresses.