13. System configuration, boot, and security (SBS)
13.1 SBS introduction
The STM32H503xx devices feature a set of configuration registers located in the SBS. On top of various device configurations this SBS peripheral controls key boot and security features, including debug control.
13.2 SBS main features
- • System configuration
- – Manage robustness feature
- – Enable/disable the FMP high-drive mode of some I/Os
- – Manage the I/O compensation cell
- – Configure register security access
- • Boot control
- – Upon system reset, configure the Cortex-M33 boot address and the temporal isolation level depending on the current configuration (such as PRODUCT_STATE (sbs_product_state)).
- – Manage the temporal isolation feature implemented thanks to the hide protect level (HDPL) monotonic counter
- • Debug control
- – Control the opening of the device debug interface, ensuring the sequencing of events that guarantee the device security
13.3 SBS functional description
13.3.1 SBS block diagram
The figure below shows the SBS block diagram, including the four main functions:
- • System configuration
- • Boot control
- • Debug control
Figure 45. SBS block diagram

The diagram illustrates the SBS (System configuration, boot, and security) block structure. It is a large grey rectangle containing several internal blocks and signal paths. On the left, external inputs are shown: SBS_BOOT_PIN (a small rectangle), sbs_boot_addresses, sbs_product_state, sbs_dbg_req, and sbs_dbg_reset. Inside the SBS block, there are four main functional blocks: System configuration, Boot control, HPDL counter, and Debug control. The System configuration block is at the top. The Boot control block is below it, with a bidirectional connection to the HPDL counter block to its right. The Debug control block is at the bottom, receiving inputs from sbs_product_state, sbs_dbg_req, and sbs_dbg_reset. It also has bidirectional connections to the Boot control block and the HPDL counter block. Below the Debug control block are three smaller blocks: DBG_UNLOCK, DBG_AUTH_HPDL, and DBG_AUTH_SEC, which are connected to the Debug control block. On the right side, external outputs are shown: sbs_init_vtor_ns, sbs_hpdl, sbs_dbg_state, sbs_ap_unlocked, and sbs_dbg_unlocked. The bottom right corner of the diagram is labeled MSv68888V1.
13.3.2 SBS signals
The table below details the user-relevant internal signals that interface the SBS.
Table 79. SBS internal input/output signals
| Signal name | Type | Description |
|---|---|---|
| SBS_BOOT_PIN | Input | Select booting on user flash memory or bootloader |
| sbs_boot_addresses | List of addresses defined by the flash memory: – BOOT_ADDR_NS: boot address | |
| sbs_product_state | Signal based on the PRODUCT_STATE option byte to activate the different security mechanisms depending on the product use. Expected values are described in Section 7: Embedded flash memory (FLASH). | |
| sbs_dbg_req | Launch the debug authentication protocol when booting. |
| Signal name | Type | Description |
|---|---|---|
| sbs_init_vtor_ns | Output | Vector address for Cortex-M33 |
| sbs_hdpl | HDPL (temporal isolation level, ID of the boot level, used to isolate boot levels) This signal reflects a monotonic counter that can be incremented from 0 to 3, and that is reset to zero only on software reset or POR. | |
| sbs_ap_unlocked | Control the Cortex-M33 access port. | |
| sbs_dbg_unlocked | Unlock the debug (when set to 1) for the Cortex-M33 | |
| sbs_dbg_state | Populate the debug state of the flash memory with OPEN (0xB4), CLOSE_SEC (0x8A), or CLOSE (0x51). | |
| sbs_dbg_reset | Input | Reset SBS_DBGCR (coming from the RCC). Can be reset by a system reset or POR, when configured through DBGMCU. |
13.3.3 SBS reset and clocks
The SBS configuration port is clocked by the AHB bus clock. There is a general reset and a debug configuration reset controlled in DBGMCU.
13.3.4 SBS system configuration
SBS I/O compensation cell management
The I/O compensation cell generates an 8-bit value for the I/O buffer: 4 bits for N-MOS and 4 bits for P-MOS. This value depends on the process, voltage, temperature (PVT) operating conditions. These bits are used to control the output impedance in the I/O buffer, and the slew rate of the I/O commutation (the \(t_{fall}\) and \(t_{rise}\) time), in order to reduce the I/O noise on the power supply.
As shown in the figure below, the compensation cell is split in two blocks: one block to provide an optimal code for the current PVT, and one block to drive the block controlled by the software.
Figure 46. Compensation cell management
The diagram illustrates the compensation cell management architecture. It features a multiplexer (represented by a diamond shape) with two inputs, labeled 0 and 1. Input 0 is connected to the SBS_CCVALR register, and input 1 is connected to the SBS_CCSWCR register. The multiplexer's output is connected to the Compensation cell. The SBS_CCCSR register provides a 'code selection' signal to the multiplexer and an 'enable' signal to the Compensation cell. The Compensation cell outputs a 'value' back to the SBS_CCCSR register. A 'ready' signal is also shown as an input to the SBS_CCCSR register. The entire diagram is enclosed in a box with the reference code MSv69110V1 in the bottom right corner.
The compensation cell value can be read when the READY flag is set in SBS_CCCSR. With CODESEL in SBS_CCCSR, the application can select the value to apply between two options: the code from the cell or the code from SBS_CCSWCR.
Two compensation cells are embedded in STM32H503xx devices:
- • one for the I/Os supplied by VDDIO power rail
- • one for the I/Os supplied by VDDIO2 power rail
By default, the compensation cells are disabled, and a fixed code is applied to all the I/Os.
Note: The compensation cell can be used only when 2.7 V ≤ VDDIOx ≤ 3.6 V or 1.71 V ≤ VDDIOx ≤ 2 V (see the figure below).
Note: The compensation cell can be used only when the CSI oscillator is enabled, see Section 10: Reset and clock control (RCC) for more details on the CSI oscillator.
Figure 47. Compensation cell use

13.3.5 SBS boot control
The SBS can be used to control the boot entry points considering the product settings. The main boot control actions are listed below:
- • Boot when launching a debug authentication sequence.
- • Select boot between the bootloader or the user flash memory boot.
- • Initialize the HDPL boot value.
Figure 48. SBS boot control

The boot configurations are selected considering the product settings:
- • SBS_BOOT_PIN: to select booting on user flash memory
- – sbs_boot_addresses: list of addresses defined by the flash memory:
- – BOOT_ADDR_NS: boot address
- • PRODUCT_STATE: option byte to activate the different security mechanisms depending on the product use. Expected values are described in Section 7: Embedded flash memory (FLASH).
- • sbs_dbg_req: used to launch the debug authentication protocol when booting
The boot control logic sets the following data:
- • sbs_init_vtor_ns: vector address for Cortex-M33
- • HDPL (see the description below)
SBS HDPL (temporal isolation level) management
The HDPL is a monotonic counter incremented during the boot stages. The HDPL is reset to its default value only after a power-on or a system reset. This default value (0 or 1) depends on the device life cycle, as defined in the boot logic.
The STM32H503xx devices use HDPL information to automatically isolate code and its associated secrets (like keys) during the boot process. Incrementing HDPL ensures that private code and data for one boot stage cannot be directly accessible from later boot stages.
The HDPL is used by the user flash memory. See Section 7: Embedded flash memory (FLASH) for more details.
The HDPL can take the value from 0 to 3. When reaching the value 3, HDPL keeps this value until reset. The current HDPL value is readable in the HDPL bitfield in SBS_HDPLSR.
To increment the HDPL by one, the application must write 0x6A to INCR_HDPL in SBS_HDPLCR. After such increment, and before doing any subsequent action, the user must check that the HDPL has effectively been incremented reading SBS_HDPLSR.
Table 80. HDPL encoded values
| HDPL | Code |
|---|---|
| 0 | 0xB4 |
| 1 | 0x51 |
| 2 | 0x8A |
| 3 | 0x6F |
| All other values |
Table 81. SBS boot logic
| Inputs | Outputs | |||||
|---|---|---|---|---|---|---|
| sbs_product_state | sbs_dbg_req | SBS_BOOT_PIN | sbs_boot_addresses | sbs_init_vtor_ns | sbs_hdpl | sbs_dbg_state (FLASH_STATE) |
| Any except Locked | 1 | x | BOOT_DBG_AUTH_ADD | x | 1 | Depends on PRODUCT_STATE |
| Open | 0 | 0 | BOOT_ADDR_NS | BOOT_ADDR_NS | 1 | OPEN |
| 0 | 1 | START_ADD_BOOT_LOADER | x | ≥1 | OPEN | |
| Provisioning | 0 | x | START_ADD_BOOT_LOADER | x | ≥1 | CLOSE |
| iROT-Provisioned | 0 | x | BOOT_ADDR_NS | BOOT_ADDR_NS | 1 | CLOSE |
| Closed | 0 | x | BOOT_ADDR_NS | BOOT_ADDR_NS | 1 | CLOSE |
| Locked | 0 | x | BOOT_ADDR_NS | BOOT_ADDR_NS | 1 | CLOSE |
13.3.6 SBS debug control
The SBS debug control is used to manage debug opening, taking care on the product context (PRODUCT_STATE, HDPL) on register settings, or through a debug authentication control.
When the debug is forbidden, debug access port AP0 (via mailbox), Cortex-M33 access port, and CPU debug interface are locked. In this situation, the debugger cannot access the CPU and no effective debug can be done. Refer to the Section 41: Debug support (DBG) for more details.
Authenticated debug sequence
- 1. The external host requests to launch the debug authentication protocol, via the DBGMCU access port mailbox. The rest of the device is kept under reset.
- 2. SBS selects the ST-DA (debug authentication library) boot address and requests the CPU to be released from reset.
- 3. The CPU running the ST-DA library executes the debug authentication protocol in the system flash memory. If the device is closed, the access port mailbox is closed until ST-DA acknowledges the authentication sequence start request.
- 4. As soon as the right password is entered from the host, the full regression is launched.
Note: Only full regression can be controlled (no debug reopening), thanks to a password authentication method. The product has to be previously provisioned with the HASH of the password.
Debug reset
The debug opening may have the configuration to be reset by system or power-on reset, depending on a DBGMCU register field. A specific reset pin, DBGRESETn coming from the RCC, is used to reset the SBS_DBGCR register.
Debug locking
The debug configuration can be locked thanks to DBGCFG_LOCK in SBS_DBGLOCKR. SBS_DBGCR is then not anymore writable.
When DBGCFG_LOCK is set to 1, it can only be reset by the hardware DBGRESETn reset.
Figure 49. SBS debug control

graph LR
subgraph SBS
DC[Debug control]
HDPLC[HDPL counter]
DBG_UNLOCK[DBG_UNLOCK]
DBG_AUTH_HDPL[DBG_AUTH_HDPL]
end
FM[Flash memory]
DBGMCU[DBGMCU]
RCC[RCC]
DAP[DAP]
CM33[Cortex-M33 (CPU dbggen)]
FM -- sbs_product_state --> DC
DBGMCU -- sbs_dbg_req --> DC
RCC -- sbs_dbg_reset --> DC
DC -- sbs_dbg_state --> FM
DC -- sbs_ap_unlocked --> DAP
DC -- sbs_dbg_unlocked --> CM33
HDPLC -- sbs_hdpl --> DC
DBG_UNLOCK --> DC
DBG_AUTH_HDPL --> DC
subgraph Debug_authentication [Debug authentication]
DBG_UNLOCK
DBG_AUTH_HDPL
end
MSv69920V2
Inputs used to control the debug opening
- • sbs_dbg_req: input signal that a host requests to launch the debug authentication protocol. When this signal is set, the boot address is set to launch the debug authentication library.
- • sbs_product_state: provide the current PRODUCT_STATE (from flash memory). See Section 7: Embedded flash memory (FLASH) for more details.
- • sbs_dbg_reset: reset information coming from the RCC, and reset SBS_DBGCR if this register is configured to be reset.
Configuration
- • DBG_UNLOCK in SBS_DBGCR: debug unlock when DBG_AUTH_HDPL is reached
- • AP_UNLOCK in SBS_DBGCR: access port unlock
- • DBG_AUTH_HDPL in SBS_DBGCR: authenticated debug temporal isolation level. Define the HDPL value from which the debug can be opened. Value can only be from 1 to 3.
- • DBG_LOCK in SBS_DBGLOCKR: lock the current debug configuration (released only by a reset).
Outputs
- • sbs_ap_unlocked: signal controlling the Cortex-M33 access port
- – 1: 0xB4
- – 0: all other codes
- • sbs_dbg_unlocked: unlock the debug (when set to 1) for the Cortex-M33.
- – 1: 0xB4
- – 0: all other codes
- • sbs_dbg_state: translation of the sbs_product_state into debug status values (OPEN (0xB4), CLOSE_SEC (0x8A), or CLOSE (0x51))
Table 82. Debug authentication logic
| Input signal | Debug authentication control | Output signal | ||
|---|---|---|---|---|
| sbs_dbg_state | sbs_hdpl | sbs_dbg_unlock | sbs_dbg_auth_hdpl | sbs_dbg_unlocked |
| OPEN | 1 | x | x | 1 |
| 2 | x | x | 1 | |
| 3 | x | x | 1 | |
| CLOSED | x | 0 | x | 0 |
| 1 | 1 | 0 | 0 | |
| 1 | 1 | - | 1 | |
| 1 | 1 | 2 | 0 | |
| 2 | 1 | 1 | 1 | |
| 2 | 1 | 2 | 1 | |
| 2 | 1 | 3 | 0 | |
| 3 | 1 | 1 | 1 | |
| 3 | 1 | 2 | 1 | |
| 3 | 1 | 3 | 1 | |
13.4 SBS interrupts
SBS does not support interrupts.
13.5 SBS registers
13.5.1 SBS temporal isolation control register (SBS_HDPLCR)
Address offset: 0x010
Reset value: 0x0000 00B4
Reset: system reset
Register security: no restriction
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | INCR_HDPL[7:0] | |||||||
| rw | rw | rw | rw | rw | rw | rw | rw | ||||||||
Bits 31:8 Reserved, must be kept at reset value.
Bits 7:0 INCR_HDPL[7:0]: increment HDPL value
0xB4: no increment
0x6A: recommended value to increment HDPL level by one
Other: all other values allow an HDPL level increment.
13.5.2 SBS temporal isolation status register (SBS_HDPLSR)
Address offset: 0x014
Reset value: 0xXXXXX XXXX
The reset value depends on boot case, HDPL0 or HDPL1. The boot logic defines the value out of reset. See Section 13.3.5: SBS boot control.
Reset: system reset
Register security: no restriction
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | HDPL[7:0] | |||||||
| r | r | r | r | r | r | r | r | ||||||||
Bits 31:8 Reserved, must be kept at reset value.
Bits 7:0 HDPL[7:0]: temporal isolation level
This bitfield returns the current temporal isolation level.
0xB4: HDPL0, hide protection level reserved for ST code and data
0x51: HDPL1, hide protection level to be used to execute and protect an immutable root of trust (IROT) stage. First code to be executed at each reset of the platform. To ensure secure boot, this code must be immutable)
0x8A: HDPL2, hide protection level to be used to execute and protect an updatable Root of Trust (UROT) stage. UROT is executed from IROT to complete the immutable root of trust execution during boot stages
0x6F: HDPL3, hide protection level to be used to execute the application. It is a temporal isolation level that can be used to run the application when it has to be isolated from IROT and UROT)
13.5.3 SBS debug control register (SBS_DBGCR)
Address offset: 0x020
Reset value: 0x0000 0000
Reset: debug reset (system reset or power-on reset)
Register security: HDPL0/1 (RAZ/WI otherwise)
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | DBG_AUTH_HDPL[7:0] | |||||||
| rw | rw | rw | rw | rw | rw | rw | rw | ||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| DBG_UNLOCK[7:0] | AP_UNLOCK[7:0] | ||||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:24 Reserved, must be kept at reset value.
Bits 23:16 DBG_AUTH_HDPL[7:0]: authenticated debug temporal isolation level
Writing to this bitfield defines at which HDPL the authenticated debug opens.
0x51: HDPL1
0x8A: HDPL2
0x6F: HDPL3
Note: Writing any other values is ignored. Reading any other value means that the debug never opens.
Bits 15:8 DBG_UNLOCK[7:0]: debug unlock when DBG_AUTH_HDPL is reached
Write 0xB4 to this bitfield to open the debug when HDPL in SBS_HDPLSR equals to DBG_AUTH_HDPL in this register.
Bits 7:0 AP_UNLOCK[7:0]: access port unlock
Write 0xB4 to this bitfield to open the device access port.
13.5.4 SBS debug lock register (SBS_DBGLOCKR)
Address offset: 0x024
Reset value: 0x0000 00B4
Reset: debug reset (system reset or power-on reset)
Register security: HDPL0/1 (RAZ/WI otherwise)
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | DBGCFG_LOCK[7:0] | |||||||
| rw | rw | rw | rw | rw | rw | rw | rw | ||||||||
Bits 31:8 Reserved, must be kept at reset value.
Bits 7:0 DBGCFG_LOCK[7:0]: debug configuration lock
Reading this bitfield returns 0x6A if the bitfield value is different from 0xB4.
0xC3 is the recommended value to lock the debug configuration using this bitfield.
0xB4: Writes to SBS_DBGCR allowed (default)
Other: Writes to SBS_DBGCR ignored
13.5.5 SBS product mode and configuration register (SBS_PMCR)
Address offset: 0x100
Reset value: 0x0000 0000
Reset: system reset
Register security: there is no access restriction.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | PB8_FMPLUS | PB7_FMPLUS | PB6_FMPLUS |
| rw | rw | rw | |||||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
Bits 31:19 Reserved, must be kept at reset value.
Bit 18 PB8_FMPLUS: Fast-mode Plus command on PB(8)
0: Fast-mode Plus mode on PB(8) is disabled
1: Fast-mode Plus mode on PB(8) is enabled
Bit 17 PB7_FMPLUS: Fast-mode Plus command on PB(7)
0: Fast-mode Plus mode on PB(7) is disabled
1: Fast mode plus mode on PB(7) is enabled
Bit 16 PB6_FMPLUS: Fast-mode Plus command on PB(6)
0: Fast-mode Plus mode on PB(6) is disabled
1: Fast-mode Plus mode on PB(6) is enabled
Bits 15:10 Reserved, must be kept at reset value.
Bits 9:0 Reserved, must be kept at reset value.
13.5.6 SBS FPU interrupt mask register (SBS_FPUIMR)
Address offset: 0x104
Reset value: 0x0000 001F
Reset: system reset
This register is only accessible through a privilege transaction.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | FPU_IE[5:0] | |||||
| rw | rw | rw | rw | rw | rw | ||||||||||
Bits 31:6 Reserved, must be kept at reset value.
Bits 5:0 FPU_IE[5:0]: FPU interrupt enable
Set and cleared by software to enable the Cortex-M33 FPU interrupts
FPU_IE[5]: inexact interrupt enable (interrupt disabled at reset)
FPU_IE[4]: input abnormal interrupt enable
FPU_IE[3]: overflow interrupt enable
FPU_IE[2]: underflow interrupt enable
FPU_IE[1]: divide-by-zero interrupt enable
FPU_IE[0]: invalid operation interrupt enable
13.5.7 SBS memory erase status register (SBS_MESR)
Address offset: 0x108
Power-on reset value: 0b0000 0000 0000 0000 0000 0000 0000 0000
System reset value: 0b0000 0000 0000 0000 0000 0000 0000 000U
Register security: always accessible
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | IPMEE |
| rc_w1 | |||||||||||||||
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | MCLR |
| rc_w1 |
Bits 31:17 Reserved, must be kept at reset value.
Bit 16 IPMEE: ICACHE erase status
This bit is set by hardware when ICACHE erase is completed after potential tamper detection or a Product State regression (refer to Section 33: Tamper and backup registers (TAMP) for more details).
This bit is cleared by software by writing 1 to it.
0: ICACHE erase on going
1: ICACHE erase ended
Bits 15:1 Reserved, must be kept at reset value.
Bit 0 MCLR: device memories erase status
This bit is set by hardware when SRAM2, BKPSRAM, and ICACHE erase is completed after power-on reset or tamper detection or Product State regression (refer to Section 33: Tamper and backup registers (TAMP) for more details).
This bit is not reset by system reset and is cleared by software by writing 1 to it.
0: memory erase on going if not yet cleared by software
1: memory erase done
13.5.8 SBS compensation cell for I/Os control and status register (SBS_CCCSR)
Address offset: 0x110
Reset value: 0x0000 0000
Reset: system reset
Register security: always accessible
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | RDY2 | RDY1 | Res. | Res. | Res. | Res. | CS2 | EN2 | CS1 | EN1 |
| r | r | rw | rw | rw | rw |
Bits 31:10 Reserved, must be kept at reset value.
Bit 9 RDY2: VDDIO2 compensation cell ready flag
This bit provides the status of the VDDIO2 compensation cell.
0: VDDIO2 compensation cell not ready
1: VDDIO2 compensation cell ready (code value provided by the cell can be used)
Bit 8 RDY1: VDDIO compensation cell ready flag
This bit provides the status of the compensation cell.
0: VDDIO compensation cell not ready
1: VDDIO compensation cell ready (code value provided by the cell can be used)
Bits 7:4 Reserved, must be kept at reset value.
Bit 3 CS2: code selection for VDDIO2 power rail (reset value set to 1)
This bit selects the code to be applied for the I/O compensation cell.
0: Code from the cell (available in SBS_CCVALR)
1: Code from SBS_CCSWCR
- Bit 2 EN2: enable compensation cell for VDDIO2 power rail
This bit enables the I/O compensation cell.
0: I/O compensation cell disabled
1: I/O compensation cell enabled - Bit 1 CS1: code selection for VDDIO power rail (reset value set to 1)
This bit selects the code to be applied for the I/O compensation cell.
0: Code from the cell (available in the SBS_CCVALR)
1: Code from SBS_CC SWCR - Bit 0 EN1: enable compensation cell for VDDIO power rail
This bit enables the I/O compensation cell.
0: I/O compensation cell disabled
1: I/O compensation cell enabled
13.5.9 SBS compensation cell for I/Os value register (SBS_CCVALR)
Address offset: 0x114
Reset value: 0x0000 0088
Reset: system reset
Register security: always accessible
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| APSRC2[3:0] | ANSRC2[3:0] | APSRC1[3:0] | ANSRC1[3:0] | ||||||||||||
| r | r | r | r | r | r | r | r | r | r | r | r | r | r | r | r |
- Bits 31:16 Reserved, must be kept at reset value.
- Bits 15:12 APSRC2[3:0]: compensation value for the PMOS transistor
This value is provided by the cell and the processor must interpret it to compensate the slew rate in the functional range. - Bits 11:8 ANSRC2[3:0]: Compensation value for the NMOS transistor
This value is provided by the cell and the processor must interpret it to compensate the slew rate in the functional range. - Bits 7:4 APSRC1[3:0]: compensation value for the PMOS transistor
This value is provided by the cell and the processor must interpret it to compensate the slew rate in the functional range. - Bits 3:0 ANSRC1[3:0]: compensation value for the NMOS transistor
This value is provided by the cell and the processor must interpret it to compensate the slew rate in the functional range.

13.5.10 SBS compensation cell for I/Os software code register (SBS_CCSWCR)
Address offset: 0x118
Reset value: 0x0000 7878
Reset: system reset
Register security: always accessible
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| SW_APSRC2[3:0] | SW_ANSRC2[3:0] | SW_APSRC1[3:0] | SW_ANSRC1[3:0] | ||||||||||||
| rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw | rw |
Bits 31:16 Reserved, must be kept at reset value.
Bits 15:12 SW_APSRC2[3:0]: PMOS compensation code for the VDDIO power rails
This bitfield is written by software to define an I/O compensation cell code for the PMOS transistors of the VDDIO power rail. This code is applied to the I/O when CS2 is set in SBS_CCSR.
Bits 11:8 SW_ANSRC2[3:0]: NMOS compensation code for VDDIO power rails
This bitfield is written by software to define an I/O compensation cell code for the NMOS transistors of the VDD power rail. This code is applied to the I/O when CS2 is set in SBS_CCSR.
Bits 7:4 SW_APSRC1[3:0]: PMOS compensation code for the VDD power rails
This bitfield is written by software to define an I/O compensation cell code for PMOS transistors of the VDDIO power rail. This code is applied to the I/O when CS1 is set in SBS_CCSR.
Bits 3:0 SW_ANSRC1[3:0]: NMOS compensation code for VDD power rails
This bitfield is written by software to define an I/O compensation cell code for NMOS transistors of the VDD power rail. This code is applied to the I/O when CS1 is set in SBS_CCSR.
13.5.11 SBS Class B register (SBS_CFGR2)
Address offset: 0x120
Reset value: 0x0000 0000
Reset: system reset
Register security: always accessible
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | ECCL | PVDL | SEL | CLL |
| rw | rw | rw | rw |
Bits 31:4 Reserved, must be kept at reset value.
Bit 3 ECCL: ECC lock
This bit is set and cleared by software. It can be used to enable and lock the flash memory double ECC error with break input of TIM1.
- 0: double ECC error flag disconnected to timer break inputs
- 1: double ECC error flag connected to timer break inputs
Bit 2 PVDL: PVD lock
This bit is set by software and cleared only by a system reset. It can be used to enable and lock the PVD connection with TIM1 break inputs.
- 0: PVD interrupt disconnected from timer break inputs. PVD_EN and PVD_SEL[2:0] in the PWR registers are read/write.
- 1: PVD interrupt is connected to timer break inputs. PVD_EN and PVD_SEL[2:0] in the PWR registers are read only
Bit 1 SEL: SRAM ECC error lock
This bit is set by software and cleared only by a system reset. It can be used to enable and lock the SRAM double ECC error signal with break input of TIM1.
- 0: SRAM double ECC error flag disconnected from timer break inputs
- 1: SRAM double ECC error flag connected to timer break inputs
Bit 0 CLL: core lockup lock
This bit is set by software and cleared only by a system reset. It can be used to enable and lock the lockup (HardFault) output of the Cortex-M33 with TIM1 break inputs.
- 0: lockup output disconnected from timer break inputs
- 1: lockup output connected to timer break inputs
13.5.12 SBS CPU lock register (SBS_CNSLCKR)
Address offset: 0x144
Reset value: 0x0000 0000
Reset: system reset
Register security: This register can be read and written by privileged access only. Unprivileged access is RAZ/WI.
This register is used to lock the configuration of the MPU and VTOR_NS registers of the Cortex-M33.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | LOCKN SMPU | LOCKN SVTOR |
| rw | rw |
Bits 31:2 Reserved, must be kept at reset value.
Bit 1 LOCKNSMPU: MPU register lock
This bit is set by software and cleared only by a system reset. When set, this bit disables write access to MPU_CTRL_NS, MPU_RNR_NS and MPU_RBAR_NS registers.
0: MPU registers write enabled
1: MPU registers write disabled
Bit 0 LOCKNSVTOR: VTOR_NS register lock
This bit is set by software and cleared only by a system reset.
0: VTOR_NS register write enabled
1: VTOR_NS register write disabled
13.5.13 SBS flift ECC NMI mask register (SBS_ECCNMIR)
Address offset: 0x14C
Reset value: 0x0000 0000
Reset: system reset
Register security: This register is only accessible through a privilege transaction.
This register sets up the expected behavior on NMI regarding double ECC errors from the flash memory.
| 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
| Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | ECCN MI_MA SK_EN |
| rw |
Bits 31:1 Reserved, must be kept at reset value.
Bit 0 ECCNMI_MASK_EN: NMI behavior setup when a double ECC error occurs on FLITF data part
0: NMI generated if a double ECC error in the FLITF data part
1: NMI not generated if a double ECC error in the FLITF data part
13.5.14 SBS register map
Table 83. SBS register map and reset values
| Offset | Register | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x010 | SBS_HDPLCR | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | INCR_HDPL[7:0] | |||||||
| Reset value | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | |||||||||||||||||||||||||
| 0x014 | SBS_HDPLSR | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | Res | HDPL[7:0] | |||||||
| Reset value | x | x | x | x | x | x | x | x | |||||||||||||||||||||||||
| 0x020 | SBS_DBGCR | Res | Res | Res | Res | Res | Res | Res | Res | DBG_AUTH_HDPL[7:0] | DBG_UNLOCK[7:0] | AP_UNLOCK[7:0] | |||||||||||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||
Table 83. SBS register map and reset values (continued)
| Offset | Register | 31 | 30 | 29 | 28 | 27 | 26 | 25 | 24 | 23 | 22 | 21 | 20 | 19 | 18 | 17 | 16 | 15 | 14 | 13 | 12 | 11 | 10 | 9 | 8 | 7 | 6 | 5 | 4 | 3 | 2 | 1 | 0 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0x024 | SBS_DBGLOCKR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | DBGCFG_LOCK[7:0] | |||||||
| Reset value | 1 | 0 | 1 | 1 | 0 | 1 | 0 | 0 | |||||||||||||||||||||||||
| 0x028 to 0x030 | Reserved | Reserved | |||||||||||||||||||||||||||||||
| 0x038 to 0x09C | Reserved | Reserved | |||||||||||||||||||||||||||||||
| 0x0A4 to 0x0BC | Reserved | Reserved | |||||||||||||||||||||||||||||||
| 0x0C4 to 0x0FC | Reserved | Reserved | |||||||||||||||||||||||||||||||
| 0x100 | SBS_PMCR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | PB8_FMPLUS | PB7_FMPLUS | PB6_FMPLUS | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. |
| Reset value | 0 | 0 | 0 | ||||||||||||||||||||||||||||||
| 0x104 | SBS_FPUIMR | 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. | FPU_IE[5:0] | |||||
| Reset value | 1 | 1 | 1 | 1 | 1 | 1 | |||||||||||||||||||||||||||
| 0x108 | SBS_MESR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | IPMEE | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | MCLR |
| Reset value | 0 | 0 | |||||||||||||||||||||||||||||||
| 0x110 | SBS_CCCSR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | RDY2 | RDY1 | Res. | Res. | Res. | Res. | CS2 | EN2 | CS1 | EN1 |
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||
| 0x114 | SBS_CCVALR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | APSRC2 [3:0] | ANSRC2 [3:0] | APSRC1 [3:0] | ANSRC1 [3:0] | ||||||||||||
| Reset value | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | |||||||||||||||||
| 0x118 | SBS_CCSWCR | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | Res. | SW_APSRC2 [3:0] | SW_ANSRC2 [3:0] | SW_APSRC1 [3:0] | SW_ANSRC1 [3:0] | ||||||||||||
| Reset value | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 1 | 1 | 0 | 0 | 0 | |||||||||||||||||
| 0x120 | SBS_CFGR2 | 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. | ECCL | PVDL | SEL | CLL |
| Reset value | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||||
| 0x124 to 0x140 | Reserved | Reserved | |||||||||||||||||||||||||||||||
| 0x144 | SBS_CNSLCKR | 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. | LOCKNSMPU | LOCKNSVTOR |
| Reset value | 0 | 0 | |||||||||||||||||||||||||||||||
| 0x14C | SBS_ECCNMIR | 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. | ECCNMI_MASK_EN |
| Reset value | 0 | ||||||||||||||||||||||||||||||||
Refer to Section 2.2 for the register boundary addresses.