Closed
Description
Board
ESP32-S2
Device Description
Genuine ESP32-S2-Saola-1M
Hardware Configuration
No connections
Version
v2.0.1
IDE Name
PlatformIO
Operating System
Windows 11
Flash frequency
40MHz
PSRAM enabled
no
Upload speed
921600
Description
Getting errors when trying to use SPIFFS with ESP32-S2.
platformio.ini
file:
[env:esp32dev]
platform = https://github.com/platformio/platform-espressif32.git#feature/arduino-idf-master
platform_packages = framework-arduinoespressif32 @ https://github.com/espressif/arduino-esp32.git#2.0.1
platformio/tool-esptoolpy @ https://github.com/tasmota/esptool/releases/download/v3.2/esptool-v3.2.zip
board = esp32dev
framework = arduino
monitor_speed = 115200
build_type = debug
board_build.speed = 921600
board_build.partitions = partitions_custom.csv
board_build.mcu = esp32s2
build_unflags = -std=gnu++11 -fno-rtti
build_flags = -std=gnu++17 -DCORE_DEBUG_LEVEL=5
[...]
partition_custom.csv
file:
# Name, Type, SubType, Offset, Size, Flags
# Note: if you change the phy_init or app partition offset, make sure to change the offset in Kconfig.projbuild
nvs, data, nvs, 0x9000, 0x4000,
otadata, data, ota, 0xD000, 0x2000,
phy_init, data, phy, 0xF000, 0x1000,
ota_0, app, ota_0, , 1900K,
ota_1, app, ota_1, , 1900K,
storage, data, spiffs, , 128K,
Related issues:
#638
platformio/platform-espressif32#619
Sketch
#include <Arduino.h>
#include <SPIFFS.h>
void setup()
{
Serial.begin(115200);
Serial.setDebugOutput(true);
SPIFFS.begin(true);
}
void loop()
{
}
Debug Message
ESP-ROM:esp32s2-rc4-20191025
Build:Oct 25 2019
rst:0x1 (POWERON),boot:0x8 (SPI_FAST_FLASH_BOOT)
SPIWP:0xee
mode:DIO, clock div:2
load:0x3ffe6100,len:0x4e4
load:0x4004c000,len:0x82c
load:0x40050000,len:0x277c
entry 0x4004c174
E (232) SPIFFS: mount failed, -10025
[ 663][E][esp32-hal-misc.c:125] disableCore0WDT(): Failed to remove Core 0 IDLE task from WDT
E (1445) SPIFFS: mount failed, -10025
[ 1875][E][SPIFFS.cpp:114] format(): Formatting SPIFFS failed! Error: -1
[ 1876][E][SPIFFS.cpp:89] begin(): Mounting SPIFFS failed! Error: -1
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.