#1463 Update mcuboot-app linker file to be more consistent

This commit is contained in:
Alex Dolzhenkov 2022-12-03 20:42:55 +13:00
parent aac0081929
commit fe32af1ce9

View File

@ -5,7 +5,7 @@
* Internal nRF52 flash memory: * Internal nRF52 flash memory:
* 0x00000000: MCUBoot(28 kB) * 0x00000000: MCUBoot(28 kB)
* 0x00007000: Reboot logs (4 kB) * 0x00007000: Reboot logs (4 kB)
* 0x00008000: MCUBoot header (0x20 bytes) * 0x00008000: MCUBoot header (32 bytes)
* 0x00008020: Application (463+ kB) * 0x00008020: Application (463+ kB)
* 0x0007be50: MCUBoot image trailer (432 bytes) * 0x0007be50: MCUBoot image trailer (432 bytes)
* 0x0007c000: MCUBoot Scratch partition (4 kB) * 0x0007c000: MCUBoot Scratch partition (4 kB)
@ -21,12 +21,12 @@ SEARCH_DIR(.)
GROUP(-lgcc -lc -lnosys) GROUP(-lgcc -lc -lnosys)
MCUBOOT_SIZE = 0x8000; MCUBOOT_SIZE = 0x8000;
MCUBOOT_APP_IMAGE_HEADER_SIZE = 0x20; MCUBOOT_APP_IMAGE_HEADER_SIZE = 32;
MCUBOOT_APP_IMAGE_TRAILER_SIZE = 432; MCUBOOT_APP_IMAGE_TRAILER_SIZE = 432;
APP_OFFSET = MCUBOOT_SIZE + MCUBOOT_APP_IMAGE_HEADER_SIZE; APP_OFFSET = MCUBOOT_SIZE + MCUBOOT_APP_IMAGE_HEADER_SIZE;
APP_SIZE = 464K - MCUBOOT_APP_IMAGE_HEADER_SIZE - MCUBOOT_APP_IMAGE_TRAILER_SIZE; APP_SIZE = SCRATCH_OFFSET - MCUBOOT_SIZE - MCUBOOT_APP_IMAGE_HEADER_SIZE - MCUBOOT_APP_IMAGE_TRAILER_SIZE;
SCRATCH_OFFSET = 0x7c000; SCRATCH_OFFSET = 0x7c000;
SCRATCH_SIZE = 4K; SCRATCH_SIZE = 0x1000;
MEMORY MEMORY
{ {