This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Wasting nRF51 Flash memory erase cycles

Hi, In pstorage.c, function uint32_t pstorage_init(void), there a call to sd_flash_page_erase (line 846):

 // Erase swap region in case it is dirty.
  retval = sd_flash_page_erase(PSTORAGE_SWAP_ADDR / PSTORAGE_FLASH_PAGE_SIZE);

Call to pstorage_init is made every time, processor is restarted (in case we use pstorage). Having in mind that according to Table 16 in the Product Specification which gives an endurance of 20,000 minimum write/erase cycles, is such a call wasting of resources or not?

Parents Reply Children
Related