Ardupilot2/Tools/AP_Bootloader
Andrew Tridgell f353ae4933 AP_Bootloader: speed up DroneCAN fw update
pipeline file read requests to reduce impact of transport latency
2023-09-06 11:21:51 +10:00
..
AP_Bootloader_config.h
AP_Bootloader.cpp AP_Bootloader: added custom LED reset for Here4AP 2023-08-01 11:38:03 +10:00
app_comms.h
bl_protocol.cpp Tools: Change erase sectors size 2023-08-29 11:07:32 +10:00
bl_protocol.h
board_types.txt AP_Bootloader: board ids for SpeedyBeeF4Mini, FlywooF4Pro, TMotorH7 2023-08-31 23:51:09 +10:00
can.cpp AP_Bootloader: speed up DroneCAN fw update 2023-09-06 11:21:51 +10:00
can.h
custom.cpp AP_Bootloader: added custom LED reset for Here4AP 2023-08-01 11:38:03 +10:00
flash_from_sd.cpp
flash_from_sd.h
mcu_f1.h
mcu_f3.h
mcu_f4.h
mcu_f7.h
mcu_g4.h
mcu_h7.h AP_Bootloader: add H73x MCU ID and produce pretty output 2023-04-28 08:31:15 +10:00
mcu_l4.h
md5.cpp
md5.h
README.md
support.cpp AP_Bootloader: speed up DroneCAN fw update 2023-09-06 11:21:51 +10:00
support.h AP_Bootloader: speed up DroneCAN fw update 2023-09-06 11:21:51 +10:00
wscript

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