Feather ESP32-S2 TFT - SPIFFS won't mount at runtime

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
spiff72
 
Posts: 13
Joined: Tue Sep 29, 2015 10:08 pm

Feather ESP32-S2 TFT - SPIFFS won't mount at runtime

Post by spiff72 »

Hello all,

I posted this before but got no responses, so trying again in the hopes that someone may know if this is fixable...

I have a Feather ESP32-S2-TFT (as well as an ESP32-S3 non-TFT), and I can't get either of them to mount SPIFFS.

I tried the same code on a TTGO T-Display ESP32 module (as an ESP32 DEV board), and it works fine on that board. I also ordered the Feather ESP32 V2 board and that one DOES work with SPIFFS, but I find it doesn't work as well with my capacitive touch application, so I have reverted back to the ESP32 S2 TFT since it works well with the capacitive application. Since SPIFFS isn't possible, I am limited in what types of files I can upload to it for a built-in webserver. I want to be able to include some images and possibly some other JS files, and as far as I can tell this is not possible without SPIFFS.

The serial monitor reports that an error occurred while mounting SPIFFS (from this part of the code):

Code: Select all

// Initialize SPIFFS
void initSPIFFS() {
  if (!SPIFFS.begin()) {
    Serial.println("An error has occurred while mounting SPIFFS");
  }
  Serial.println("SPIFFS mounted successfully");
}

I am using PlatformIO, and everything compiles as it should, and I can Build the filesystem image and upload it with no errors. It just fails to mount SPIFFs when I run it on the board.

My platform version is 5.2.0. It has been updated a few times since I originally asked this question, but the SPIFFS issue continues.

Any suggestions out there?

Thanks!

User avatar
mikeysklar
 
Posts: 14194
Joined: Mon Aug 01, 2016 8:10 pm

Re: Feather ESP32-S2 TFT - SPIFFS won't mount at runtime

Post by mikeysklar »

The ESP32-S3 needed a partitioning change. It was submitted and merged 25 days ago in the espressif/arduino-esp32 github repo.

Take a look at these posts.

viewtopic.php?p=947262#p947262
https://github.com/espressif/arduino-esp32/pull/7438

Could be the same issue for the ESP32-S2 TFT.

User avatar
spiff72
 
Posts: 13
Joined: Tue Sep 29, 2015 10:08 pm

Re: Feather ESP32-S2 TFT - SPIFFS won't mount at runtime

Post by spiff72 »

Thanks for the tip - I will look into that one! The github link mentions that it is ONLY for the S3, so I'm not totally confident - but it's something!

User avatar
mikeysklar
 
Posts: 14194
Joined: Mon Aug 01, 2016 8:10 pm

Re: Feather ESP32-S2 TFT - SPIFFS won't mount at runtime

Post by mikeysklar »

Looks like the same issue for both the ESP32-S3 TFT and QtPy ESP32-S2.

Here is a work around using FATFS to get around the partitioning issue.

viewtopic.php?p=934854

Also a longer thread from June as this was initially detected and getting resolved.

viewtopic.php?p=923625

Locked
Please be positive and constructive with your questions and comments.

Return to “Feather - Adafruit's lightweight platform”