Skip to content

Compiling and Uploading Code

adrnp edited this page Apr 10, 2015 · 5 revisions

Windows

Following the compile and upload steps here

Console

This is for Mac, Linux and Windows using the PX4 console. Please follow the following steps:

  1. Navigate to your Firmware directory

  2. Build the archives (this only needs to be done your first time) make distclean make archives

  3. make the code: make px4fmu-v2_aa241x

  4. Upload the code: make upload px4fmu-v2_aa241x

Some notes on building the code:

  • you should never have to remake the archives, for you Windows folks it may take a while to make the archives so thankfully that only needs to be done once

  • when you simply modify code in the existing files, you simply need to rerun make upload px4fmu-v2_aa241x if you want to immediately upload the updates. If you simply want to check to see if you added no errors, run make px4fmu-v2_aa241x

  • If you have added files to the code, you must clean the directory before you rebuild the firmware, so you will need to execute the following: make clean make px4fmu-v2_aa241x (or make upload if you want to upload immediately)

Clone this wiki locally