From d80b1121b985f7f93e0e881e3658263dfdc2ff24 Mon Sep 17 00:00:00 2001 From: Tom Ball Date: Tue, 12 Mar 2024 16:47:05 -0700 Subject: [PATCH] special case for settings under MICROBIT_CODAL (#1473) * special case for settings under MICROBIT_CODAL * redo * keep original size of settings --- libs/settings/settings.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/libs/settings/settings.cpp b/libs/settings/settings.cpp index 98d848155..e41829508 100644 --- a/libs/settings/settings.cpp +++ b/libs/settings/settings.cpp @@ -28,6 +28,11 @@ class WStorage { fs(flash, 512 * 1024 - SETTINGS_SIZE, SETTINGS_SIZE), #elif defined(SAMD21) fs(flash, 256 * 1024 - SETTINGS_SIZE, SETTINGS_SIZE), +#elif defined(MICROBIT_CODAL) && MICROBIT_CODAL + // micro:bit V2 memory map + // https://github.com/lancaster-university/codal-microbit-v2/blob/master/docs/MemoryMap.md + // 73000 CODAL scratch page (is used as temporary scratch by MicroBitFlash, MicroBitFileSystem and MicroBitStorage) + fs(flash, 0x73000 - SETTINGS_SIZE, SETTINGS_SIZE), #elif defined(NRF52_SERIES) #define NRF_BOOTLOADER_START *(uint32_t *)0x10001014 fs(flash,