Skip to content

Instantly share code, notes, and snippets.

@tstellanova
Last active March 27, 2020 22:48
Show Gist options
  • Save tstellanova/52accc359e473607209798227e430ecd to your computer and use it in GitHub Desktop.
Save tstellanova/52accc359e473607209798227e430ecd to your computer and use it in GitHub Desktop.
Install bootloader on PX4 (Durandal) using debug probe

With Black Magic Probe, ST-Link, J-Link, or Zubax Dronecode probe

  • Attach dronecode probe to Durandal flight controller hardware
  • From PX/Firmware directly, build bootloader image:
# Build bootloader image
make holybro_durandal-v1_bootloader
# Install and run bootloader:
cd ./build/holybro_durandal-v1_bootloader
cat > loader.gdb
tar ext /dev/cu.usbmodemBFDA9CEB1
mon swdp_scan
attach 1
load
r

then arm-none-eabi-gdb -x loader.gdb holybro_durandal-v1_bootloader.elf

Alternative

If you have USB connected: make holybro_durandal-v1_bootloader upload

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment