5 years, 2 months ago.

Does Little Filesystem support read and write multiple files simultaneously?

Hi Everyone,

I am using The Little Filesystem without OS. When I open a second file to write I got the LFS_ERR_NOMEM return error. I can open one file at a time to write and read. How to read and write multiple files simultaneously?

Thanks in advance, Dennis

Update: Issue resolved struct lfs_config { .... Optional, statically allocated buffer for files. Must be program sized. If enabled, only one file may be opened at a time. void *file_buffer; ... } I configured the file_buffer size.

.file_buffer = (char *)file_buffer, should be

.file_buffer = NULL, Cheer! Dennis

Be the first to answer this question.