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

How and where to write some user data to flash using pstorage

Hi, Is there a sample which explains about how to store some user data or do some data logging on to flash of a central device. I tried to do it, but since device manager has already initialized the pstorage, its throwing an error while I write my user data err_code is 0x10 . If the device manager is not initialize the user data are written properly.

Any help would be appreciated

Parents Reply
  • That error code is

    #define NRF_ERROR_INVALID_ADDR                (NRF_ERROR_BASE_NUM + 16) ///< Bad Memory Address
    

    This happens when you are trying to store data from address and/or offset which are not word aligned. Did you check if these two are word aligned?

    Can you please post the code where this error happens so that I can help you little more.

Children
No Data
Related