Thanks again for your answer.
Well, I am starting understanding the needs to perform an OTA upgrade. Since the memory point of view:
1. “Flash chip size is 2x the size of the sketch”.
So, if my flash size is 512k, my sketch should be less than 512k/2=256k.
However, the example OTA sketches I use ( from https://github.com/esp8266/Arduino/blob ... updates.md) are bigger than the required memory size. I have compiled the sketch in the Arduino IDE and getting these results:
1. BasicOTA.ino: 223.302 bytes / 1024 = 218kb. This means I have 256k - 218k = 38k space.
Link: https://github.com/esp8266/Arduino/blob ... sicOTA.ino
2. OTA-mDNS-SPIFFS> 250.710 bytes / 1024 = 244kb. This means I have 256k - 244k = 12k space.
Link: https://github.com/pgollor/esp8266-webconf-mDNS-OTA
Adding my basic routines, I get an sketch about 253k, so I guess can work. I'll make some tests and I will share it this weekend.
Thanks,
A.