SPIFBlockDevice & LittleFileSystem

17 Jan 2019

I using the LFS with S25FL256L. But there is problem when files exceed approx 3MB. Every time I get error:

lfs error:494: Corrupted dir pair at 3 2

NOR FLASH has Uniform 4KB Sector . LFS CONFIG: "MBED_LFS_READ_SIZE=256", "MBED_LFS_PROG_SIZE=256", "MBED_LFS_BLOCK_SIZE=4096", "MBED_LFS_LOOKAHEAD=512",

Is same with many small files or with several big files.

Until an error occurs, everything works well.

I test 1.6 and 1.7, no succes.

18 Jan 2019

Problem solved. The SPIFBlockDevice has default 16bit addressing.