This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

pstorage_store vs pstorage_update

Hi.

I have been trying to store data in flash by using pstorage. What's the difference between pstorage_store and pstorage_update?

At the first time, I can save data by pstorage_store without error at the callback function. But if I try to save data again at the same block, the data is not saved even though there is no error at the callback function.

And when I use pstorage_update instead of pstorage_store, I get 0x11(Edited : NRF_ERROR_BUSY) error even though I don't get any error when I use the same data for pstorage_store.

Any idea on what is happenning here?

My development environment:

・nRF51822 Developer Kit

・iOS 7.1 iPhone5s

・nRF6310 Rev 1.4

・S110-SD-v6

Parents
  • Do you mean 0x11 is the error code? That's NRF_ERROR_BUSY (17) not NRF_ERROR_INVALID_DATA (11). The documentation says that NRF SoC flash errors can be returned and indeed sd_flash_write can return NRF_ERROR_BUSY if the previous operation hasn't completed.

Reply
  • Do you mean 0x11 is the error code? That's NRF_ERROR_BUSY (17) not NRF_ERROR_INVALID_DATA (11). The documentation says that NRF SoC flash errors can be returned and indeed sd_flash_write can return NRF_ERROR_BUSY if the previous operation hasn't completed.

Children
No Data
Related