Browse Source

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
zr-v5.1
Andrew Tridgell 5 years ago
parent
commit
b5af1edf0d
  1. 3
      libraries/AP_HAL_ChibiOS/hwdef/common/common.ld

3
libraries/AP_HAL_ChibiOS/hwdef/common/common.ld

@ -70,6 +70,9 @@ SECTIONS @@ -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)

Loading…
Cancel
Save