Porting Guide¶
Adding a new MCU target requires implementing six driver modules and one configuration header. The bootloader core (src/main_app.c) does not need modification.
Steps at a Glance¶
- Copy
hw/STM32_TEMPLATE/tohw/<YOUR_TARGET>/ - Fill in
Core/Inc/bl_hw_config.hwith your MCU's memory map and timing constants - Implement the six driver modules in
Core/Bl_drv_interface/ - Write
Core/Src/main.c— the hardware entry point - Add a linker script and toolchain file
- Add a
CMakeLists.txtfollowing the existing target pattern
| Page | Contents |
|---|---|
| Hardware Drivers | Full interface specification for all six driver modules |
| Configuration Reference | Every constant in bl_hw_config.h explained |