cancel
Showing results for 
Search instead for 
Did you mean: 

File-system for NOR flash

ranran
Senior II

Hello,

I am struggling with integration of filesystem on external nor.

I've been trying both littlefs, and spiffs. Both, with no success yet.

Is there any suggestion from ST for filesystem example on external nor flash ?

Thank you!

ranran

1 ACCEPTED SOLUTION

Accepted Solutions

What exactly went wrong with littlefs integration? Porting it should be straightforward - just implement functions for read/write/erase/sync operations on flash blocks. I found an example:

http://www.uimeter.com/file/system/littlefs/2018/04/12/Try-LittleFS-on-STM32-and-SPI-Flash.html

View solution in original post

5 REPLIES 5

What exactly went wrong with littlefs integration? Porting it should be straightforward - just implement functions for read/write/erase/sync operations on flash blocks. I found an example:

http://www.uimeter.com/file/system/littlefs/2018/04/12/Try-LittleFS-on-STM32-and-SPI-Flash.html

ranran
Senior II

Right,

I tried again with littlefs after seeing your answer, and surprisingly it looks to be functional now.

Thanks!

Hi ranran , i am working on same project , which part number you use as external flash ? Could u binding properly little-fs on external flash ?

Regards,

volkan

Hi ranran,

I am working to use littlefs for writing data on SD card. Could you share your project, so I could use it as my baseline? I do not know where should I implement the read/write/erase/sync functions.

Hi,

I don't have a project, but I tried to cut out the relevant files for you here:

https://drive.google.com/file/d/17nv58G2Suf8gYtR2nbXnw2F8v7sh8fzp/view?usp=sharing

Note that the usb stick should be up to 4G and formatted to fat32, otherwise - it won't work !

Thanks