User Tools

Site Tools


rc:sw:fc:px4:build_from_source

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
rc:sw:fc:px4:build_from_source [2016/05/22 17:20] – [PX4 Bootloader] redoxrc:sw:fc:px4:build_from_source [2016/05/23 22:31] – [Recent stable/master/sparky2] redox
Line 12: Line 12:
 ## Build ## Build
  
-### Std cmake+### Using CMake, manual
  
     mkdir build/     mkdir build/
Line 18: Line 18:
     cmake .. -DCONFIG=nuttx_sparky2_default     cmake .. -DCONFIG=nuttx_sparky2_default
     make -j2 -l2     make -j2 -l2
-    +    make upload
  
  
-## Recent stable/master/sparky2+ 
 +### Using the Makefile, auto mode
  
 You need a "recent" CMake (>= 3.3 ). On debian stable, you need to rebuild the package using the sources from testing. Uninstall sdcc before building the package, otherwise one of the tests fails :/  You need a "recent" CMake (>= 3.3 ). On debian stable, you need to rebuild the package using the sources from testing. Uninstall sdcc before building the package, otherwise one of the tests fails :/ 
Line 33: Line 34:
   Build and upload to the board using the PX4 bootloader   Build and upload to the board using the PX4 bootloader
  
-## Old 
  
-* `make help` 
-    Useful to know the available targets 
  
-* `make BOARDS=yourtarget menuconfig` +## Flash
-    Requires kconfig-mconf, but useful to config NuttX+
  
-* `make BOARDS=yourtarget archives` 
-    Build the NuttX OS archive for _yourtarget_ 
  
-* `make BOARDS=yourtarget yourtarget_default` +### PX4 Bootloader
-    Build PX4 for _yourtarget_+
  
-* `make BOARDS=yourtarget yourtarget_default upload` +    make -j2 -l2 sparky2_bl 
-    Build PX4 and upload using PX4 Bootloader (USB)+    dfu-util -a 0 -d 0483:df11 -c 1 -i 0 -a 0 -s 0x08000000 -D sparky2_bl.bin
  
-### Combo 
- 
-    make BOARDS=yourtarget archives yourtarget_default upload 
- 
-If you make any change in the NuttX/, you need to delete everything and start over... 
- 
-    rm -R Archives/ Build/ 
-    make BOARDS=yourtarget archives yourtarget_default upload 
- 
- 
-## Flash 
- 
-### DFU 
  
 * https://pixhawk.org/dev/bootloader_update#updating_the_onboard_bootloader * https://pixhawk.org/dev/bootloader_update#updating_the_onboard_bootloader
  
-### PX4 Bootloader 
  
-    make -j2 -l2 sparky2_bl +## Debug
-    +
  
 +    #openocd -f interface/stlink-v2.cfg -f target/stm32f4x_stlink.cfg
 +    openocd -f Debug/sparky2-board.cfg
  
-## Debug +    Start GDB 
- +    arm-none-eabi-gdb -x Debug/openocd.gdbinit ./build/src/firmware/nuttx/firmware_nuttx
-    openocd -f interface/stlink-v2.cfg -f target/stm32f4x_stlink.cfg+
  
-  +    #In GDB: 
-    In GDB: +    #tar ext :3333
-    tar ext :3333+
  
 And debug as usual... And debug as usual...
/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