Skip to content
This repository has been archived by the owner on May 27, 2022. It is now read-only.

PX4 Firmware Build

Gajendra Nagar edited this page Jul 27, 2018 · 1 revision

Building Firmware

Environment Setup

git clone -b the_roc https://github.com/gajena/Firmware
cd Firmware
make posix jmavsim # sanity check for all dependencies

Building and Uploading for Autopilot Hardware

To build for NuttX- or Pixhawk- based boards, navigate into the Firmware directory and then call make with the build target for your board.

Note In the example below the first part of the build target px4fmu-v4 is the autopilot hardware version and default is the configuration name (in this case the "default" configuration). All PX4 build targets follow this logic).

For example, to build for Pixracer you would use the following command:

cd Firmware
make px4fmu-v4_default

The following list shows the build commands for common boards:

Uploading Firmware (Flashing the board)

Append upload to the make commands to upload the compiled binary to the autopilot hardware via USB. For example

make px4fmu-v4_default upload

A successful run will end with this output:

Erase  : [====================] 100.0%
Program: [====================] 100.0%
Verify : [====================] 100.0%
Rebooting.

[100%] Built target upload

For more deatails: click here!