LittleFS Flash File System: Difference between revisions

From Embedded Workshop
Jump to navigation Jump to search
(Created page with "==LittleFS Flash File System== I recently learned about a compact embedded Flash File System known as SpiFFS. While researching SpiFFS, I soon learned of another compact...")
 
No edit summary
Line 1: Line 1:
==[[LittleFS Flash File System]]==
==[[LittleFS Flash File System]]==
I recently learned about a compact embedded Flash File System known as SpiFFS. While researching SpiFFS, I soon learned of another compact embedded Flash File System, '''LittleFS'''. LittleFS is even more compact and has additional security in that it creates and maintains a CRC for each file, and verifies the CRC each time the file is read.
I recently learned about a compact embedded Flash File System known as SpiFFS.<br>
While researching SpiFFS, I soon learned of another compact embedded Flash File System, '''LittleFS'''.<br>
LittleFS is even more compact and has additional security in that it creates and maintains a CRC for each file, and verifies the CRC each time the file is read.
* Compact
* Compact
* Power-loss resilience
* Power-loss resilience

Revision as of 00:16, 4 October 2020

LittleFS Flash File System

I recently learned about a compact embedded Flash File System known as SpiFFS.
While researching SpiFFS, I soon learned of another compact embedded Flash File System, LittleFS.
LittleFS is even more compact and has additional security in that it creates and maintains a CRC for each file, and verifies the CRC each time the file is read.

  • Compact
  • Power-loss resilience
  • Dynamic wear leveling
  • Bounded RAM/ROM
  • Maintains revision count and CRC (security features)

Let's put this file system onto a STM32 board (I'm using a NUCLEO-F103RB), and check it out.

Cloned littleFS to my local machine.
Using Winbond W25Q128FVSG SPI Flash module from Ebay: https://www.ebay.com/itm/264290947181
If the link doesn't work, just search Ebay for "W25Q128 Module".  I bought two for $8.26 (free shipping).
Downloaded the PDF for the W25Q128FVSG : https://www.winbond.com/resource-files/w25q128fv%20rev.m%2005132016%20kms.pdf
The W25Q128FVSG uses 1.65V to 1.95V for operation.
The NUCLEO-F103RB powers the STM32F103RB with 3.3V.  (The chip is capable of running with 2.0V to 3.6V.)
Seems we have our first problem....
Need some more components to build an interface circuit
3.3V to 1.8V linear power supply, Microchip MIC5504-1.8YM5-TR, or Mouser 998-MIC5504-1.8YM5TR
Quad level shifter, 3.3V to 1.8V, SN74LV4T125