Browse Source

can-gps-v1:Correct Memory size used by app and bootloader size

release/1.12
David Sidrane 4 years ago committed by Daniel Agar
parent
commit
1ac70cc72f
  1. 12
      boards/cuav/can-gps-v1/nuttx-config/scripts/script.ld
  2. 2
      boards/cuav/can-gps-v1/src/boot_config.h

12
boards/cuav/can-gps-v1/nuttx-config/scripts/script.ld

@ -71,13 +71,15 @@ SECTIONS
.text : { .text : {
_stext = ABSOLUTE(.); _stext = ABSOLUTE(.);
*(.vectors) *(.vectors)
. = ALIGN(32); . = ALIGN(8);
/* /*
This signature provides the bootloader with a way to delay booting * This section positions the app_descriptor_t used
* by the make_can_boot_descriptor.py tool to set
* the application image's descriptor so that the
* uavcan bootloader has the ability to validate the
* image crc, size etc
*/ */
_bootdelay_signature = ABSOLUTE(.); KEEP(*(.app_descriptor))
FILL(0xffecc2925d7d05c5)
. += 8;
*(.text .text.*) *(.text .text.*)
*(.fixup) *(.fixup)
*(.gnu.warning) *(.gnu.warning)

2
boards/cuav/can-gps-v1/src/boot_config.h

@ -101,7 +101,7 @@
#define OPT_RESTART_TIMEOUT_MS 20000 #define OPT_RESTART_TIMEOUT_MS 20000
/* Reserved for the Booloader */ /* Reserved for the Booloader */
#define OPT_BOOTLOADER_SIZE_IN_K (1024*8) #define OPT_BOOTLOADER_SIZE_IN_K (1024*64)
/* Reserved for the application out of the total /* Reserved for the application out of the total
* system flash minus the BOOTLOADER_SIZE_IN_K * system flash minus the BOOTLOADER_SIZE_IN_K

Loading…
Cancel
Save