-
Notifications
You must be signed in to change notification settings - Fork 66
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
esp_littlefs: mount failed #84
Comments
Here is all my code, I use 320x480 Tft LCD and ESP32 DevKit1: // JPEG decoder library #define TFT_MISO 19 // Define pin CS CD and RST for Each LCD //Adafruit_ILI9341 tft = Adafruit_ILI9341(TFT_CS, TFT_DC, TFT_RST); void setup(void) { // long unsigned debug_start = millis (); Serial.println("INIT!"); if (!SPIFFS.begin()) { void loop(){
} // Serial.println("====================================="); // Open the file (the Jpeg decoder library will close it) if ( !jpgFile ) { // To initialise the decoder and provide the file, we can use one of the three following methods:
} // retrieve infomration about the image // Jpeg images are draw as a set of image block (tiles) called Minimum Coding Units (MCUs) // save the current image block size // record the current time so we can measure how long it takes to draw an image // save the coordinate of the right and bottom edges to assist image cropping // read each MCU block until there are no more
} // calculate how long it took to draw the image // print the results to the serial port } //==================================================================================== fs::File jpgFile; // File handle reference for SPIFFS if ( !( jpgFile = SPIFFS.open( filename, "r"))) { uint8_t data; while ( jpgFile.available()) {
} Serial.println("};\r\n"); |
Thank you for all to see, I have sovled this problem. I think my ESP32 and another things maybe have conflict with LittleFS. So my solution is that: Replacing all the keyword of "LittleFS" to "SPIFFS in the main code. Example: fs::File jpgFile = LittleFS.open( filename, "r"); ----> fs::File jpgFile = SPIFFS.open( filename, "r"); |
SPIFFS is being deprecated. I suggest that LittleFS is used. |
Bodmer, your libraries have been invaluable to a great many people, thanks very much. I also ran across this problem and understand that LittleFS is the preferred file system. All good but how to make that conversion is not very easy to find. Might I suggest that you provide a description? I changed all the SPIFFS reference to LittleFS but that still did not work. I went into the JPEGDecoder.h file and commented out the #define SPIFFS LittleFS line. I have my test code working but I am not sure this is the right way to resolve this issue. Is this all that is needed? |
I am trying to follow this tutorial to show Jped Image wih JPEGDecoder: https://www.youtube.com/watch?v=4eD6recBq4M
I get the following error:
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1184
load:0x40078000,len:13260
load:0x40080400,len:3028
entry 0x400805e4
File Test!
INIT!
E (941) esp_littlefs: ./components/esp_littlefs/src/littlefs/lfs.c:1225:error: Corrupted dir pair at {0x0, 0x1}
E (941) esp_littlefs: mount failed, (-84)
E (944) esp_littlefs: Failed to initialize LittleFS
Can someone please tell me what I need to do to fix this?
The text was updated successfully, but these errors were encountered: