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

nrf51822 pstorage problem - no processing of enqueued calls

I would like to store some configuration data on non-volatile memory in nrf51822. I'm using pstorage library to access flash, but I have problem with api calls. What I am doing, is:

  1. pstorage_init()
  2. pstorage_register() (my callback function is almost empty, just some serial-debug - should it do some particular operations? )
  3. pstorage_load() - just some 0xff's loaded, so i think it works correctly
  4. Now i try to call pstorage_clear or pstorage_store/update (what's the difference?) - each call returns succesfully, but i think it is not executed - just enqueued. When i wait for them to finish, I got stuck in this loop.
do{
        pstorage_access_status_get(&ops_count);
    }
    while(ops_count!=0);

Any idea, what i have could missed? I am using SDK 5.2.2 and S110 ver 6.0.0 softdevice

Best regards,

Wojtek

edit. Also, I mixed some pstorage calls code with timers and NRF_ERROR_NO_MEM occured while scheduling timer stop function.

Parents Reply Children
No Data
Related