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

Problems using fstorage to write to flash (using it alongside mesh sdk)

Hi, currently I am using fstorage alongside ble-mesh to store some data in flash. Currently however, writing with fstorage seems to be successful only about 50% of the time, with the other failing 50% giving me a timeout error (error code 13, NRF_TIMEOUT_ERROR). The memory areas between the mesh data and the fstorage do not overlap. Reading using fstorage so far works just fine. Are there any ideas to what might be causing this issue?

I suspect perhaps the fstorage operations might be competing with the mesh events in some sort of scheduler but I am not sure.

Thanks in advance

PS. I am aware that the mesh SDK offer its own thing for managing flash data (flash manager) but i used fstorage due to my greater familiarity with it plus the fact that there are no flash manager examples in the SDK, so I would prefer if i can stick with my current fstorage solution, however if this issue is unfixable I am open to trying out the mesh SDK's flash manager.

Parents
  • yes, I am using nrf_fstorage_sd.c, I am using fstorage directly by the way instead of through something like peer manager or fds.

    I will try out the ble_app_proximity_coexist example and see how its done, hopefully it might give me some clues as to what I am missing

Reply
  • yes, I am using nrf_fstorage_sd.c, I am using fstorage directly by the way instead of through something like peer manager or fds.

    I will try out the ble_app_proximity_coexist example and see how its done, hopefully it might give me some clues as to what I am missing

Children
No Data
Related