CTS-SAT-1-OBC-Firmware
Loading...
Searching...
No Matches
LittleFS and Flash Memory - Notes and Lessons

The LittleFS filesystem is used to provide a layer on top of the raw flash memory module (block device) which allows for files/folders, and other standard filesystem features (reading, appending, etc.).

Flash Memory Module

  • Chip: MT29F1G 1Gib (128MiB)
  • SPI DMA is faster.
  • The MT29F1G chip requires that the CS line be driven to inactive between writes, otherwise the chip/system goes unresponsive.

LittleFS

  • Solid filesystem once everything is implemented right.
  • Uses Copy-on-Write. Thus, modifying a file takes a long time as its block(s) get copied.

LittleFS Configuration

  • metadata_max is an important configuration variable.