Hello,
I use littlefs, but it behaves quite strangely.
If I write the same file from the start, it tries to write in a different block.
Does it make sense ?
Thanks
Hello,
I use littlefs, but it behaves quite strangely.
If I write the same file from the start, it tries to write in a different block.
Does it make sense ?
Thanks
Yes, it makes sense and is no bug. It’s a feature and called ‚wear leveling‘.
https://os.mbed.com/docs/mbed-os/v5.15/apis/littlefilesystem.html
However, this will waste a lot of writing time. Instead of writing only one page of data, it now becomes a block.