AsyncElegantOTA
AsyncElegantOTA copied to clipboard
[BUG] : OTA upload starts but never goes to the end.
Describe the bug The OTA upload never goes through and gets stuck between 50 ~ 70% progress. I have the same phenomenon on several ESP01 cards. The sample code provided by the lib does the same.
Do you get any error/exception stack? If so please paste it here: No upload error in the browser console.
Microcontroller Specs:
- Board: ESP01
- Microcontroller: ESP8266
- Did you modify the partition table? No
- Browser: [chrome/edge]
- Library Version: latest
Additional context
On the page http://xxx.xxx.x.xx/update
after having selected the .bin file, the upload starts but never goes to the end.
Adding info to this bug, I try updating an ESP-01s with 1MB flash, my sketch uses 566KB and my ldscript is "eagle.flash.1m256.ld". So I have to asume that is not posible to update if sketch is bigger that fs partition? Or OTA partition?
@giuliano2505 Correct.
@HWO Can you check if you have an OTA partition for your ESP01 board? This issue is mostly due to low flash memory.
Same issue Board: DOIT ESP32 DEVKIT V1 Partition Table: not an option to change in Arduino IDE Browser: Edge AsyncElegantOTA ver: 2.2.6
From compiler:
Sketch uses 1084725 bytes (82%) of program storage space. Maximum is 1310720 bytes.
Global variables use 42252 bytes (12%) of dynamic memory, leaving 285428 bytes for local variables. Maximum is 327680 bytes.
If I understood above comments, with 82% of memory used by the .bin file, there's no space for OTA? Or should I get another ESP32 that allows for memory partition?
Note: when using "STD" OTA (i.e. https://www.youtube.com/watch?v=1pwqS_NUG7Q&t=248s), total sketch size drops to 1034193 (78%) and OTA works (of course, it's not Elegant :) ). Maybe the limit for the OTA sketch buffer in the ESP32 is 80% of memory?
Thanks!
I am having same issue with OTA notable to finish even for filesystem which are <5kb. Where as the size of the firmware on ESP01-1m ESP8266ex loading stepper functionality. RAM: [===== ] 46.2% (used 37816 bytes from 81920 bytes) Flash: [======= ] 68.2% (used 519224 bytes from 761840 bytes)
I got a problem and solved. It was my mistake. It is all fine and run and update well. My mistake was compile condition On arduino ide. I changed my condition as Hug APP to 16M Flash(3M APP/9.9M FATFS ) well well my esp32 has 16M flash memory So body want to change condition , you have to check your esp32 memory ( have 4M, and 8M, 16M ) any way, depend on me, my esp32 update well and run well.
if your esp32 memory just 4M and your program big than 1.2M, you can not update well. So, you have to change memory upper size than 4M. if your program size smaller than 1.2M... it is ok... you can run well.
any way thanks for this iussue