Skip to content
Discussion options

You must be logged in to vote

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

class LittleFSImpl : public FSImpl {
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 use…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@smalltoe
Comment options

Answer selected by smalltoe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants