Hello everyone,
I reinstalled the “EP32 Sketch Data Upload” to use the SPIFFS files of a sketch. To do this, I used IDE version 1.8.19.
Compiling the sketch “SPIFFS_Test.ino” gives a compilation error.
I got several messages:
1.”SPIFFS Warning: mkspiffs canceled!
2. Arduino.h:194:12: error: ‘std::round’ has not been declared
using std::round;
3. cc1plus.exe: warning: unrecognized command line option ‘-Wno-frame-address’
I used SPIFFS a year or two ago without problem..
Is there any change?
Thank you in advance for your advice and opinions.
Hi.
I don’t think there was any change. I didn’t have any problems.
Do you get that error when compiling the code or when uploading the files to the filesystem?
Regards,
Sara
Hi again.
What ESP32 board do you have selected in Tools > Board?
And what is the ESP32 version that you have installed? (Go to Tools > Boards > Boards Manager, search for “ESP32” and check the version that you have.
What is the ESP32 board model you’re using?
Regards,
Sara
Good morning,
I tried
-MUST ESP32 -Dev Kit V1
ESP32 Dev Module
MH and LIVE ESP32 DevKit
There is a compilation error before uploading and the message is always the same, whatever the card:
“In file included from C:\Users\marcj\AppData\Local\Temp\arduino_build_81092\sketch\SPIFFS_Test.ino.cpp:1:0:
C:\Users\marcj\AppData\Local\Arduino15\packages\esp32\hardware\esp32\2.0.14\cores\esp32/Arduino.h:194:12: error: ‘std::round’ has not been declared
using std::round;
^
cc1plus.exe: warning: unrecognized command line option ‘-Wno-frame-address’ ”
This is tested with your “SPIFFS_Test” file from the book
Regards,
Marc
Hi.
I’m not sure, but it seems like a problem with your Arduino installation or something similar.
What boards do you have installed in Tools > Board > Boards Manager > Search for ESP32.. Then, there are two options. You must have the one by Espressif System, version 2.0.11
Regards,
Sara
You are a magician!!!
I use Arduino 1.8.19 and 2.2.1 at the same time. Entering the code in version 2 is much easier, but this version does not support SPIFFS. I regularly update the cards and libraries in both versions. I had already had card (board?) problems between the two versions.. I am (almost) certain to have installed a version 2* on Arduino 1.8. When I checked following your excellent advice, it was version 1.0.6!
I updated. Now it is 2.0.11 for Arduino 1.8.19 and 2.0.14 for Arduino 2.2.1.
FYI, I had to reinstall almost all libraries. No more compilation problems and your book code now works perfectly.
thanks again