/QingStation-bootloader

Bootloader for QingStation

Primary LanguageCApache License 2.0Apache-2.0

QingStation-bootloader

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.

Basic

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 for 1 sec)
  • When BLUE flashing, release the BTN, will search rtthread.bin in SD card's root folder. (<4sec)

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 over 4 second will enter STM32 system bootloader

Contact

Please refer to QingStation project (root)