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:
- pstorage_init()
- pstorage_register() (my callback function is almost empty, just some serial-debug - should it do some particular operations? )
- pstorage_load() - just some 0xff's loaded, so i think it works correctly
- 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.