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

13.3 SBS functional description

13.3.1 SBS block diagram

The figure below shows the SBS block diagram, including the four main functions:

Figure 45. SBS block diagram

SBS block diagram showing internal components and signal flow.

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.

SBS block diagram showing internal components and signal flow.

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 nameTypeDescription
SBS_BOOT_PINInputSelect booting on user flash memory or bootloader
sbs_boot_addressesList of addresses defined by the flash memory:
– BOOT_ADDR_NS: boot address
sbs_product_stateSignal 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_reqLaunch the debug authentication protocol when booting.
Table 79. SBS internal input/output signals (continued)
Signal nameTypeDescription
sbs_init_vtor_nsOutputVector address for Cortex-M33
sbs_hdplHDPL (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_unlockedControl the Cortex-M33 access port.
sbs_dbg_unlockedUnlock the debug (when set to 1) for the Cortex-M33
sbs_dbg_statePopulate the debug state of the flash memory with OPEN (0xB4), CLOSE_SEC (0x8A), or CLOSE (0x51).
sbs_dbg_resetInputReset 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 Block diagram of Compensation cell management showing the flow from SBS_CCCSR to a multiplexer and then to the Compensation cell.

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.

Block diagram of Compensation cell management showing the flow from SBS_CCCSR to a multiplexer and then to the Compensation cell.

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:

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

Figure 47: Compensation cell use graph showing Compensation code (Slow to Fast) on the vertical axis versus Voltage on the horizontal axis with marked points 1.71, 2.0, 2.2, 2.7, and 3.3. MSv69111V2
Figure 47: Compensation cell use graph showing Compensation code (Slow to Fast) on the vertical axis versus Voltage on the horizontal axis with marked points 1.71, 2.0, 2.2, 2.7, and 3.3. MSv69111V2

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:

Figure 48. SBS boot control

Figure 48: SBS boot control block diagram showing inputs and outputs between Flash memory, Debug control, SBS (Boot control, HDPL counter), and Cortex-M33. MSv69919V1
Figure 48: SBS boot control block diagram showing inputs and outputs between Flash memory, Debug control, SBS (Boot control, HDPL counter), and Cortex-M33. MSv69919V1

The boot configurations are selected considering the product settings:

The boot control logic sets the following data:

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

HDPLCode
00xB4
10x51
20x8A
30x6F
All other values

Table 81. SBS boot logic

InputsOutputs
sbs_product_statesbs_dbg_reqSBS_BOOT_PINsbs_boot_addressessbs_init_vtor_nssbs_hdplsbs_dbg_state (FLASH_STATE)
Any except Locked1xBOOT_DBG_AUTH_ADDx1Depends on PRODUCT_STATE
Open00BOOT_ADDR_NSBOOT_ADDR_NS1OPEN
01START_ADD_BOOT_LOADERx≥1OPEN
Provisioning0xSTART_ADD_BOOT_LOADERx≥1CLOSE
iROT-Provisioned0xBOOT_ADDR_NSBOOT_ADDR_NS1CLOSE
Closed0xBOOT_ADDR_NSBOOT_ADDR_NS1CLOSE
Locked0xBOOT_ADDR_NSBOOT_ADDR_NS1CLOSE

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. 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. 2. SBS selects the ST-DA (debug authentication library) boot address and requests the CPU to be released from reset.
  3. 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. 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

Block diagram of SBS debug control architecture. The SBS block contains a Debug control unit, an HDPL counter, and two authentication blocks: DBG_UNLOCK and DBG_AUTH_HDPL. External components include Flash memory, DBGMCU, and RCC. Signals flow from Flash memory (sbs_product_state) and DBGMCU (sbs_dbg_req, sbs_dbg_reset) to the Debug control. The Debug control outputs sbs_dbg_state to Flash memory, sbs_ap_unlocked to the DAP, and sbs_dbg_unlocked to the Cortex-M33. The HDPL counter outputs sbs_hdpl. A label 'Debug authentication' points to the authentication blocks.
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

Block diagram of SBS debug control architecture. The SBS block contains a Debug control unit, an HDPL counter, and two authentication blocks: DBG_UNLOCK and DBG_AUTH_HDPL. External components include Flash memory, DBGMCU, and RCC. Signals flow from Flash memory (sbs_product_state) and DBGMCU (sbs_dbg_req, sbs_dbg_reset) to the Debug control. The Debug control outputs sbs_dbg_state to Flash memory, sbs_ap_unlocked to the DAP, and sbs_dbg_unlocked to the Cortex-M33. The HDPL counter outputs sbs_hdpl. A label 'Debug authentication' points to the authentication blocks.

Inputs used to control the debug opening

Configuration

Outputs

Table 82. Debug authentication logic

Input signalDebug authentication controlOutput signal
sbs_dbg_statesbs_hdplsbs_dbg_unlocksbs_dbg_auth_hdplsbs_dbg_unlocked
OPEN1xx1
2xx1
3xx1
CLOSEDx0x0
1100
11-1
1120
2111
2121
2130
3111
3121
3131

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

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.INCR_HDPL[7:0]
rwrwrwrwrwrwrwrw

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

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.HDPL[7:0]
rrrrrrrr

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)

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.DBG_AUTH_HDPL[7:0]
rwrwrwrwrwrwrwrw
1514131211109876543210
DBG_UNLOCK[7:0]AP_UNLOCK[7:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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)

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.DBGCFG_LOCK[7:0]
rwrwrwrwrwrwrwrw

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.

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PB8_FMPLUSPB7_FMPLUSPB6_FMPLUS
rwrwrw
1514131211109876543210
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.

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.FPU_IE[5:0]
rwrwrwrwrwrw

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

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.IPMEE
rc_w1
1514131211109876543210
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

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
Res.Res.Res.Res.Res.Res.RDY2RDY1Res.Res.Res.Res.CS2EN2CS1EN1
rrrwrwrwrw

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

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

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
APSRC2[3:0]ANSRC2[3:0]APSRC1[3:0]ANSRC1[3:0]
rrrrrrrrrrrrrrrr
ST logo
ST logo

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

31302928272625242322212019181716
Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
1514131211109876543210
SW_APSRC2[3:0]SW_ANSRC2[3:0]SW_APSRC1[3:0]SW_ANSRC1[3:0]
rwrwrwrwrwrwrwrwrwrwrwrwrwrwrwrw

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

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.ECCLPVDLSELCLL
rwrwrwrw

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.

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.

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.

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.

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.

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.LOCKN
SMPU
LOCKN
SVTOR
rwrw

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.

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

OffsetRegister313029282726252423222120191817161514131211109876543210
0x010SBS_HDPLCRResResResResResResResResResResResResResResResResResResResResResResResResINCR_HDPL[7:0]
Reset value10110100
0x014SBS_HDPLSRResResResResResResResResResResResResResResResResResResResResResResResResHDPL[7:0]
Reset valuexxxxxxxx
0x020SBS_DBGCRResResResResResResResResDBG_AUTH_HDPL[7:0]DBG_UNLOCK[7:0]AP_UNLOCK[7:0]
Reset value000000000000000000000000

Table 83. SBS register map and reset values (continued)

OffsetRegister313029282726252423222120191817161514131211109876543210
0x024SBS_DBGLOCKRRes.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 value10110100
0x028 to 0x030ReservedReserved
0x038 to 0x09CReservedReserved
0x0A4 to 0x0BCReservedReserved
0x0C4 to 0x0FCReservedReserved
0x100SBS_PMCRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.PB8_FMPLUSPB7_FMPLUSPB6_FMPLUSRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.
Reset value000
0x104SBS_FPUIMRRes.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 value111111
0x108SBS_MESRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.IPMEERes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.MCLR
Reset value00
0x110SBS_CCCSRRes.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.Res.RDY2RDY1Res.Res.Res.Res.CS2EN2CS1EN1
Reset value000000
0x114SBS_CCVALRRes.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 value0000000010001000
0x118SBS_CCSWCRRes.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 value0111100001111000
0x120SBS_CFGR2Res.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.ECCLPVDLSELCLL
Reset value0000
0x124 to 0x140ReservedReserved
0x144SBS_CNSLCKRRes.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.LOCKNSMPULOCKNSVTOR
Reset value00
0x14CSBS_ECCNMIRRes.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 value0

Refer to Section 2.2 for the register boundary addresses.