4. Boot modes

At startup, a BOOT0 pin and NSBOOTADD[31:8]/SECBOOTADD[31:8] option bytes are used to select the boot memory address that includes:

Embedded bootloader

The embedded bootloader is located in the system memory, programmed by ST during production. It is used to reprogram the flash memory by using USART, I2C, I3C, SPI, FDCAN, or USB_FS in device mode through the DFU (device firmware upgrade).

Refer to AN2606 “Introduction to system memory boot mode on STM32 MCUs”.

Embedded root security services (RSS)

The embedded RSS is located in the secure information block, programmed by ST during production.

Refer to AN4992 “Introduction to secure firmware install (SFI) for STM32 MCUs”.

Embedded immutable root of trust (STiRoT)

The embedded STiRoT in the system memory, is programmed by ST during production. STiRoT is the immutable root of trust managing the secure boot and secure install of the first updatable level to execute in a boot sequence.

Refer to AN6007 “Getting started with STiRoT (ST immutable Root of Trust) for STM32H5 MCUs”.

Embedded debug authentication (ST-DA)

The embedded ST-DA in the system memory, is programmed by ST during production. ST-DA is the library that manages the debug authentication protocol by allowing to securely reopen the debug or to launch regressions on secured products in the field.

Refer to AN6008 “Getting started with debug authentication (DA) for STM32 MCUs”.

4.1 STM32H523/43/62/63xx boot modes

Table 25 and Table 26 provide the detail of the boot mode when the TrustZone is, respectively, disabled (TZEN = 0xC3) and enabled (TZEN = 0xB4).

Table 25. Boot mode when TrustZone is disabled (TZEN = 0xC3) -
STM32H523/43/62/63xx devices

PRODUCT_STATEBOOT0 pinBoot address
option-byte selection
Boot areaST programmed
default value
Open0NSBOOTADD[31:8]Boot address defined
by user option byte
NSBOOTADD[31:8]
Flash: 0x0800 0000
1NABootloaderBootloader
ProvisioningxNARSSRSS
Provisioned, Closed,
Locked
xNSBOOTADD[31:8]Boot address defined
by user option byte
NSBOOTADD[31:8]
Flash: 0x0800 0000

Table 26. Boot mode when TrustZone is enabled (TZEN = 0xB4) -
STM32H523/43/62/63xx devices

PRODUCT_STATEBOOT0 pinBoot address
option-byte selection
Boot areaST programmed
default value
Open0SECBOOTADD[31:8]Boot address defined by
user option byte
SECBOOTADD[31:8]
Flash: 0x0C00 0000
1NABootloaderBootloader
ProvisioningxNARSSRSS
Provisioned,
TZ_Closed,
Closed, Locked
xSECBOOTADD[31:8]Boot address defined by
user option byte
SECBOOTADD[31:8]
Flash: 0x0C00 0000

Note: The BOOT_UBE is available only on STM32H533/53/73xx devices. Refer to Section 4.2.

When TrustZone is enabled (TZEN = 0xB4), the boot space must be in secure area. The SECBOOTADD0[24:0] option bytes are used to select the boot secure memory address. A unique boot entry option can be selected by setting the SECBOOT_LOCK option bit.

4.2 STM32H533/53/73xx boot modes

Table 27 and Table 28 provide the detail of the boot mode products when the TrustZone is, respectively, disabled (TZEN = 0xC3) and enabled (TZEN = 0xB4).

Table 27. Boot mode when TrustZone is disabled (TZEN = 0xC3) -
STM32H533/53/73xx devices

PRODUCT_STATEBOOT0 pinBOOT_UBE
FLASH_OPTSR
[29:22]
Boot address
option-byte
selection
Boot areaST programmed
default value
Open0NANSBOOTADD[31:8]Boot address
defined by user
option byte
NSBOOTADD[31:8]
Flash: 0x0800 0000
1NANABootloaderBootloader
ProvisioningxNANARSSRSS
Provisioned,
Closed, Locked
xNANSBOOTADD[31:8]Boot address
defined by user
option byte
NSBOOTADD[31:8]
Flash: 0x0800 0000

Table 28. Boot mode when TrustZone is enabled (TZEN = 0xB4) -
STM32H533/53/73xx devices

PRODUCT_STATEBOOT0 pinBOOT_UBE
FLASH_OPTSR
[29:22]
Boot address
option-byte
selection
Boot areaST programmed
default value
Open0xSECBOOTADD
[31:8]
Boot address defined
by user option byte
SECBOOTADD[31:8]
Flash: 0x0C00 0000
10xB4NABootloaderBootloader
10xC3NASTiRoTSTiRoT
ProvisioningxNANARSSRSS
Provisioned,
TZ_Closed, Closed,
Locked
x0xC3STiRoTSTiRoTSTiRoT
0xB4SECBOOTADD
[31:8]
Boot address defined
by user option byte
SECBOOTADD[31:8]
Flash: 0x0C00 0000

When TrustZone is enabled (TZEN = 0xB4), the boot space must be in a secure area. The SECBOOTADD[24:0] option bytes are used to select the boot secure memory address. A unique boot entry option can be selected by setting the SECBOOT_LOCK option bit.