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

Flash Memory Corruption with FDS

I have had an issue recently with some beacons that I am using to log temperature data. A portion of the beacons drained their batteries very quickly and didn't respond to BLE as it was supposed to.

When connected to nrfConnect Programmer app this is what the flash memory was read to look like:

This can be compared with another beacon with the exact same code on it that worked properly:

 

I am using FDS as my flash data storage library.

SDK 14.1

nRF52-QFAA

It appears to me that the flash storage has corrupted and clobbered the boot loader, but I can't think of any reason why this would have happened?

My best guess was that the battery got low and the device started power cycling, which could have affected the flash memory initialisation, but it seems more like the flash memory interfering with the boot loader would have caused the batteries to go flat, not the other way round.

Do you have any suggested about what could have caused the issues that I'm seeing here?

Related