KittenBot / uf2-meowbit

bootloader for meowbit based on https://github.com/mmoskal/uf2-stm32f
Other
13 stars 7 forks source link

UF2 Bootloaders for STM32

This implements USB mass storage flashing using UF2 format

Big Notice

You may get the latest compiled bootloader flasher from release page: https://github.com/KittenBot/uf2-meowbit/releases/

or from our web site download page: https://cdn.kittenbot.cn/meowbit/meowbit-flasher.uf2

And you may go into spi-flash mode by holding the left button during reset.

The internal spi-flash will mount as a thumb disk, format it or copy anything you like to it.

Static resource and firmware

Build instructions

To build just run make in this folder. This will fetch git submodules if needed and build libopenocm3 (which only happens once).

The binaries will be in build/BOARDNAME. The following files will be built:

Adding board

Start from f401 (for 64 pin package) or f401c (for 48 pin package) generic board. Copy the folder and modify board.h, follow instructions at https://arcade.makecode.com/hardware/adding#generating-bootloader

License

License: LGPL for libopencm3, BSD for what was left of the PX4 bootloader (see LICENSE.md), MIT for the UF2 stuff, and ISC for the bits from dapboot.

Credits

This repo was forked from https://github.com/PX4/Bootloader

It contains small bits from https://github.com/devanlai/dapboot, mostly the WebUSB, that has been heavily modified though.

The UF2 stuff was mostly lifted from https://github.com/Microsoft/uf2-samdx1 by way of (non-working) https://github.com/Microsoft/uf2-nrf5

The dmesg subsystem is adapted from https://github.com/lancaster-university/codal-core