Commit Graph

282 Commits

Author SHA1 Message Date
Andrew Tridgell 5c9b3842e6 Tools: fixed bootloader hang on GPS data
don't kill the timeout till we get valid sync and get_device
calls. This makes accidental bootloader triggers very unlikely
2019-05-06 08:08:05 +10:00
Andrew Tridgell bff040c58e AP_Bootloader: added support for READ_MULTI
this is useful for comparing the firmware on a board with the known
expected firmware
2019-05-06 08:08:05 +10:00
Andrew Tridgell f727f1c62d AP_Bootloader: use fast boot after watchdog reset 2019-04-22 16:53:35 +10:00
Andrew Tridgell af78ac1abf AP_Bootloader: disable debug printf 2019-02-26 16:18:26 +11:00
Andrew Tridgell ac070c92f5 AP_Bootloader: fully working on H7 2019-02-26 16:18:26 +11:00
Andrew Tridgell 9013c15f4d AP_Bootloader: fixed sys lock for timer 2019-02-26 16:18:26 +11:00
Andrew Tridgell 660a790401 AP_Bootloader: improved flash test code 2019-02-26 16:18:26 +11:00
Andrew Tridgell 2fee1ffba4 AP_Bootloader: first working bootloader for H7 2019-02-26 16:18:26 +11:00
Andrew Tridgell 4d3cbd95ac AP_Bootloader: support building on STM32H7 2019-02-26 16:18:26 +11:00
JIMWAR 8fe39e8784 AP_Bootloader: fix return the size of flash sector
flash_base_page+num_pages already be more than last sector of flash,
there should be num_pages-flash_base_page when judge the last sector
2019-01-08 20:54:36 +11:00
Lucas De Marchi 668c941717 Global: use new version of ARRAY_SIZE 2018-08-04 15:31:55 +10:00
Andrew Tridgell 9727328e0c AP_Bootloader: updates for new ChibiOS version 2018-08-03 13:44:59 +10:00
Andrew Tridgell 7316a478b6 AP_Bootloader: fixed rcc reset when no USB 2018-07-09 20:59:51 +10:00
Andrew Tridgell bf901aff49 AP_Bootloader: support building without USB
this allows for a bootloader on a board with no USB pins defined in
hwdef.dat
2018-07-09 08:35:15 +10:00
Andrew Tridgell 2e427475cf Tools: added bootloader docs 2018-07-04 19:11:10 +10:00
Andrew Tridgell c955d7b824 AP_Bootloader: fixed issue loading NuttX firmwares
NuttX assumes a lot more about MCU state on startup
2018-06-29 08:17:38 +10:00
Andrew Tridgell d470c161e8 AP_Bootloader: protect against random input to bootloader
require both a good sync and get_device before accepting destructive
operations
2018-06-29 08:17:38 +10:00
Andrew Tridgell c44a8309f9 AP_Bootloader: fixed strncmp bug 2018-06-28 11:35:13 +10:00
Andrew Tridgell 28ad2287c8 AP_Bootloader: for fast boot don't init USB 2018-06-28 11:35:13 +10:00
Andrew Tridgell b6e057dfb9 AP_Bootloader: use RTC sig for fast boot 2018-06-28 11:35:13 +10:00
Andrew Tridgell 0546ea69d1 AP_Bootloader: fixed build with no uarts 2018-06-25 21:22:31 +10:00
Andrew Tridgell 0ebd05aa1a AP_Bootloader: support changing baudrates on UARTs 2018-06-25 21:22:31 +10:00
Andrew Tridgell fe4aa4bbc7 AP_Bootloader: support uarts and usb for bootloading 2018-06-25 21:22:31 +10:00
Andrew Tridgell 5b208b401f AP_Bootloader: skip erasing already erased pages 2018-06-25 21:22:31 +10:00
Andrew Tridgell b5fc7f10f3 AP_Bootloader: added flash size limiting on old CPUs 2018-06-25 21:22:31 +10:00
Andrew Tridgell 4fbd1e409f AP_Bootloader: make flashing a bit faster 2018-06-25 21:22:31 +10:00
Andrew Tridgell a7ce864296 AP_Bootloader: added mcu files 2018-06-22 08:06:41 +10:00
Andrew Tridgell c1d4362555 AP_Bootloader: added MCU descriptions 2018-06-22 08:00:31 +10:00
Alexander Malishev c28296e6f2 AP_Bootloader: added simple std c function to reduce flash space 2018-06-22 08:00:31 +10:00
Andrew Tridgell f0e0b1baaa AP_Bootloader: only build bootloader when --bootloader configured 2018-06-22 08:00:31 +10:00
Andrew Tridgell 4c2c2012a6 waf: allow for "./waf bootloader"
easier build of the bootloader
2018-06-22 08:00:31 +10:00
Andrew Tridgell e7c43b9df7 AP_Bootloader: initial version of ChibiOS bootloader 2018-06-22 08:00:31 +10:00