From b5af1edf0dc3f009ac6b739cc260a2add8fc043d Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 28 Oct 2019 10:45:54 +1100 Subject: [PATCH] HAL_ChibiOS: moved app_descriptor to start of flash this prevents the bootloader from finding it's own image as a false posititve in searching for the app_descriptor --- libraries/AP_HAL_ChibiOS/hwdef/common/common.ld | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libraries/AP_HAL_ChibiOS/hwdef/common/common.ld b/libraries/AP_HAL_ChibiOS/hwdef/common/common.ld index a1644a499b..bdabc12869 100644 --- a/libraries/AP_HAL_ChibiOS/hwdef/common/common.ld +++ b/libraries/AP_HAL_ChibiOS/hwdef/common/common.ld @@ -70,6 +70,9 @@ SECTIONS .text : ALIGN(4) SUBALIGN(4) { + /* we want app_descriptor near the start of flash so a false + positive isn't found by the bootloader (eg. ROMFS) */ + KEEP(*(.app_descriptor)); *(.text) *(.text.*) *(.rodata)