@@ -82,9 +82,9 @@ The lowest flash page that is partially or fully occupied with your arrays is gi
Thus, if you need to erase all the pages your sketch is using in order to initialize them, loop with a for loop from NANO33BLE_FLASH_LOWEST_PAGE to flashNumberOfPages, erasing each page as you go, like this:
int page;
for (page=NANO33BLE_FLASH_LOWEST_PAGE;page<flashNumberOfPages;page++){
\nbsp; flashMode(FLASH_ERASE);
\nbsp; flashErasePage(page);
\nbsp; flashMode(FLASH_READONLY);
flashMode(FLASH_ERASE);
flashErasePage(page);
flashMode(FLASH_READONLY);
}
You do not necessarily want to always erase the flash memory on start up,
as doing so defeats the non-volatility property of flash.