Universal stm32 boot written using zig,Compatible with RT-Thread stm32-Bootloader.
- Serial port log output
- jump to app
- chip-flash manage
- flash partition abstraction layer(Compatible with FAL)
- The whole package upgrade
- Support L4 series
- Firmware crc check
- Firmware decompression(fastlz)
- Support spi nor flash
- Basic zboot Tool
- Support H7 series (no xip)
- Support H7 series (XIP Flash)
- Support differential upgrade
- zboot Tool
zig build
Depends on zig-0.13.0
- Run
zboot boot
to generate stm32-zboot.bin and config.json in the current directory. - Edit
config.json
to adapt to your hardware. - Run
zboot boot
again, and the stm32-zboot.bin will be generated by config.json.
- Prepare a normal project for your hardware.
- Adjust the starting address of your project's ROM or linker script
- Adjust the interrupt vector address.
- Compile and download the project. After reset, zboot will automatically load this application.
- Configure the project to generate bin file.
- Run
zboot rbl xxx.bin Vx.x
to package the bin file as an upgrade file xxx.bin.rbl.
- Transfer the xxx.bin.rbl file to swap partition in config.json (Support on-chip flash and SPIflash).
- Reset the system, then zboot will automatically complete the application upgrade.