Skip to content

PX4 bootloader guide

Andre Wong edited this page Jan 3, 2021 · 4 revisions

Perquisite's

  1. arm-none-eabi-gcc installed

Compiling

Steps:

  1. run git clone git@github.com:nusrobomaster/PX4-Bootloader.git --recursive
  2. cd PX4-Bootloader to enter directory
  3. run make robomaster_dev_a_bl for dev board A bootloader or make robomaster_dev_c_bl for dev board C bootloader
  4. cd build and then cd into robomaster_dev_x_bl, there should be a robomaster_dev_x_bl.bin file inside (x can be either a or c)

Flashing

Dev board A

Steps:

  1. TODO

Dev board C

Steps:

  1. short the top two pins on the dev board C boot port to enter bootloader mode
  2. connect the usb to the dev board C and then to the computer
  3. in the same directory as the .bin file above, run dfu-util -a 0 --dfuse-address 0x08000000 -D robomaster_dev_x_bl.bin
  4. unplug the usb from the computer, then unplug the jumper wire

At this point the dev board should boot into the bootloader when the usb is plugged in and the jumper wire is not need after this

  • Dev board C should be blinking blue