ESP32C3 SPIFFS->SPIFFS_test SPIFFS: mount failed, -10025

zhang.yu
Posts: 3
Joined: Wed May 18, 2022 7:42 am

ESP32C3 SPIFFS->SPIFFS_test SPIFFS: mount failed, -10025

Postby zhang.yu » Wed May 18, 2022 9:16 am

  1. #define FORMAT_SPIFFS_IF_FAILED true
  2.  
  3. void setup(){
  4.     Serial.begin(115200);
  5.     if(!SPIFFS.begin(FORMAT_SPIFFS_IF_FAILED)){
  6.         Serial.println("SPIFFS Mount Failed");
  7.         return;  }
  8.   .....  }
16:16:10.181 -> ESP-ROM:esp32c3-api1-20210207
16:16:10.181 -> Build:Feb 7 2021
16:16:10.181 -> rst:0x1 (POWERON),boot:0xc (SPI_FAST_FLASH_BOOT)
16:16:10.181 -> SPIWP:0xee
16:16:10.181 -> mode:DIO, clock div:1
16:16:10.181 -> load:0x3fcd6100,len:0x38c
16:16:10.181 -> load:0x403ce000,len:0x6a8
16:16:10.181 -> load:0x403d0000,len:0x2358
16:16:10.181 -> SHA-256 comparison failed:
16:16:10.181 -> Calculated: 4ab8657f6f5aa80b81c7dd649db3bd64a98999ed7c65acc5a2ab77ce80caf525
16:16:10.228 -> Expected: 6babbc7b9ea63e04e0fc89ec224f6268aa3f84392018f73ab33721f768ce2eb6
16:16:10.228 -> Attempting to boot anyway...
16:16:10.228 -> entry 0x403ce000
16:16:10.322 -> E (159) SPIFFS: mount failed, -10025
16:16:11.430 -> E (1263) SPIFFS: mount failed, -10025
16:16:11.430 -> SPIFFS Mount Failed


Example of Arduino ESP32 SPIFFS->SPIFFS_test

is there something wrong with my dev borad?

zhang.yu
Posts: 3
Joined: Wed May 18, 2022 7:42 am

Re: ESP32C3 SPIFFS->SPIFFS_test SPIFFS: mount failed, -10025

Postby zhang.yu » Fri May 20, 2022 9:52 am

I got it!
I replaced a lib file
libspi_flash.a
from esp-idf-v4.4 to ~\Arduino15\packages\esp32\hardware\esp32\2.0.3\tools\sdk\esp32c3\qspi_qspi\ .

Then, everything is fine.

Who is online

Users browsing this forum: No registered users and 58 guests