Page 1 of 2
Program size
Posted:
Mon Dec 18, 2017 3:52 am
by mrred128
FYI.....only a noob in ESP-8266
My esp12e has 4m of flash.....but maximum program size is 1m. Is there a reason why?
Re: Program size
Posted:
Wed Dec 20, 2017 3:59 am
by gdsports
3MB is used for a SPI Flash file system. You can reverse the split (3MB program, 1MB SPIFFS).
Re: Program size
Posted:
Wed Dec 20, 2017 4:16 am
by btidey
Although one can change the split, the maximum program size can also be limited by the development environment.
I believe Arduino allows for up to 1MB maximum or half that if one wants to do OTA update. It would be quite nice if that was extended particularly when using OTA.
Re: Program size
Posted:
Wed Dec 20, 2017 5:13 am
by Pablo2048
1MB code limit its because of the size of cacheable region (hardware limit of ESP8266). You can use 2M/2M division, which gives you 1M for code, 1M for OTA update and 2M for SPIFFS...