rc:sw:fc:px4:build_from_source
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
rc:sw:fc:px4:build_from_source [2016/01/06 14:00] – [ Build] redox | rc:sw:fc:px4:build_from_source [2016/05/23 22:31] – [Recent stable/master/sparky2] redox | ||
---|---|---|---|
Line 12: | Line 12: | ||
## Build | ## Build | ||
- | * make help | + | ### Using CMake, manual |
- | Useful to know the available targets | + | |
- | * make BOARDS=yourtarget menuconfig | + | mkdir build/ |
- | | + | cd build/ |
+ | cmake .. -DCONFIG=nuttx_sparky2_default | ||
+ | | ||
+ | make upload | ||
- | * make BOARDS=yourtarget archives | ||
- | Build the NuttX OS archive for _yourtarget_ | ||
- | * make BOARDS=yourtarget yourtarget_default | ||
- | Build PX4 for _yourtarget_ | ||
- | * make BOARDS=yourtarget yourtarget_default upload | + | ### Using the Makefile, auto mode |
- | Build PX4 and upload using PX4 Bootloader (USB) | + | |
- | ### Combo | + | You need a " |
- | | + | * `make yourboard_default` |
+ | Update the submodules and build the config for _yourboard_. The available configs are located in cmake/ | ||
+ | The " | ||
- | ## Flash | + | * `make yourboard_default upload` |
+ | Build and upload to the board using the PX4 bootloader | ||
- | ### DFU | ||
- | * https:// | + | |
+ | ## Flash | ||
### PX4 Bootloader | ### PX4 Bootloader | ||
- | * https:// | + | make -j2 -l2 sparky2_bl |
+ | dfu-util -a 0 -d 0483:df11 -c 1 -i 0 -a 0 -s 0x08000000 -D sparky2_bl.bin | ||
+ | |||
+ | |||
+ | * https:// | ||
## Debug | ## Debug | ||
- | openocd -f interface/ | + | |
+ | openocd -f Debug/ | ||
+ | |||
+ | # Start GDB | ||
+ | arm-none-eabi-gdb -x Debug/ | ||
+ | |||
+ | #In GDB: | ||
+ | #tar ext :3333 | ||
+ | |||
+ | And debug as usual... | ||
+ | |||
+ | ## Links | ||
+ | |||
+ | * http:// | ||
- | |||
- | In GDB: | ||
- | tar ext :3333 | ||
- | # 'n debug... |
/home/share/www/redox.ws/wiki/data/pages/rc/sw/fc/px4/build_from_source.txt · Last modified: 2023/11/24 21:55 by 127.0.0.1