diff options
| author | Alex Dolzhenkov <admin@alexx.pw> | 2022-12-03 20:42:55 +1300 |
|---|---|---|
| committer | Alex Dolzhenkov <admin@alexx.pw> | 2022-12-03 20:42:55 +1300 |
| commit | fe32af1ce9c44db6a37a58d07579b5b37200778e (patch) | |
| tree | 33f9703dc42a9176e6d1617c6a9786373f3f1f0e | |
| parent | aac0081929eea88ca0e2889c424422a25982cd53 (diff) | |
#1463 Update mcuboot-app linker file to be more consistent
| -rw-r--r-- | gcc_nrf52-mcuboot.ld | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc_nrf52-mcuboot.ld b/gcc_nrf52-mcuboot.ld index c18875b6..204c414d 100644 --- a/gcc_nrf52-mcuboot.ld +++ b/gcc_nrf52-mcuboot.ld @@ -5,7 +5,7 @@ * Internal nRF52 flash memory: * 0x00000000: MCUBoot(28 kB) * 0x00007000: Reboot logs (4 kB) - * 0x00008000: MCUBoot header (0x20 bytes) + * 0x00008000: MCUBoot header (32 bytes) * 0x00008020: Application (463+ kB) * 0x0007be50: MCUBoot image trailer (432 bytes) * 0x0007c000: MCUBoot Scratch partition (4 kB) @@ -21,12 +21,12 @@ SEARCH_DIR(.) GROUP(-lgcc -lc -lnosys) MCUBOOT_SIZE = 0x8000; -MCUBOOT_APP_IMAGE_HEADER_SIZE = 0x20; +MCUBOOT_APP_IMAGE_HEADER_SIZE = 32; MCUBOOT_APP_IMAGE_TRAILER_SIZE = 432; 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_SIZE = 4K; +SCRATCH_SIZE = 0x1000; MEMORY { |
