-
-
Notifications
You must be signed in to change notification settings - Fork 700
Is ESP32-S2 SPIFFS not supported with Arduino Framework? #546
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hi @pattobrien! At the moment there is no stable Arduino package for ESP32-S2 so there is no SPIFFS functionality for this MCU. |
Hi @pattobrien, did you by any chance figure a workaround for this? I'm running in exactly the same issue. Trying the spiffs example with the esp-idf is working fine on the esp32s2 but when setting up platform.io with arduino-esp32 I'm getting a similar error:
I've tried a few workaround but so far without much success... |
@simon-jouet unfortunately no, I wasn't able to figure it out after a couple days of trying. I had my team stop digging, and re-prioritized our efforts in hopes that the upcoming official Arduino 2.0.0 release will trigger PlatformIO support for the S2 and C3. |
Thanks @pattobrien, I'm actually surprised this is related to platformIO, I don't really see why that would be the case. I might try to build the same code using the esp-idf and arduino-esp32 as a component to see if there is any difference Do you have by any chance the different things you've tested on your hand? Just so I can give it a go as well without repeating what you've done already :) |
@pattobrien Okay I got it working on my end, just letting you know in case it solves the issue for you too. The problem for me was that my board definition in platformIO was incorrect, my board was set in flash mode dio instead of qio which was the source of the issue. I've modified the board definition to I noticed this because it was working fine on the Arduino IDE but not on platformIO, after a bit of poking around I noticed that flashing the Arduino bootloader fixed the issue and at this point i realised that the difference between the two environments was the flash_mode |
Since platformIO 3.3.1 release |
@dmitrykez As I already mentioned earlier in this thread, filesystems for S2 will be added once there is a stable Arduino core for this SoC. |
I have got it to work by set "flash_mode": "qio", in the board file. (same thing as @pattobrien) |
Arduino 2.0.0 with support for ESP32-S2 & C3 was released last week. |
I'm having the same issue, it's really mindblowing to be honest. I even tried putting flash mode in qio and reflashed bootloader, but still the same issue. What also confuses me, is that the flash mode is set to QIO in Arduino, but when the device actually boots, it says its working in DIO mode. Neither QIO or DIO seems to work for me in PlatformIO, which is quite annoying for my project... I'm now forced to compile with Arduino lol. |
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: #546 (comment) Only flashing with "qio" bootloader does not work. I use S2 bootloaders from here: https://github.com/espressif/arduino-esp32/tree/master/tools/sdk/esp32s2/bin |
How can I make this reflashing? Any tutorial? |
@diegostf Easy, use latest Platformio release for espressif32 and flash your device with Platformio ("build and upload"). That's all. All bugs have been fixed. No workarounds needed anymore. |
Tks @Jason2866 .
Now everything works great. |
Hi 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:
And here's my platformio.ini file contents:
Has anyone had any success using SPIFFS with an ESP32-S2 using PlatformIO / Arduino-ESP32 Framework?
The text was updated successfully, but these errors were encountered: