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
  • Are you using optimizations when you compile your code? I would not trust the debugger return values if you have any kind of optimizations. I recommend you to fix your code by not ignoring the retval, and compile your application with no optimizations and trace the problem again with debugger. Like I said, pstorage cannot return the error code you mentioned as far as I know. Looking at the headers and code ony possible function that returns this error is sd_ble_gap_adv_data_set

Children
No Data
Related