Littlefs behaves strangely


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 ?


Yes, it makes sense and is no bug. It’s a feature and called ‚wear leveling‘.

However, this will waste a lot of writing time. Instead of writing only one page of data, it now becomes a block.