on 2020-08-12 06:32 AM
STM32 Series | Empty check | Arm Cortex® |
STM32 F0 | M0 | |
STM32 F1 | M3 | |
STM32 F2 | M3 | |
STM32 F3 | M4 | |
STM32 F4 | M4 | |
STM32 F7 | M7 | |
STM32 L0 | M0+ | |
STM32 L1 | M3 | |
STM32 L4 | M4 | |
STM32 L5 | M33 | |
STM32 H7 | M7/M4 | |
STM32 G0 | M0+ | |
STM32 G4 | M4 | |
STM32 WB | M4/M0+ |
Tip: On devices with nSWBOOT0 or nBOOT_SEL option bit (like STM32WB, STM32L4, STM32G0) it is possible to force boot from Main flash by using nBOOT0 option bit instead of BOOT0 pin.This can be achieved by following Option byte configuration:
|
(edit: thanks for fixing typo)
Let's try invoke the author, maybe he will fix it @Martin HUBIK
@Martin HUBIK Any chance this could be updated for the recent additions? In particular the U5, H5 and C0 series, but I think there are others.
There's an additional mechanism in STM32 which are not in the list above and which indeed don't primarily check FLASH to be empty, but have dual-bank FLASH, e.g. 'G4 - if the BLB2 option bit is set (i.e. boot from bank 2 selected, and this is NOT the default setting) and all other bits and pins are set to boot from user FLASH, the bootloader is still entered if neither FLASH contains valid code.
In the 'G4 RM0440, this fact is not contained in the Boot modes table, but is somewhat hidden in the following narrative, so it's relatively easy to miss.