Skip to content

ESP.getFlashChipSize() returns different values #785

Closed
@robertgregor

Description

@robertgregor

Hello,
I have strange behaviour of the ESP.getFlashChipSize(). I have bought several ESP-12 modules. I wanted to check the flash size, to be able to set correct value in the Flash size menu. So I have created simple sketch where I put:
void setup() {
Serial.begin(115200);
Serial.print("Flash size: ");
Serial.println(ESP.getFlashChipSize(), DEC);
}
It gave me 1M flash. OK, I have set it and loaded the big shetch - around Sketch uses 433,064 bytes
Then at the begining I have called this again and I've got Flash size: 524288

How this is possible???

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions