How kiko283/mbed-os-fota-bootloader works
This is a minimal Mbed OS FOTA bootloader. The external actor is the separate main application: it downloads firmware and stages it in SPI flash, then restarts the device. On boot, main.cpp compares staged and current version metadata, copies an available image into MCU flash, records the new version, and starts the application. README documents the staging responsibility and hardware; sampled implementation is limited to main.cpp, so the graph omits the separate application's internal workflow.
Main entry points: main.cpp SPI flash
Components 9
Bootloader control
- Boot entry
main.cpp - Update check
main.cpp - Flash update
main.cpp - Application start
main.cpp
Firmware storage
- Staged firmware
main.cpp - Version metadata
main.cpp
Other components
- Main application
Connections 13
- Main application → SPI flash: stages image
- Main application → Version metadata: writes version
- Boot entry → SPI flash: initializes
- Boot entry → Update check: calls
- Boot entry → Flash update: calls if needed
- Boot entry → Application start: starts
- Update check → SPI flash: reads metadata
- Update check → Version metadata: compares
- Flash update → SPI flash: reads image
- SPI flash → Staged firmware: stores
- Flash update → MCU flash: erases and writes
- Flash update → Version metadata: updates current version
- Application start → Main application: jumps to application