scottchiefbaker / ESP-WebOTA

Simple web based Over-the-Air (OTA) updates for ESP based projects
MIT License
283 stars 38 forks source link

OTA update is aborting #24

Open MkMunich opened 2 months ago

MkMunich commented 2 months ago

Hi, thx for this easy to use functionality.

Before, I tried https://lastminuteengineers.com/esp32-ota-web-updater-arduino-ide/ and this was more complex as the web server code needed to be in my ino file. Only to mention, that the issue is the same...

The web page displays the OTA dialog and I can choose a file to 'Update'. The Percentage is nearly immediately 37% and then it stops.

The Serial output of my C3-32S-Kit (board: ESP32C3 Dev Module with 2 MB flash) is: Firmware update initiated: PostGPS.ino.bin

abort() was called at PC 0x40381639 on core 0 Core 0 register dump: MEPC : 0x403823de RA : 0x40386ad2 SP : 0x3fc9de30 GP : 0x3fc8de00
TP : 0x3fc7a58c T0 : 0x37363534 T1 : 0x7271706f T2 : 0x33323130
S0/FP : 0x3fc9de5c S1 : 0x3fc9de5c A0 : 0x3fc9de68 A1 : 0x3fc9de4a
A2 : 0x00000000 A3 : 0x3fc9de95 A4 : 0x00000001 A5 : 0x3fc97000
A6 : 0x7a797877 A7 : 0x76757473 S2 : 0x00010000 S3 : 0x00010000
S4 : 0x00000b38 S5 : 0x00001000 S6 : 0x3fcad3d0 S7 : 0x000004c8
S8 : 0x00000073 S9 : 0x3c0dd000 S10 : 0x3fc9e000 S11 : 0x00000000
T3 : 0x6e6d6c6b T4 : 0x6a696867 T5 : 0x66656463 T6 : 0x62613938
MSTATUS : 0x00001801 MTVEC : 0x40380001 MCAUSE : 0x00000007 MTVAL : 0x00000000
MHARTID : 0x00000000

Stack memory: 3fc9de30: 0x00000000 0x00000000 0x3fc9de48 0x4038bf56 0x00000000 0x00000000 0x3fca0030 0x3fc90718 3fc9de50: 0x3fc9de5c 0x3fc90734 0x3fc9de48 0x38333034 0x39333631 0x3fcaa800 0x726f6261 0x20292874 3fc9de70: 0x20736177 0x6c6c6163 0x61206465 0x43502074 0x34783020 0x31383330 0x20393336 0x63206e6f ...

Rebooting... ESP-ROM:esp32c3-api1-20210207 Build:Feb 7 2021 rst:0x3 (RTC_SW_SYS_RST),boot:0xc (SPI_FAST_FLASH_BOOT) Saved PC:0x40381fb6 SPIWP:0xee mode:DIO, clock div:1 load:0x3fcd5810,len:0x438 load:0x403cc710,len:0x90c load:0x403ce710,len:0x2624 entry 0x403cc710 Build date: 240508 18:45 Connecting . Connected to WiFi network with IP Address: 192.168.8.149 WebOTA url : http://.local:8080/webota

I have no idea, who is when calling abort(). After Rebooting... the old scetch is executed (seen by my output line: Build date: 240508 18:45 which should be at 19:00.

Did you see this issue before and can help? How is the update process done; e.g. is the file first loaded into (which) memory, before getting flashed - then, it could be a lack of space problem? Best Regards mkMunich

MkMunich commented 1 month ago

"could be a lack of space problem?" I was able to try with an ESP32 MH-ET LIVE board. This one has 4MB flash. The OTA download is succesful. Well... this is a solution for me, but I'm wondering: I did not find it documented, that just 50% of flash can be downloaded?