Commit Graph

53 Commits

Author SHA1 Message Date
Andrew Tridgell c998f93949 AP_Bootloader: removed use of float in can code 2020-01-07 12:37:35 +11:00
Andrew Tridgell e62cf21ce6 AP_Bootloader: added more protection against line noisy triggering bootloader
this is in reponse to a report from Ryan of the Hybrid project who
found that mavlink on telem1 could make bootloader get stuck
2019-12-06 11:39:48 +11:00
Andrew Tridgell a6fbcc50fc AP_Bootloader: added STM32H7xx chip revisions 2019-11-25 21:52:45 +11:00
Andrew Tridgell 147cf900fe AP_Bootloader: support STM32F303 MCU 2019-11-01 10:53:53 +11:00
Andrew Tridgell e612ab92ff AP_Bootloader: added error codes for failing to load app
use the vendor code to indicate failure reason
2019-10-28 15:53:16 +11:00
Andrew Tridgell 31f7a62cdc AP_Bootloader: use crc32_small() 2019-10-28 15:53:16 +11:00
Andrew Tridgell dcc417f27b AP_Bootloader: use crc32_small() 2019-10-28 15:53:16 +11:00
Andrew Tridgell ec1060d4f8 AP_Bootloader: pre-define fields of app_descriptor
this is needed to store it in flash
2019-10-28 15:53:16 +11:00
Andrew Tridgell cc1f86e1f1 AP_Bootloader: use MAINTAINENCE mode for CAN bootloader
this makes it obvious we are in the bootloader
2019-10-26 15:32:10 +11:00
Andrew Tridgell c1ef2e29d7 AP_Bootloader: stay in CAN bootloader if in watchdog reset
if the app has not been running for at least 30s then stay in
bootloader to allow used to load new fw
2019-10-26 15:32:10 +11:00
Andrew Tridgell c08d37bd8f Tools: fixed build with --out directory for build_binaries 2019-10-25 09:35:27 +11:00
Andrew Tridgell 34e0ac51f5 AP_Bootloader: use APJ_BOARD_ID in hw major/minor 2019-10-25 09:35:27 +11:00
Andrew Tridgell 9c4a01e0b0 AP_Bootloader: speed up CAN fw load 2019-10-21 19:12:01 +11:00
Andrew Tridgell 92bd1a485a AP_Bootloader: added app descriptor checking for CAN fw 2019-10-21 19:12:01 +11:00
Andrew Tridgell 6ad762f727 AP_Bootloader: support app comms area for CAN fw update
this allows MissionPlanner to update firmware
2019-10-21 19:12:01 +11:00
Andrew Tridgell 4677dca834 AP_Bootloader: fixed uprintf() build 2019-10-21 19:12:01 +11:00
Andrew Tridgell 230a817539 AP_Bootloader: support ZubaxGNSS 2019-10-21 19:12:01 +11:00
Andrew Tridgell d9e3a01e57 Tools: fixed vsnprintf assumption in AP_Bootloader 2019-09-12 08:43:31 +10:00
Andrew Tridgell a42560ea27 AP_Bootloader: fixed CAN stay in bootloader functionality 2019-09-10 16:22:33 +10:00
Andrew Tridgell 3bc5458a82 AP_Bootloader: added CAN support for AP_Periph 2019-08-27 10:29:56 +10:00
Siddharth Purohit eabb93f842 AP_Bootloader: change to using serusbcfg1 2019-07-12 17:01:21 +10:00
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