Binary size increasing a lot when doing OTA. Why ?

This is a post without code as it is a theoretical question about a size increase when I try to do OTA.

...

My code has a total of 1,375,802 bytes that consume 69% space and 19% memory. So the problem is not lack of memory, but space.

I'm using it in an espcam where I configured it in the Arduino IDE for DEV Module Minimal SPIFFS (1.9Mb / 190 Kb of SPIFFS).

These sizes would suit my purpose well.

But when I went to test OTA, I saw the percentage being decremented in the serial monitor while the binary was being downloaded.

But the information I see changing on the serial monitor while the OTA is running is something like this: X% of 1,906,705 bytes......

And maybe that's why rebooting

Now, why 1,906,705 if the binary is 1,344 Kb when I look at the folder in Windows 10?

When I upload the binary to dropbox I also see its size = 1.3 Mb

Is this increase correct? is it the inclusion of some image required by the OTA process itself?

*I don't use SD CARD in ESPCAM, I use the pins for other purposes (GPIO's).

Grateful

Yes. That is because the OTA has to interact with the new code.

What I was seeing and wondering about was nothing more than the maximum size limit defined in the card settings (in the case of Minimal SPIFFS, 1.9Mb of APP with 190 Kb of SPIFFS)

When performing OTA, this maximum size is shown in the percentage evolution

Luckily I noticed that the rebooting was a name error in the files stored in the dropbox

...

...

thank you gilshultz
Life goes on

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.