Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"During our regression testing, repeatedly powering off the ECU abruptly while LFS operations were in progress caused the filesystem to become unwritable." #1088

Closed
SiddharthPatel-Eaton opened this issue Mar 28, 2025 · 1 comment

Comments

@SiddharthPatel-Eaton
Copy link

Hi,

We are encountering a peculiar issue with our LFS integration on Serial EEPROM. During our regression testing, repeatedly powering off the ECU abruptly while LFS operations such as writing or deleting files are in progress causes the filesystem to become unwritable after several cycles. Although we can still read most of the other files, attempting to write a new file results in an exception, as shown in the attached image. Any assistance in understanding the cause or any pointers would be greatly appreciated.

Image

@SiddharthPatel-Eaton
Copy link
Author

So apparently what appears is, if a block that contains metadata is somehow overwritten then there are no checks on when the pointers get used and hence it results in this erroneous behavior, but for now once we corrected the logic to ensure block write is proper, we are able to overcome this issue. so closing the issue for now, but it can be a future improvement in how the pointers are checked before use in littlefs, specifically the next pointers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant