Is ESP32-S2 SPIFFS not supported with Arduino Framework?
See original GitHub issueHi everyone -
I’ve been trying to get SPIFFS working on an ESP32-S2-MINI-1 module for the past 24 hours with no luck. Everything builds and uploads fine, but I get the following error after restarting:
E (15984) SPIFFS: mount failed, -10025
[ 16439][E][SPIFFS.cpp:114] format(): Formatting SPIFFS failed! Error: -1
[ 16439][E][SPIFFS.cpp:89] begin(): Mounting SPIFFS failed! Error: -1
And here’s my platformio.ini file contents:
[env:esps2]
platform_packages =
framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.0-alpha1
platform = espressif32
board = esp32doit-devkit-v1
framework = arduino
board_build.mcu = esp32s2
monitor_speed = 115200
Has anyone had any success using SPIFFS with an ESP32-S2 using PlatformIO / Arduino-ESP32 Framework?
Issue Analytics
- State:
- Created 2 years ago
- Reactions:2
- Comments:11 (2 by maintainers)
Top Results From Across the Web
Arduino support for ESP32-S2 chips
I guess that the chip ESP32-S2 is not supported at all, no matter what the board? Is there a newer version for arduino...
Read more >Install ESP32 Filesystem Uploader in Arduino IDE
In this article we''ll show you how to upload files to ESP32 filesystem (SPIFFS) using a plugin for the Arduino IDE: the ESP32...
Read more >Espressif 32 — PlatformIO latest documentation
Name MCU Frequency Flash RAM
AI Thinker ESP32‑CAM ESP32 240MHz 4MB 320KB
ALKS ESP32 ESP32 240MHz 4MB 320KB
AZ‑Delivery ESP‑32 Dev Kit C V4 ESP32 240MHz...
Read more >SPIFFS Filesystem - ESP32 - — ESP-IDF Programming Guide ...
Currently, SPIFFS does not support directories, it produces a flat structure. If SPIFFS is mounted under /spiffs , then creating a file with...
Read more >Esp32 - Arduino Library List
AllWize, Arduino-compatible library to interface RC1701HP-OSP/WIZE radio ... Web UI framework for esp8266/esp32/esp32-c3/esp32-s2/esp32-s3 IoT prototyping.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@dmitrykez
I have got it to work by set “flash_mode”: “qio”, in the board file. (same thing as @pattobrien) This will break the boot process of the esp32s2. So i need to flash the bootloader seperate after the upload within platformio. like this esptool.py --chip esp32s2 --port /dev/ttyUSB12 write_flash 0x1000 bootloader_qio_80m.bin, havent figured out why it breaks but anyway
Since some of the comments here are getting a bit old (and I believe framework has been updated in the mean time):
Reflashing the “qio” bootloader as described by @sweproj here above solves LittleFS-problem for me: https://github.com/platformio/platform-espressif32/issues/546#issuecomment-904811339
Only flashing with “qio” bootloader does not work. You need to flash with “dio” bootloader first, then reflash “qio” bootloader.
I use S2 bootloaders from here: https://github.com/espressif/arduino-esp32/tree/master/tools/sdk/esp32s2/bin