4. Boot modes

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

When boot from user Flash is selected, the boot address is defined by NSBOOTADD. This address can be locked thanks to NSBOOT_LOCK.

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 in device mode through the DFU (device firmware upgrade).

Refer to the application note STM32 microcontroller system memory boot mode (AN2606).

Embedded debug authentication (ST-DA)

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

The ST-DA can be launched from ST tools (STM32CubeProgrammer or IDEs). An authentication password should be used for debug authentication in order to launch a full regression of the product.

4.1 STM32H503 boot modes

The table below provides the detail of the boot mode for the STM32H503 devices.

Table 8. STM32H503 boot modes

PRODUCT_STATEBOOT0 pinBoot address option-byte selectionBoot areaST programmed default value
Open0NSBOOTADD[31:8]Boot address defined by user option byte NSBOOTADD[31:8]Flash: 0x0800 0000
1NABootloaderBootloader
ProvisioningxNABootloaderBootloader
Provisioned, closed, lockedxNSBOOTADD[31:8]Boot address defined by user option byte NSBOOTADD[31:8]Flash: 0x0800 0000