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
  • I don't know what the problem is, just noticed the error message was possibly wrong and thought that might help someone else figure out what the issue was.

    I assume you have the softdevice enabled and you have registered for events and you are calling the pstorage event handler as you're required to do. I'm sure you are, again just asking questions to see if anything obvious comes up.

Reply
  • I don't know what the problem is, just noticed the error message was possibly wrong and thought that might help someone else figure out what the issue was.

    I assume you have the softdevice enabled and you have registered for events and you are calling the pstorage event handler as you're required to do. I'm sure you are, again just asking questions to see if anything obvious comes up.

Children
No Data
Related