-
Notifications
You must be signed in to change notification settings - Fork 13.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESP.getFlashChipSize() returns different values #785
Comments
Hello, OK, I have found on google interresting thing, that the size is stored in the flash and it is overwritten when there is a bin download. So this is not relevant and better solution is to check the chipId and based on this dedicate the real flash size. Maybe you can add the comment to the reference manual, because it can be confusing. |
documentation mentions this:
|
may this helps you:
|
Hi, I added ESP.getFlashChipRealSize() function to the documentation. I couldn't determine flash size of my ESP based on getFlashChipSize function, so I was googling and found this: esp8266#785 I tested functionality and now adding here to official documentation. Cheers!
Hi, I added ESP.getFlashChipRealSize() function to the documentation. I couldn't determine flash size of my ESP based on getFlashChipSize function, so I was googling and found this: #785 I tested functionality and now adding here to official documentation. Cheers!
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???
The text was updated successfully, but these errors were encountered: