Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5

check the FLASH size of a 8266 module
#1
Lightbulb 

Chinese 8266 modules like the Wemos D1 mini clones are a black box to me, specs are hard to find

I needed to know the flash memory size and found this Sketch to check that.
I want to use SPIFFS mem for storing graphics etc., learning now how Werk_AG has used it... ReadManual

more info:
https://www.instructables.com/Using-ESP8266-SPIFFS/

sample output:


Quote:Flash real id:  0016405E
Flash real size: 4194304 bytes

Flash ide  size: 4194304 bytes
Flash ide speed: 40000000 Hz
Flash ide mode:  DIO
Flash Chip configuration ok.



Code:
/*   ESP8266 CheckFlashConfig by Markus Sattler   This sketch tests if the EEPROM settings of the IDE match to the Hardware */ void setup(void) {   Serial.begin(115200); } void loop() {   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");   }   delay(5000); }
Reply




Users browsing this thread: 2 Guest(s)