LittleFs on SPI1 #1521
-
Dear All,
I have a version that works on Micropython but I would like to port that to Arduino now. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You are correct, the I believe it would be possible to extend the onboard LittleFS by making a new constructor for and writing replacement flash read/write routines that use a passed-in SPI. There are function pointers in the struct that are the only thing used by the LittleFS ARM code to acces flash memory.As for accessing flash via SPI, I suggest you look for some Arduino libraries to handle this or the datasheet of your flash chip for info on the SPI protocol it uses. It's generally not too complicated to get something low-performance working. |
Beta Was this translation helpful? Give feedback.
You are correct, the
LittleFS
implementation here uses the onboard flash only and does not directly toggle any (Q)SPI pins.I believe it would be possible to extend the onboard LittleFS by making a new constructor for
arduino-pico/libraries/LittleFS/src/LittleFS.h
Line 48 in cc80071
As for accessing flash via SPI, I suggest you look for some Arduino libraries to handle this or the datasheet of your flash chip for info on the SPI protocol it use…