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

How to read from flash?

In s210 there are functions sd_flash_page_erase, sd_flash_protect, and sd_flash_write. There is no sd_flash_read.

How do I read from flash? I can write to is using sd_flash_write, but how do I later read this data?

Parents Reply
  • I can suggest a couple of things to try:

    1. Check the error code from your call to sd_flash_write and make sure it is returning NRF_SUCCESS
    2. Make sure the stack has returned a NRF_EVT_FLASH_OPERATION_SUCCESS before reading the memory.
    3. If the S210 stack provides a pstorage API like the S110, use that as it hides all of the nit picky details for you.
Children
No Data
Related