Skip to content

Commit

Permalink
special case for settings under MICROBIT_CODAL (#1473)
Browse files Browse the repository at this point in the history
* special case for settings under MICROBIT_CODAL

* redo

* keep original size of settings
  • Loading branch information
tballmsft authored Mar 12, 2024
1 parent 0202093 commit d80b112
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libs/settings/settings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d80b112

Please sign in to comment.