Last active
August 29, 2019 02:40
-
-
Save fredericmorin/0c3ae52b48a7957575f5655b2e213887 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# build tools & deps | |
brew tap PX4/homebrew-px4 && brew update # required for gcc-arm-none-eabi | |
brew install gcc-arm-none-eabi-49 cmake dfu-util | |
pip install pillow | |
open /Library/Developer/CommandLineTools/Packages/macOS_SDK_headers_for_macOS_10.14.pkg # or else you get a clang cant fine inttypes.h error while compiling lua shit | |
# clone and build | |
git clone --recursive -b 2.3 https://github.com/opentx/opentx | |
cd opentx | |
mkdir build | |
cd build | |
cmake -DPCB=X9LITE -DLUA=YES -DDISABLE_COMPANION=YES -DDEBUG=YES .. | |
#make help | |
make firmware | |
# turn off your controller and plug in the usb micro cable. Will show up as a DFU device. | |
make flash # uses dfu-util | |
# remote should turn one when done with flashing. Turn off remove and repeat command to compile/flash again |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment