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

Get data from BLE and write to flash memory using pstorage

Hi,

I am having trouble to use flash to store data.

First, I write function and scan beacon, get information from this beacon and save to flash

I use a timer for saving data to flash but it is not work, I always get the error code = 0x00000010. It means "invalid flag". How can I solve this problem?

Thanks and regard

Parents Reply
  • you did not check the return values for any of the pstorage function. after calling retval = pstorage_xxxx() you should check if that was success by adding

    APP_ERROR_CHECK(retval);
    

    just after any API. If you ignore the retval, then it will get difficult to find out where it went wrong. This will not solve your problem, but will tell us which pstorage function returned error. Let me know if you could point out where it failed.

Children
No Data
Related