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

littlefs on external spi flash

For the nRF9160, exists there sample projects using littlefs on external flash memory? My flash is accessible via SPI. 

Parents
  • I haven't seen a sample putting it all together for nRF9160, but it looks like Zephyr has support for both SPI_NOR and LITTLEFS...

    There are some Zephyr samples for other boards down in zephyr/samples/subsys/fs/littlefs.  Take a careful look at the prj.conf files in those directories. The config items you would be looking for are CONFIG_FILE_SYSTEM_LITTLEFS and CONFIG_SPI_NOR or things that look related.  Adding support to a nrf9160 sample should be as simple as adding those lines to the prj.conf from a nrf9160 project.

Reply
  • I haven't seen a sample putting it all together for nRF9160, but it looks like Zephyr has support for both SPI_NOR and LITTLEFS...

    There are some Zephyr samples for other boards down in zephyr/samples/subsys/fs/littlefs.  Take a careful look at the prj.conf files in those directories. The config items you would be looking for are CONFIG_FILE_SYSTEM_LITTLEFS and CONFIG_SPI_NOR or things that look related.  Adding support to a nrf9160 sample should be as simple as adding those lines to the prj.conf from a nrf9160 project.

Children
Related