Arduino icon indicating copy to clipboard operation
Arduino copied to clipboard

There is a function to get the board flash size ?

Open odilonafonso opened this issue 10 years ago • 4 comments

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: ????

odilonafonso avatar Jul 19 '16 17:07 odilonafonso

Look at the CheckFlashConfig example that comes with the core.

https://github.com/esp8266/Arduino/blob/master/libraries/esp8266/examples/CheckFlashConfig/CheckFlashConfig.ino

Zeron avatar Jul 19 '16 17:07 Zeron

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?

odilonafonso avatar Jul 19 '16 17:07 odilonafonso

I can use SPIFFS when set: Flash Size: "512K (64K SPIFFS)"

odilonafonso avatar Jul 19 '16 18:07 odilonafonso

After some tests, can use: Flash Size: "1MB (512K SPIFFS)". Think is the correct size.

odilonafonso avatar Jul 19 '16 18:07 odilonafonso