SPIFFS not working anymore

viktak
Posts: 8
Joined: Thu Jul 30, 2020 5:37 pm

SPIFFS not working anymore

Postby viktak » Thu May 18, 2023 9:59 am

Dear All,
I have some ESP32 projects I developed in a past few years that I want to bring up to date. Previously I was using older versions of the espressif32 platform, like this:

Code: Select all

[env:esp32dev]
platform = espressif32@^3.5.0
Everything used to work fine. When I convert my projects to anything at or above 4.0.0 my projects compile and upload correctly (including the SPIFFS), but when it arrives to initializing the file system, I get the following error:

Code: Select all

E (1074) SPIFFS: mount failed, -10025
I can't find anything related on the internet that is relevant, i.e. after version 4.0.0

Any idea what is wrong here?

Thanks in advance for any pointers!

viktak
Posts: 8
Joined: Thu Jul 30, 2020 5:37 pm

Re: SPIFFS not working anymore

Postby viktak » Thu May 18, 2023 10:40 am

Well, I figured it out:

Previously, I had the following line in my platformio.ini:

Code: Select all

board_build.filesystem = littlefs
Once I removed it, I could mount the file system, and my code works as expected. The only minor issue remaining, is that now every time I load a web page, I get the following error:
[E][WebServer.cpp:649] _handleRequest(): request handler not found
I hope this will be of someone in the same shoes...

Who is online

Users browsing this forum: No registered users and 35 guests