pxt-microbit
pxt-microbit copied to clipboard
MakeCode programme can overlap reserved flash pages for BLE and CODAL storage
Originally reported as a comment in:
- https://github.com/microsoft/pxt-microbit/issues/5396#issuecomment-1805425699
In that example, this programme can be correctly flashed to the micro:bit V2: https://makecode.microbit.org/_9KKHE4WyyUM3 microbit-largeSwitch.hex.zip
But the programme goes all the way in flash up to address 0x752B0, writing to flash memory areas reserved for CODAL storage usage and Nordic SDK BLE bond data: https://github.com/lancaster-university/codal-microbit-v2/blob/master/docs/MemoryMap.md
A programme that doesn't use CODAL storage nor BLE will probably not trigger a problem, but a soon as those features are used it can cause issues.