zephyr: 96b_nitrogen: increase scratch space
The current configuration only allows ~170 updates before we can
expect wear on the flash device (per product spec that the flash
device supports 10,000 erase cycles). Increase the scratch size to
make this better by removing some application space, to allow for
~2500 application updates or rollbacks.
The new configuration is 52 KiB (13 sectors) for scratch, and 208
KiB (52 sectors) for each application image.
Signed-off-by: Marti Bolivar <marti.bolivar@linaro.org>
diff --git a/boot/zephyr/targets/96b_nitrogen.h b/boot/zephyr/targets/96b_nitrogen.h
index 9982ec0..968c721 100644
--- a/boot/zephyr/targets/96b_nitrogen.h
+++ b/boot/zephyr/targets/96b_nitrogen.h
@@ -22,8 +22,8 @@
#define FLASH_DRIVER_NAME CONFIG_SOC_FLASH_NRF5_DEV_NAME
#define FLASH_ALIGN 4
#define FLASH_AREA_IMAGE_0_OFFSET 0x08000
-#define FLASH_AREA_IMAGE_0_SIZE 0x3A000
-#define FLASH_AREA_IMAGE_1_OFFSET 0x42000
-#define FLASH_AREA_IMAGE_1_SIZE 0x3A000
-#define FLASH_AREA_IMAGE_SCRATCH_OFFSET 0x7c000
-#define FLASH_AREA_IMAGE_SCRATCH_SIZE 0x01000
+#define FLASH_AREA_IMAGE_0_SIZE 0x34000
+#define FLASH_AREA_IMAGE_1_OFFSET 0x3C000
+#define FLASH_AREA_IMAGE_1_SIZE 0x34000
+#define FLASH_AREA_IMAGE_SCRATCH_OFFSET 0x70000
+#define FLASH_AREA_IMAGE_SCRATCH_SIZE 0x0D000