You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
bugobliterator 28f03e64bc AP_Bootloader: add CubeRed and CubeRed IO board types 3 years ago
..
AP_Bootloader.cpp AP_Bootloader: change timeout on external flash init 3 years ago
README.md AP_Bootloader: added board_types.txt 5 years ago
app_comms.h AP_Bootloader: pre-define fields of app_descriptor 5 years ago
bl_protocol.cpp AP_Bootloader: allow external flash load in middle 3 years ago
bl_protocol.h Tools: AP_Bootloader: remove unused BL_WAIT_MAGIC define 5 years ago
board_types.txt AP_Bootloader: add CubeRed and CubeRed IO board types 3 years ago
can.cpp AP_Bootloader: add value for extra argument in encode methods 3 years ago
can.h AP_Bootloader: support firmware update from px4 firmware 3 years ago
mcu_f1.h AP_Bootloader: added CAN support for AP_Periph 6 years ago
mcu_f3.h AP_Bootloader: support STM32F303 MCU 5 years ago
mcu_f4.h AP_Bootloader: added flash size limiting on old CPUs 7 years ago
mcu_f7.h AP_Bootloader: added mcu files 7 years ago
mcu_g4.h AP_Bootloader: fixed G4 MCU descriptions 4 years ago
mcu_h7.h AP_Bootloader: added STM32H7xx chip revisions 5 years ago
mcu_l4.h AP_Bootloader: support L496 MCUs 3 years ago
support.cpp Tools: use correct #pragma GCC diagnostic pop 3 years ago
support.h AP_Bootloader: add support for flashing erasing and verifying ext flash 3 years ago
wscript Tools: make CPUInfo test fairer, add data for external flash 3 years ago

README.md

ArduPilot Bootloader

This is the bootloader used for STM32 boards for ArduPilot. To build the bootloader do this:

 ./waf configure --board BOARDNAME --bootloader
 ./waf bootloader

the bootloader will be in build/BOARDNAME/bin. If you have the intelhex module installed it will build in both bin format and hex format. Both are usually uploaded with DFU. The elf file will be in build/BOARDNAME/AP_Bootloader for loading with gdb.

The --bootloader option tells waf to get the hardware config from the hwdef-bl.dat file for the board. It will look in libraries/AP_HAL_CHibiOS/hwdef/BOARDNAME/hwdef-bl.dat

The bootloader protocol is compatible with that used by the PX4 project for boards like the Pixhawk. For compatibility purposes we maintain a list of board IDs in the board_types.txt file in this directory.

the board IDs in that file match the APJ_BOARD_ID in the hwdef.dat and hwdef-bl.dat files

The bootloader can load from USB or UARTs. The list of devices to load from is given in the SERIAL_ORDER option in hwdef-bl.dat