4. Boot modes
At startup, a BOOT0 pin and NSBOOTADD[31:8] option bytes are used to select the boot memory address that includes:
- • Boot from any address in user Flash memory
- • Boot from system memory
- – Bootloader
- – Debug authentication library (ST-DA)
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_STATE | BOOT0 pin | Boot address option-byte selection | Boot area | ST programmed default value |
|---|---|---|---|---|
| Open | 0 | NSBOOTADD[31:8] | Boot address defined by user option byte NSBOOTADD[31:8] | Flash: 0x0800 0000 |
| 1 | NA | Bootloader | Bootloader | |
| Provisioning | x | NA | Bootloader | Bootloader |
| Provisioned, closed, locked | x | NSBOOTADD[31:8] | Boot address defined by user option byte NSBOOTADD[31:8] | Flash: 0x0800 0000 |