How youssef-fd/stm32f429-bootloader works
This repository contains two independent STM32F429 firmware images: a reset-time bootloader and a demo application. The principal workflow is bootloader initialization and UART status reporting, a user-button decision that can hold execution in the loader, then a reset-state handoff to the application, which runs its LED demo. The map includes the documented CRC and application-version capabilities. The README supports the handoff and flash-layout relationships; source excerpts are partial, so unsampled application behavior is represented only as documented.
Main entry points: Src/main.c Boot sequence · Src/main.c Application demo · stm32f429i_discovery.c Board button and LEDs · stm32f4xx_hal.h STM32 HAL
Components 11
Bootloader
- Boot sequence
Stm32f429_Bootloader/Core/Src/main.c - Button override
Stm32f429_Bootloader/Core/Src/main.c - Application handoff
Stm32f429_Bootloader/Core/Src/main.c - CRC readiness
Stm32f429_Bootloader/Core/Src/main.c
Demo application
- Application demo
Stm32f429_Application/Core/Src/main.c - Application version
Stm32f429_Application/Core/Src/main.c
Board and hardware
- Flash image regions
- USART1 terminal
- Board button and LEDs
Stm32f429_Application/Drivers/BSP/STM32F429I-Discovery/stm32f429i_discovery.c - STM32 HAL
Stm32f429_Application/Drivers/STM32F4xx_HAL_Driver/Inc/stm32f4xx_hal.h
Other components
- Reset
Connections 15
- Reset → Boot sequence: starts
- Boot sequence → USART1 terminal: logs status
- Boot sequence → Board button and LEDs: checks button
- Board button and LEDs → Button override: button state
- Button override → Application handoff: launches if released
Stm32f429_Bootloader/Core/Src/main.c - Button override → USART1 terminal: reports hold
- Boot sequence → Application handoff: dispatches
Stm32f429_Bootloader/Core/Src/main.c - Application handoff → Application demo: jumps to reset handler
- Application handoff → Flash image regions: reads app vector
- Flash image regions → Application demo: stores image at offset
- Application demo → USART1 terminal: logs demo
- Application demo → Board button and LEDs: blinks LED
- Application demo → Application version: exposes version
Stm32f429_Application/Core/Src/main.c - Boot sequence → CRC readiness: enables peripheral
Stm32f429_Bootloader/Core/Src/main.c - Boot sequence → STM32 HAL: initializes HAL
Stm32f429_Bootloader/Core/Src/main.c