-
Notifications
You must be signed in to change notification settings - Fork 1
Compiling and Uploading Code
Following the compile and upload steps here
This is for Mac, Linux and Windows using the PX4 console. Please follow the following steps:
-
Navigate to your Firmware directory
-
Build the archives (this only needs to be done your first time)
make distclean make archives -
make the code:
make px4fmu-v2_aa241x -
Upload the code (do not plug in the pixhawk until instructed to do so by the build process)
Run the following to begin the compiling and upload process
make upload px4fmu-v2_aa241xOnce the code has been built you should see the following, which will indicate you should plug in your pixhawk to your computer:
Loaded firmware for 9,0, waiting for the bootloader... Found board 9,0 bootloader rev 3 on /dev/tty.usbmodem1
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_aa241xif 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)