-->
Page 1 of 2

46% of program storage space used and OTA...

PostPosted: Sat Jul 25, 2020 3:29 am
by RIN67630
I am rather new to OTA.
my sketch uses ~1100 lines of code and compiles for an ESP8266 E12 like that:

Code: Select allSketch uses 480536 bytes (46%) of program storage space. Maximum is 1044464 bytes.
Global variables use 33464 bytes (40%) of dynamic memory, leaving 48456 bytes for local variables. Maximum is 81920 bytes.


Will I soon get trouble since the OTA needs half of the program memory to update?
I don't need EEPROM, nor SPIFFS.
Have I got a solution to use EEPROM for OTA?

Thank you for your advice.

Re: 46% of program storage space used and OTA...

PostPosted: Sat Jul 25, 2020 4:59 am
by JurajA
the % is calculated only from the partition size reserved for the code

Re: 46% of program storage space used and OTA...

PostPosted: Sat Jul 25, 2020 6:43 am
by RIN67630
Thank you, but i am still confused.
Didn't I read that OTA needs to load twice the code on an update?

Re: 46% of program storage space used and OTA...

PostPosted: Sat Jul 25, 2020 7:34 am
by JurajA
esp-12 has 4 MB flash.