User Tools

Site Tools


misc:hacks:betaflight

This is an old revision of the document!


Betaflight for Crazyflie 2.0

Betaflight was originally an R&D fork fromCleanflight focused on bleeding edge performance improvements/experiments but has since become one of the most popular flight controller firmwares in use today.

One of the hallmark features of the Betaflight/Cleanflight/Baseflight ecosystem is support for an extensible “target” framework which allows the firmware to run on a wide variety of ARM chips/boards. This wiki details the CRAZYFLIE2 target.

Setup Instructions

WARNING: Running Betaflight on the Crazyflie 2.0 is still experimental and in development. There's very low risk of bricking or damaging your hardware (the main STM bootloader is in ROM and can't be erased), but it's recommended you only try this out if you know what you're doing and can accept a bit of risk. Access to JTAG or SWD is highly recommended and may be necessary to re-provision with the stock Crazyflie firmware/bootloader.

Building

TEMPORARY: As of this writing, the changes for the Crazyflie 2.0 target have not been merged back into the Betaflight repo – temporarily working out of a private fork. Intent is to merge into Betaflight ASAP once a few bugs in the latest Betaflight are ironed out.

Execute the following from a bash shell (uses the same toolchain as the crazyflie-firmware project – this can be done on the Bitcraze VM for example)

  1. git checkout cf2
  2. export TARGET=CRAZYFLIE2
  3. make

You should see “betaflight_3.2.0_CRAZYFLIE2.hex” appear in the obj directory of the project.

Flashing

To flash the board, follow the Betaflight flashing instructions.

These instructions call for booting with the BOOT0 pin held high to boot the chip into DFU mode. The Crazyflie can be booted in to DFU mode without needing to short this pin.

misc/hacks/betaflight.1491575652.txt.gz · Last modified: 2017-04-07 16:34 by theseankelly