Updating the Bootloader

A Bootloader is a small piece of code that runs (normally just for a few seconds) when an autopilot is powered on. One of the bootloader’s primary responsibilities is to allow easy upgrading of the main firmware (i.e. ArduPilot)

Nearly all autopilots ship with a bootloader pre-installed and most users will never need to upgrade it but there are some advantages to upgrading to the latest ArduPilot specific bootloader:

  • Bug fixes like the “Parameter Reset” issue fix included with Copter-4.0.4, Plane-4.0.6

  • The COM port name may be more recognisable. For example it may include “ArduPilot”

Warning

Updating the bootloader can potentially “brick” the board (i.e. make it unresponsive and unable to upload new firmwares). Be careful not to power down the autopilot during the update process

Where can I download the latest bootloader?

The ArduPilot specific bootloader is included within the ArduPilot firmware but it lies dormant by default. A special command must be sent to the main ArduPilot firmware to install the new bootloader.

../_images/bootloader-file-description.png

Note

some autopilots with 1MB of flash do NOT have the bootloader included to save flash and the following attempts to upgrade from the firmware will result in a failure message in Mission Planner or Mavproxy. In those cases, you will need to flash the xxxx_bl.hex firmware for the autopilot using DFU as explained in Loading Firmware onto boards without existing ArduPilot firmware as if it did not already have ArduPilot firmware loaded.

Upgrading using Mission Planner

  • Install a recent version of ArduPilot to the autopilot (with existing ArduPilot firmware, without existing ArduPilot firmware)

  • Connect and check that the autopilot has at least 20k of free memory. Open the Data screen’s Quick tab, double click on any entry and the select “freemem”.

    ../_images/bootloader-update-MP-memory-check.png
  • Open the Setup >> Install Firmware page and press the “Bootloader Update” button

    ../_images/bootloader-update-MP.png
  • Reboot the autopilot

Upgrading using QGC

The process is similar to using Mission Planner (see above) except the “Flash ChibiOS Bootloader” button is found on the Configuration (Gear icon), Firmware page

../_images/bootloader-update-QGC.png

Upgrading with MAVProxy

  • In the MAVProxy terminal, type, “flashbootloader”

Extra Information