Coder Social home page Coder Social logo

uf2-chibios's Introduction

UF2-ChibiOS Bootloader for STM32H7

This bootloader implements firmware updating via USB mass storage using the UF2 format. It uses ChibiOS HAL and OS. It currently supports the STM32H7 microcontroller on the Striso board and the ST-Nucleo-H743ZI, and should be easy to port to other boards and microcontrollers.

This bootloader is developed for the Striso board MPE MIDI controller, and borrows parts from the STM32F UF2 bootloader.

Features

  • Easy firmware flashing without extra software or hardware, using any device that supports USB flash drives.
  • Enter bootloader by holding button on power-up, or enter through soft boot from main firmware.
  • INFO_UF2.TXT file containing the current bootloader git revision.
  • INFO_FW.TXT file containing the current firmware version (should be at the start of the firmware binary, see Striso control firmware repository for details)
  • CONFIG.UF2 and CONFIG.HTM for firmware settings (loaded from firmware).
  • Protected flash sector for storing device specific information.
  • Failsafe mode for when there are flash ECC errors, started by pressing an extra button on boot.
  • CF2 and WebUSB are currently not implemented.

Build instructions

Init submodules.

To build run make -f make/BOARDNAME.make in this folder.

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

  • bootloader.elf - for use with SWD/JTAG adapters
  • bootloader.bin - for direct onboard upgrading
  • flasher.uf2 - if you already have a UF2 bootloader, you can just drop this on board and it will update the bootloader

Adding boards

It should be relatively easy to port this bootloader to other boards and microcontrollers supported by ChibiOS. Note that the board.c file needs to have a call to pre_clock_init() for the bootloader jump. Also note that for the bootloader to work there need to be multiple flash sectors available, so the STM32H7 value line with only 1 sector of 128kB is not supported.

uf2-chibios's People

Contributors

pierstitus avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

skylin008

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.