Skip to content

PX4 Bootloader Flashing onto Betaflight Systems

This page documents how to flash the PX4 bootloader onto boards that are already flashed with Betaflight (e.g. OmnibusF4 SD or Kakute F7).

There are three tools that can be used to flash the PX4 bootloader: Betaflight Configurator, dfu-util command line tool, or the graphical dfuse (Windows only).

The Betaflight Configurator is easiest, but newer versions may not support non-betaflight bootloader update. You might try it first, but use the other methods if firmware update does not work. 飞控板上电后可以放开该按钮。

Betaflight Configurator Bootloader Update

Betaflight Configurator may not support PX4 Bootloader update, as of May 2023. Older versions should work, though the precise versions are not known. 飞控板上电后可以放开该按钮。

To install the PX4 bootloader using the Betaflight Configurator:

  1. Download or build bootloader firmware for the board you want to flash.
  2. 下载适用于您平台的 Betaflight 配置器


If using the Chrome web browser, a simple cross-platform alternative is to install the configurator as an extension from here. 飞控板上电后可以放开该按钮。

  1. 将飞控板连接到 PC 并启动 Betaflight 配置器。
  2. Press the Load Firmware [Local] button Betaflight 配置器-本地固件
  3. 从文件系统中选择 bootloader 二进制文件,然后烧写进飞控板的 flash。

现在,您应当可以在飞控板上安装 PX4 固件了。

DFU Bootloader Update

This section explains how to flash the PX4 bootloader using the dfu-util or the graphical dfuse tool (Windows only).

You will first need to download or build bootloader firmware for the board you want to flash (below, this is referred to as <target.bin>).

All of the methods below are safe as the STM32 MCU cannot be bricked! DFU 不会被烧写覆盖,并且总是允许安装新固件,即便烧写失败。 飞控板上电后可以放开该按钮。

DFU mode

Both tools require the board to be in DFU mode. 要进入 DFU 模式, 当将 USB 连接到电脑时按住启动按钮。 The button can be released after the board has powered up.


The Holybro Kakute H7 v2 and mini flight controllers may require that you first run an additional command to erase flash parameters (in order to fix problems with parameter saving):

dfu-util -a 0 --dfuse-address 0x08000000:force:mass-erase:leave -D build/<target>/<target>.bin

The command may generate an error which can be ignored. Once completed, enter DFU mode again to complete the regular flashing. 飞控板上电后可以放开该按钮。

To flash the bootloader onto the flight controller:

dfu-util -a 0 --dfuse-address 0x08000000 -D  build/<target>/<target>.bin



The dfuse manual can be found here:

Use the tool to flash the <target>.bin file.

Bootloader Firmware

The tools above flash pre-built bootloader firmware. Bootloader firmware can be built for most targets using the normal PX4 source code, while other targets can only be build using source in the bootloader repository.

Flight controllers that have bootloader PX4-Autopilot make targets, can build the bootloader from the PX4-Autopilot source. The list of controllers for which this applies can be obtained by running the following make command, and noting the make targets that end in _bootloader

$make list_config_targets


To build for these flight controllers, download and build the PX4-Autopilot source, and then make the target using the following commands:

git clone --recursive
cd PX4-Autopilot
make <target> # For example: holybro_kakuteh7mini_bootloader

For other flight controllers download the PX4/Bootloader repository and build the source code using the appropriate targets:

git clone --recursive
cd Bootloader
make <target> # For example: omnibusf4sd_bl or kakutef7_bl

重新安装 Beatflight 固件

In order to switch back to Betaflight:

  1. Backup the PX4 parameters. You can do this by exporting them to an SD card.
  2. Keep the bootloader button pressed while attaching the USB cable
  3. Flash Betaflight as usual with the Betaflight-configurator