-
Notifications
You must be signed in to change notification settings - Fork 69
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
Finally #5
Comments
@ullix Edit: I just missed your essential question about simulation of SPIFFS flatness. Here is the answer: There are existing examples that simply don't work, because they expect to create a file like: /aaa/bbb/ccc/file.txt at one shot, w/o creating folders. Also when such file is deleted and no more files named /aaa/... the folders to be deleted too. I guess 99% of devs don't know, don't care or just wait for an "official" announcement about SPIFFS depreciation +blessed replacement availability to consider LittleFS on esp32 (or even FAT - it is still unfinished in terms of official/standard FS image uploading). https://github.com/joltwallet/esp_littlefs |
Well, kudos to all developers; unfortunately most of this stuff is beyond my pay grade... The "Power-loss resilience" is still something I wanted to test. So I took the program used for the graphs above, and increased saving rate 10fold to once every 100ms. Then I interrupted the ESP32-Pico by pulling the USB-power plug or hitting the reset button on the device. With a saving cycle - open,print,close - typically taking some 50...80 ms, there would be a very good chance of knocking the cpu out in a middle of saving. I tried hard, but I have to admit that I failed miserably trying to corrupt the Internal-Flash filesystem. Wonderful :-)) Though I don't need it now, I am wondering whether LittleFS can also be used on an external SD card? |
@ullix |
On LittleFS: how do you know that you have a corrupt file system or at least one corrupt file? Would be great if it never happens, but I am not ready yet to believe that. On FFat I routinely and often checked and looked for a file with this file name:
When you find only a single of them, the FFat FS is corrupt and it needs formatting. But what to check on LittleFS??? |
You can use provided means: https://github.com/lorol/LITTLEFS/blob/master/src/LITTLEFS.cpp#L50 See also on ARMmbed discussions, like; littlefs-project/littlefs#68 (comment) |
I found an error code Also, the ARM discussion seems to show that corruption can happen, but will be seen only as a bad directory, suggesting that the individual files in that dir can be read, although they may be correupt and contain nonsense? It would seem that an enhancement to code is valuable which allows an easy call to determine a "corrupt" situation! |
@ullix At Arduino, you just should enjoy the high-level programming and don't worry too much :) |
I am closing this case as it is rather a discussion, not a problem. |
Just wondering if work was done on implementing littlefs on esp32 and SD card as discussed by @ullix ? Are there thoughts from @BrianPugh or @lorol ? I'd like to use littleds on an SD card with ~32GB of storage. |
I struggled with SPIFFS, finding it to be "A Flash Memory Catastrophe" [https://forum.arduino.cc/index.php?topic=648987](ESP32 mit SPIFFS - eine Speicher Katastrophe), using FFat with some success but issues on power failures, but wanting LittleFS for its claimed Power-loss resilience.
Many, many thanks for making it available in the Arduino libs!
I repeated my earlier tests, and can say that at least in writing performance LittleFS beats the others.
SPIFFS is simply not usable. Why would one uses it when FFat and now LittleFs are avaialble?
There does not seem to any reason to simulate behavior of this very poor FS, so why even bother thinking about it?
The text was updated successfully, but these errors were encountered: