You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, I am working on the W25q128 module. Once storage is filled, I want to overwrite the first block
without data corruption for that module. But, I have a problem rewinding the file pointer and erasing the first block but littlefs, Erase the last block. How to erase the block in sequence order after erasing and writing the first block, how to read the data in the correct order?
The text was updated successfully, but these errors were encountered:
Hi @Aravind0812, sorry if I misunderstand the question.
littlefs doesn't store files on disk in reliable locations. As files are rewritten littlefs moves them around to distribute wear.
Files are also broken up into multiple blocks which get stored in arbitrary locations, and once they are larger enough start containing extra metadata that would mess up most use cases that would rely on this.
Though there is a PR requesting to add a different file type that would accomplish this: #692
Currently, I am working on the W25q128 module. Once storage is filled, I want to overwrite the first block
without data corruption for that module. But, I have a problem rewinding the file pointer and erasing the first block but littlefs, Erase the last block. How to erase the block in sequence order after erasing and writing the first block, how to read the data in the correct order?
The text was updated successfully, but these errors were encountered: