Chat here about code rewrites, mods, etc... with respect to the github project https://github.com/esp8266/Arduino

Moderator: igrr

User avatar
By engrkhawaja
#86895 Hi,
My Sketch Size is about 517032 bytes. I think it might increase after adding few more features.

So it certainly doesn't comply with OTA Size of 512KB, but will the OTA work on ~1019Kb?

As I don't see any difference in compilation.

Please guide the affect of 2 above.

Thanks
User avatar
By JurajA
#86897 why would file system or OTA partition size selection do have something with compilation?
the maximum application size for esp8266 is 1MB, so on a 4 MB flash a 1 MB partition is always reserved for code
User avatar
By btidey
#86899 It won't affect the compilation.

The difference is that in order to do OTA with program sizes up to 1MB the Flash memory has to be partioned in a way that allows 2 1MB programs to be present (one is the current one and one is the new one being downloaded.

This means that with a 4MB flash size then at least 2MB must be allocated to program space. On Arduino IDE originally this meant selecting the 3MB PS 1M SPIFFS, but more recent versions allows selecting 2MB PS 2MB SPIFFS which still allows for a maximum 1MB program size while leaving more free for SPIFFS.