aboutsummaryrefslogtreecommitdiffstats
path: root/gcc_nrf52-mcuboot.ld
diff options
context:
space:
mode:
Diffstat (limited to 'gcc_nrf52-mcuboot.ld')
-rw-r--r--gcc_nrf52-mcuboot.ld8
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
{