I'm having difficulties writing, retrieving and deleting data from flash, using fds on nRF52832_XXAA. Sometimes the flash writing succeeds, sometimes it fails with with ret_code_t=2. I also do not seem able to delete data, DEADBEEFBADFOOD always at location 0x0007d008, no matter how much i try to delete or garbage collect.
I'm also wondering if there is a way to reliably delete everything from flash, so that I can test and run code within the same data every time.
Any help would be greatly appreciated. :)
Edit: Yes, I forgot to mention that I am currently using an adapted version of the code here for testing: github.com/.../nRF52-fds-example and SDK version 12.1.0, SoftDevice s132.
I have attached some code below: main_snippet.c