4.4 Storage
How flash, EEPROM and FRAM really behave, wear levelling and surviving power loss, and file systems and data loggers.
Lessons
- Flash, EEPROM and FRAM · Erase before write, endurance, wear levelling and surviving power loss.
- Embedded file systems · FatFs, LittleFS and designing a reliable data logger.
- SPI flash and SD cards · Serial NOR commands, the page boundary trap, and SD card bring-up in SPI mode.
- Checksums and CRCs · Detecting corruption: sums versus CRCs, CRC parameters, tables and protecting stored records.
Project: Drone flight data recorder
The black box of a delivery drone: it must keep the last records before a crash, even though the crash cuts the power mid-write. Four labs, each a working part of the recorder, checked on simulated hardware in the page.