-
Notifications
You must be signed in to change notification settings - Fork 1
Getting started
PX4 Development Environment Setup for AA241x
Please follow the instructions for your operating system in order to setup the PX4 environment.
-
Download and run the PX4 installer for windows.
Note: if you do not have Java installed, please install Java as it is needed to run Eclipse (comes with installer).
-
In the newly created programs menu, PX4 Toolchain, open up the PX4 Console.
Assuming the toolchain was installed with a default path, this should open you to a console with path /c/px4/
-
Run the following code to download the source code from git:
git clone https://github.com/adrnp/Firmware.git cd Firmware git checkout aa241x git submodule init git submodule update -
Start eclipse downloaded with the toolchain via: Start -> All Programs -> PX4Toolchain -> PX4 eclipse.
it is important you always start eclipse in this way for px4 code development!!!
-
The proposed workspace path is fine, and feel free to check if you don't want to get asked about this every time.
-
To set up the project go to File -> New -> Makefile Project with Existing Code
-
Browse for the folder c:\px4\Firmware (if you downloaded the source code into the default location). Choose Cross GCC for the list of Toolchain for Indexer Settings.
-
On the right hand side of the window open the Make Target tab and press on New Make Target and create the following targets:
-
archives
-
distclean
-
clean
-
px4fmu-v2_aa241x
-
upload px4fmd-v2_aa241x
For those who want to speed up the make process and have a multicore cpu, feel free to instead of px4fmu-v2_aa241x create the target -j4 px4fmu-v2_aa241x where the 4 in -j4 should be changed to be the number of cores you would like to make with.
- That's it for setting up the development environment, please read the source code overview and flashing firmware documents to figure out where it is your code goes and how to get it installed on the pixhawk.
-
Follow these PX4 Build Environment instructions up to the OpenOCD JTAG Adapter section (you do not need to go beyond that point).
-
Follow these PX4 Toolchain Installation instructions up until the Source/Firmware Download instructions.
-
Open a console, make a folder for your source code and download the code from github
mkdir ~/src cd ~/src/ git clone https://github.com/adrnp/Firmware.git cd Firmware git checkout aa241x git submodule init git submodule update -
That's it for setting up the development environment, please read the source code overview and flashing firmware documents to figure out where it is your code goes and how to get it installed on the pixhawk.
-
Follow these PX4 Build Environment instructions.
-
Follow these PX4 Toolchain Installation instructions up until the Source/Firmware Download instructions.
-
Open a console, make a folder for your source code and download the code from github
mkdir ~/src cd ~/src/ git clone https://github.com/adrnp/Firmware.git cd Firmware git checkout aa241x git submodule init git submodule update -
That's it for setting up the development environment, please read the source code overview and flashing firmware documents to figure out where it is your code goes and how to get it installed on the pixhawk.



