Hi
I have since long a laptop with 1.8.19 IDE installed.
It also has since some time 2.2.1 IDE installed.
I can program an ESP32 Devkit C v4.0 module with either of the IDE's on this PC and it works fine.
The ESP also has a SPIFFS and some data are uploaded to SPIFFS with 1.8.19 IDE data upload plugin. It works fine.
The laptop is running windows 10.
Then I have a new laptop with windows 11 and IDE 2.2.1 installed. I have copied my project form the old laptop to the new, and have the same boards and libraries installed, afaik.
It works fine compiling the project on the new laptop and download works to, but the ESP does not run. The log is as below.
It seems the SPIFFS is the problem and the ESP is rebooted because the SPIFFS fails to mount.
The Partition Scheme is set the same on both laptops, 4 MB with spiffs (1.2Mb App/1.5Mb spiffs).
One thing I notice is that the log below says "mode:DIO" but the IDE is set to Flash Mode "QIO". It is however the same on both the old and the new laptop. Changing to Flash Mode DIO on the new laptop does not make any difference.
If I first flash on old laptop both SW and data, the ESP will work fine.
If I then flash SW on new laptop the ESP will not work.
If I then flash on old laptop again, just SW, then the ESP will work fine again, the data on the SPIFFS is still there despite the mounting issue after flash on the new laptop.
I also tried the SPIFFS_Test.ino compiled and flashed from the new laptop and that worked fine. Test completed as expected.
And then, if I flash my software from the new laptop, it does not cause "SPIFFS mount failed", then that part works, but the software does not function as intended, since the SPIFFS data has been overwritten by the SPIFFS_Test.ino sw.
Rewriting the SPIFFS data on the old laptop, and then reseting the EPS, will again cause the mount failure. Reflashing the SW on the old laptop gets it working again.
Any ideas what I am missing, what could be causing this issue?
#include <SPIFFS.h>
void setup() {
Serial.begin(115200);
while (!Serial)
;
ESP_LOGI("INFO", "Starting...");
if (!SPIFFS.begin()) {
ESP_LOGE("ERROR", "Can't open SPIFFS!");
delay(5000);
ESP.restart();
}
rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1344
load:0x40078000,len:13964
load:0x40080400,len:3600
entry 0x400805f0
[ 44][I][vp22.ino:178] setup(): [INFO] Starting...
E (41) SPIFFS: mount failed, -10025
[ 45][E][SPIFFS.cpp:89] begin(): Mounting SPIFFS failed! Error: -1
[ 47][E][vp22.ino:185] setup(): [ERROR] Can't open SPIFFS!
ets Jul 29 2019 12:21:46