You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#include<ESP8266WiFi.h>
#include<FS.h>//Include File System Headersconstchar* filename = "/samplefile.txt";
voidsetup(void) {
Serial.begin(115200);
while (!Serial){} // papy Tirrer çà quand tout est bon
Serial.println("\n");
uint32_t realSize = ESP.getFlashChipRealSize();
uint32_t ideSize = ESP.getFlashChipSize();
FlashMode_t ideMode = ESP.getFlashChipMode();
Serial.printf("Flash real id: %08X\n", ESP.getFlashChipId());
Serial.printf("Flash real size: %u bytes\n\n", realSize);
Serial.printf("Flash ide size: %u bytes\n", ideSize);
Serial.printf("Flash ide speed: %u Hz\n", ESP.getFlashChipSpeed());
Serial.printf("Flash ide mode: %s\n", (ideMode == FM_QIO ? "QIO" : ideMode == FM_QOUT ? "QOUT" : ideMode == FM_DIO ? "DIO" : ideMode == FM_DOUT ? "DOUT" : "UNKNOWN"));
if (ideSize != realSize) {
Serial.println("Flash Chip configuration wrong!\n");
} else {
Serial.println("Flash Chip configuration ok.\n");
}
//Initialize File System/*SPIFFSConfig cfg;cfg.setAutoFormat(false);SPIFFS.setConfig(cfg);Serial.println("SPIFFSConfig\n"); if(SPIFFS.begin()) { Serial.println("SPIFFS Initialize....ok"); } else { Serial.println("SPIFFS Initialization...failed"); } Dir dir = SPIFFS.openDir("/data");while (dir.next()) { Serial.print(dir.fileName()); if(dir.fileSize()) { File f = dir.openFile("r"); Serial.println(f.size()); }}*/
}
voidloop() {
delay(5000);
}
Debug Messages
with
Flash real id: 001440E0
Flash real size: 1048576 bytes
Flash ide size: 1048576 bytes
Flash ide speed: 26000000 Hz
Flash ide mode: DIO
Flash Chip configuration ok.
without
;l␀d��|␀�$�|␃␄␌␄�␌d�␄c<ǃ␃�␛�{�c�␌b��og�l'o���␌#␜p��${$sdp�g�␐␂␄␌�␄l␄��␄␌␄c␌n�|␃l�$�␄c��g'�␀lćd`␂�␛␒'o␌$`␃␏␃g{���o␌␄�␃l`␃␏r��g␄␌�␃l`␃�s␌�x�␌d�s␇�`␃��n�␂;l␀l��|␀�d�|␂␄␌␌�␌d�␌c<��␃�␛�s�c�␌#��ng�lgn���␌c␜p��d{$sdp�g�␐␂␄␄�␄l␄��␄␌␄c␌n�|␃$�d�␄c��o'�␀l��d`␃�␛␒'o␌d`␃␎␃gs���o␌␄�␃$`␃␏r��g␄␌�␃l`␃�s␄�x�␌d�r␇�`␃��'�␂;l␀d��|␀�$�|␂␄␌␌�␌d�␌c<��␃�␛�{�c�␌#��ng�lgn���␌c␜p��${$sdp�g�␐␂␄␄�␄l␄��␄␌␄c␌n�|␃$�d�␄c��o'�␀l��d`␃�␛␒'o␌$`␃␎␃gs���o␌␄�␃$`␃␏r��g␄␌�␃l`␃�s␄�x�␌d�r␇�`␃��'�␂sd␀lܟ<␀�l�<␃␌␄␌�␄l�␌c|��␃�␓�r�#�␄c��gn�dog���␄c␜8��lrd;lx�o�␘␃␌␄�␌d␌��␌␄␌#␄g�|␃d�l�␌#��no�␀$��l ␃�␓␛g'␄l`␃␇␃o;Ǜ�'␄␌�␃d`␃␇{ۓo␌␄�␃$`␃�;␄�p�␄l�{␏�`␃��g�␃
The text was updated successfully, but these errors were encountered:
With #7263 SPIFFS was deprecated in favor of LittleFS. We're not accepting issues related to SPIFFS any longer, unless they're accompanied by a proposed fix or enhancement.
Closing.
Basic Infos
Platform
Settings in IDE
Problem Description
Hello
I changed index.html, style.css in / data
When I execute the code with the remarks "/ * * /"
you're fine he recognizes Flash.
But with the remarks he does not recognize the SPIFF
Why ??
Thank you
MCVE Sketch
Debug Messages
The text was updated successfully, but these errors were encountered: