For the complete documentation index, see llms.txt. This page is also available as Markdown.

Firmware Recovery

Procedures to resolve firmware-related issues

Recovery may be necessary if a firmware update fails or incompatible firmware is loaded.

Attempt flashing the bootloader via SWD port if the Cube is:

  • Not showing up as a USB device at all

  • Showing up as a single USB Serial Device

  • Displaying an error related to firmware

Prerequisites

  • J-Link device (i.e. EDU Mini V2) or similar

  • J-Link Adapter Board and 6-pin JST SUR plug for SWD port

  • “J-Link Software and Documentation Pack” (segger.com/downloads/jlink/)

  • Download latest “arducopter_with_bl.hex” for your flight controller from firmware.ardupilot.org (or other vehicle type of your choice).

  • De-cased Carrier Board

    • Remove 4x Phillips head mounting Cube onto Carrier Board.

    • Remove 4x Phillips head from side of housing.

    • Remove 4x 1.5mm hex head from base of housing.

    • Press in plastic clips and gently separate the two parts of the housing.

Procedures

  1. Plug J-Link into the left port on the Carrier Board.

  1. Connect J-Link to PC over USB.

  2. Open J-Flash Lite (JFlashLite.exe).

  3. Use the following parameters, changing the target device according to the table:

Board
Target device

CubeOrange+

STM32H757XI_M7

CubeOrange

STM32H753XI

  1. Click OK.

  2. Plug the Cube into USB (for power) and immediately click Erase Chip.

  1. Click the button under Data File and open the arducopter_with_bl.hex file

  2. Click Program Device.

  3. Check the log for the following output:

  1. Unplug the Cube's USB port and Carrier Board's SWD port.

  2. Plug USB into the Cube and verify connectivity with Mission Planner.

Check the version matches the .hex file flashed. You should now be able install firmware using Mission Planner.

Last updated

Was this helpful?