smartcitizen-kit-21 icon indicating copy to clipboard operation
smartcitizen-kit-21 copied to clipboard

Dump of potential flash storage issues

Open oscgonfer opened this issue 1 year ago • 1 comments

This issue is to describe the potential flash storage issues we might still have pending to solve.

oscgonfer avatar Jul 27 '23 13:07 oscgonfer

The only issue would be to review (which is not priority give the chances for this to happen) is that under certain conditions, it could be that the flash storage can get corrupted, but we have no way to handle this corruption at all. We need to be able to handle the situation when the flash is corrupt and don't prevent the kit from working.

In the append function, there should be a way to handle the problem: https://github.com/fablabbcn/smartcitizen-kit-21/blob/dev/sam/src/SckList.cpp#L55-L65

To do this, we could backup the corrupt sector in the next one and erase the corrupt one.

oscgonfer avatar Aug 01 '23 12:08 oscgonfer