Hello,
I would like to use littlefs in out Project and it seems to be very usefull. I read several documents and have the sample running on the eval board. But there is one important Question I couldn't answer by myself.
When is garbage collector triggered that erases all not used blocks of the below Flash?
I would have real Problems in out product when suddenly between two writes to one or even two files the file System decides: I have to erase 30 blocks in the Flash and be therefore busy for some seconds. There are several places in my functional flow where it would be perfectly fine to do this necessary erase. And if this is done often enough I expect it doesn't take Long.
There is this block_cycle Parameter which I haven't really understood. It gives the number blocks are erased (so this is declaring one block old by writing the new Content to a new block) until the meta data is moved to another block. Block is not my Flash page size, but a smaller configurable size.
Would be great if someone could explain it or Point me to a place where this is explained.
Regards
Erwin