This repo is for the bootloader that used by QingStation. Details in QingStation project (root) and QingStation firmware (application)
It is based on RT-Thread Nano and stm32-bootloader.
The current function is very basic, and is modified from the stm32-bootloader's example project. It can copy the binary file from SD card to application section. It also validate the OTA firmware and copy OTA to application once required by application.
The application offset is 0x10000
, 64kB
.
The OTA firmware is located to the second blank (another half) of the flash memory and it will be upgrade from the application (throught MQTT).
See OTA doc and QingStation firmware (application) for more detail.
Currently no CRC checksum.
Information also printed through the uart in the debugging port (UART3), baud rate = 115200
.
How to use:
- Insert SD card and press
BTN
and reset the device. (Blue and Red LED on for1
sec) - When BLUE flashing, release the
BTN
, will searchrtthread.bin
in SD card's root folder. (<4
sec)
During updating, RED on means erasing flash, RED on + BLUE flashing means programming.
After updating, RED off, BLUE flashing means booting up the Application.
Keep pressing
BTN
over4
second will enter STM32 system bootloader
Please refer to QingStation project (root)