Giter Site home page Giter Site logo

luftboot's Introduction

Luftboot

This software is part of the Paparazzi UAV Project.

Luftboot is the bootloader for stm32 based autopilots to enable upgrading the autopilot firmware using usb. It implements the dfu standard.

Luftboot is based on the usbdfu bootloader implementation by Gareth McMullin for the Black Magic Probe project (http://www.blacksphere.co.nz/main/blackmagic).

Building

Call 'make' inside the src directory.

Luftboot needs libopencm3 and an appropriate arm-none-eabi gcc cross compiler. If you don't have these in your PATH, specify them with e.g.

make LIBOPENCM3=path/to/libopencm3 PREFIX=path/to/bin/arm-none-eabi

By default, Luftboot uses a 12MHz external clock to PLL it to 72MHz. If no external clock is available, or for any other reason, one can build Luftboot to use the 8MHz internal RC oscillator to PLL it to 48MHz. Call make as follows from inside ./src:

make LUFTBOOT_USE_48MHZ_INTERNAL_OSC=1

Startup sequence

At bootup, Luftboot uses several criteria (in this order) to decide whether to jump to the payload or to initiate the bootloader:

  • On boot, if the payload is NOT valid, start the bootloader
  • If the flag is set indicating we just downloaded a payload, jump to payload
  • If the payload is forcing the bootloader (using GPIO state after core-only reset) start the bootloader
  • If the ADC2 pin on Lisa/M is grounded, jump to payload (i.e. "skip bootloader" jumper)
  • If voltage is present on the USB vbus, start the bootloader
  • Otherwise, jump to payload

luftboot's People

Contributors

esden avatar flixr avatar gsmcmullin avatar scdwyer avatar

Watchers

James Cloos avatar

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.