There is a function to get the board flash size ?
Basic Infos
Hardware
Hardware: Any ESP board
Description
I want to know the module flash size. There is a function to do this ?
Settings in IDE
Module: Generic ESP8266 Module Flash Size: ????
Look at the CheckFlashConfig example that comes with the core.
https://github.com/esp8266/Arduino/blob/master/libraries/esp8266/examples/CheckFlashConfig/CheckFlashConfig.ino
Thank you @Zeron !!! Well, I will extend my problem. I'm trying to use the area reserved for spiffs but I can not write any use of flash size options 1MB - gives error in execution. I've tried several options without success. Is there a way for me to know what spiffs size should I use?
I can use SPIFFS when set: Flash Size: "512K (64K SPIFFS)"
After some tests, can use: Flash Size: "1MB (512K SPIFFS)". Think is the correct size.