Video thumbnail for STM32 Custom Bootloader (Part 2): Bootloader Validation & Entry Logic

STM32 Custom Bootloader (Part 2): Bootloader Validation & Entry Logic

Dec 27, 2025
ControllersTech Logo

ControllersTech

Build a *reliable STM32 bootloader* that validates the application before jumping to it, using a magic number and reset handler check to make sure valid firmware is present. In this tutorial, we continue the STM32 custom bootloader series and add *application validation* to the bootloader. We create a dedicated application header, place it at a fixed Flash address using the linker script, and store a magic number that the bootloader can check before executing the application. The bootloader reads the application header, verifies the magic number, checks that the application's reset handler points to a valid Flash address, and only then transfers control to the application. We also explain why the application should be flashed using an ELF or HEX file so that the header and application sections are placed at their correct Flash addresses. #STM32 #STM32Bootloader #EmbeddedSystems #Bootloader šŸ“ *Download Project Files & Full Article:* https://controllerstech.com/stm32-bootloader-application-validation/ šŸ“ *STM32 Tutorials:* https://controllerstech.com/stm32-tutorials/ šŸ“ *ControllersTech Home:* https://controllerstech.com/ ### ā–¶ļøŽ Related Videos 1ļøāƒ£ *STM32 Custom Bootloader – Part 1:* https://youtu.be/fRrAiKU7FzU 2ļøāƒ£ *CRC Based Application Validation:* https://youtu.be/8-HSYugyeA8
#Science