This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to get started with zephyr fs on external NOR flash

Hi,

I have gone through the lfs file system from zephyr samples but I could not find any solid documentation for fs and spi flash drivers available. 

I have written the  flash driver codes based on SPI and now i want to use the littlefs file system on this. How do I enable lfs by using SPI drivers?

Since most of the initialization is static and adds before main(), I couldn't figure out how to integrate the SPI read/write functions to the file system.