How to determine if flash write has completed using zms_write() or nvs_write()

NCS 3.02 + nRF54L15

I'm troubleshooting a potential bug. Are these blocking routines, or if not how do I monitor for successful completion of flash write? I looked the the API docs and the ZMS sample project but neither give any clue.

My concern is if the system is rebooted too soon after saving might result in corruption.

Thanks

Parents Reply
  • No, this is my own advice after thoroughly reading the code of ZMS and inspecting its quality, and finding many bugs. I wouldn't use it in its current state since the storage can become corrupt. I found issues where corruptions could be possible with power cuts as well as even without power cuts.

    Since data integrity is pretty vital, I'm a bit surprised that no one has fixed the issues I reported as of now.

Children
No Data
Related