-
Notifications
You must be signed in to change notification settings - Fork 7.6k
LittleFS Mount Failure on ESP32-C3 #6579
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
Comments
@me-no-dev I noticed a |
Tried this with the ESP32-C3-DevKitC-02 and did not get the same error, perhaps an issue with Native USB? |
That's an interesting question. Do you have CDC enabled on boot when using the USB? Try toggling it and see if that makes a difference. There is another issue about something similar, and I am unable to reproduce the problem. If we can narrow it down, that will help troubleshooting a lot. |
@lbernstone I've disabled USB CDC on Boot and switched to programming/output over serial, same issue occurs. I've dumped the memory from both the C3 devkit and C3 QTPY, the tool is writing to the same regions. |
You do not have a partition scheme with SPIFFS if you do not provide one. So it fails.
Used this partition.csv
|
@Jason2866 I was using the default partition scheme for this board which is "4mb with SPIFFS". I switched to your partition.csv, it returns the same error. |
Have you used hardware serial with a USB serial converter or the inbuilt USBmodem? |
@Jason2866 Working config is:
Non-working:
Any suggestions? |
|
This is first thing what I tried, but without success.
or
Same result:
|
Update: Or maybe board info related, since HARDWARE: ESP32C3 160MHz, 320KB RAM, 4MB Flash not correct for 2MB module. I will change board config and re-check. Fast change as board esp32-c3-2m.json:
Result - it working now. Solution found, thank you. |
You did not wrote you have a module with 2MB flash. ;-) |
I checked flash size only by incident, actually I have different dev-modules :), but this 2Mb module work with 2.0.2 and previous FW versions with an 4Mb board or a board-hack, but at 2.0.3 - not, seems something changed in the LittleFS code and related to real flash size. And moreover framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.3 stil not working with a 2MB board for 2MB module or board = esp32-c3-devkitm-1 for 4MB module. Only yours release is working for both variants... Update: |
Have you made a custom boards.json? There is none predefined for a 2MB Esp32c3 |
Yes, I made custom board.json for 2mb version and yes - partition table custom and valid as well. Currently all work again with your version of 2.0.3 but still not working with original. Why it stop working unexpected twi days ago - I don't know, but seems this wasn't related with littlefs issue. I will investigate deeper. Anyway - thank you. |
I also have this same issue with the C3 module C3FN4. The issue appeared when I upgraded from version 2.0.2 to 2.0.3. It disappears when I revert version to 2.0.2. I tried rewriting the LittleFS data after upgrade and that also had the same issue. I am using the Minimal SPIFFs configuration but have tried other configurations always getting the same issue when upgraded to 2.0.3. |
@lonerzzz Please post your partitions.csv and the used Arduino IDE settings or if using Platformio the boards.json |
Thanks for the quick response. I have attached the preferences.txt and two of the partition files that I have tried without success. The partition files seem to be the same in both versions 2.0.2 and 2.0.3 so I am guessing the issue is in software changes between the two versions. Let me know if you were looking for different files than what I provided. Just in case, I also upgraded from Arduino 1.18.12 to 1.18.19 and the issue remains. |
Tested SPIFFS with ESP32C3-DevkitC_02 (4Mb flash) with default partition scheme on 2.0.3. |
@P-R-O-C-H-Y It appeared to work for some as reported April 23rd as well but for others it does not work. Any suggestions on how to diagnose the issue? |
See #6572 |
@lonerzzz Can you try to set flash mode to QIO ? |
Sorry for the delayed response. Changing the flash mode to QIO resolved the issue for me. |
@P-R-O-C-H-Y Also working for me when using flash mode QIO. |
Thanks, @P-R-O-C-H-Y, pls keep me in the loop for when the fix is released (I'll need to update the arduino-cli script we use). |
@brentru will add all Related issues to the PR, so it should notify you once there is a PR with fix. |
@P-R-O-C-H-Y Currently it depends how the Arduino libs are compiled. With this the C3 works in mode dout. |
Same here, can this be closed @P-R-O-C-H-Y as fully solved? |
Yes, fixed by PR #6910. Closing |
LittleFS does not allow a Try changing to something else. For instance "/storage" Here's a code snippet that is working:
The code above can be found here: |
Board
ESP32-C3
Device Description
Adafruit QT Py ESP32-C3
Hardware Configuration
Nothing attached.
Version
latest master
IDE Name
Arduino IDE
Operating System
macOS
Flash frequency
80Mhz
PSRAM enabled
no
Upload speed
115200
Description
Attempts to mount a LittleFS filesystem fails on ESP32-C3...
I am using the FS read PR (#6569) as well.
LittleFS configuration settings:
Sketch
Debug Message
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
The text was updated successfully, but these errors were encountered: