BasicOTA and OTAWebUpdater fails with "abort() was called at PC 0x40136e85 on core 1"

IoTelectronic
Posts: 2
Joined: Sun Aug 30, 2020 8:11 am

BasicOTA and OTAWebUpdater fails with "abort() was called at PC 0x40136e85 on core 1"

Postby IoTelectronic » Sun Aug 30, 2020 8:45 am

Using ESP32-CAM module and Arduino IDE to remotely update the firmware.
Successfully uploaded BasicOTA.ino on the module but when clicked on upload using networl port the following error occurred:

Code: Select all

Start updating sketch
Progress: 0%
Progress: 0%
Progress: 0%
Progress: 0%
Progress: 0%
abort() was called at PC 0x40136e85 on core 1

Backtrace: 0x4008e8b0:0x3ffb1e30 0x4008eae1:0x3ffb1e50 0x40136e85:0x3ffb1e70 0x40089593:0x3ffb1e90 0x400d4149:0x3ffb1eb0 0x400d3dbc:0x3ffb1ed0 0x400d3f9b:0x3ffb1ef0 0x400d39bd:0x3ffb1f10 0x400d3ae6:0x3ffb1f70 0x400d13ca:0x3ffb1f90 0x400d4f95:0x3ffb1fb0 0x4008aff9:0x3ffb1fd0

Rebooting...
ets Jun  8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1216
ho 0 tail 12 room 4
load:0x40078000,len:9720
ho 0 tail 12 room 4
load:0x40080400,len:6352
entry 0x400806b8
Booting
Ready
IP address: 192.168.41.2
the same issue occurs with OTAWebUpdater.ino and it stuck at 65%.

Does anybody knows how to solve the issue?

Regards


IoTelectronic
Posts: 2
Joined: Sun Aug 30, 2020 8:11 am

Re: BasicOTA and OTAWebUpdater fails with "abort() was called at PC 0x40136e85 on core 1"

Postby IoTelectronic » Sun Sep 06, 2020 12:15 pm

Thank you dear lbernstone ,

the decoded exception is:

Code: Select all

Decoding stack results
0x4008e8b0: invoke_abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/panic.c line 155
0x4008eae1: abort at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/panic.c line 170
0x4013a6f9: is_safe_write_address at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/spi_flash/flash_ops.c line 126
0x40089593: spi_flash_erase_sector at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/spi_flash/flash_ops.c line 204
0x400d6c79: EspClass::flashEraseSector(unsigned int) at E:\SW\Elec\Arduino\portable\packages\esp32\hardware\esp32\1.0.4\cores\esp32\Esp.cpp line 298
0x400d68bc: UpdateClass::_writeBuffer() at E:\SW\Elec\Arduino\portable\packages\esp32\hardware\esp32\1.0.4\libraries\Update\src\Updater.cpp line 195
0x400d6a9b: UpdateClass::write(unsigned char*, unsigned int) at E:\SW\Elec\Arduino\portable\packages\esp32\hardware\esp32\1.0.4\libraries\Update\src\Updater.cpp line 303
0x400d139c: std::_Function_handler   >::_M_invoke(const std::_Any_data &) at E:\Elec\Works\ESP32\OTAWebUpdater/OTAWebUpdater.ino line 159
0x400d5bdb: std::function ::operator()() const at e:\sw\elec\arduino\portable\packages\esp32\tools\xtensa-esp32-elf-gcc\1.22.0-80-g6c4433a-5.2.0\xtensa-esp32-elf\include\c++\5.2.0/functional line 2271
0x400d5c21: FunctionRequestHandler::upload(WebServer&, String, HTTPUpload&) at E:\SW\Elec\Arduino\portable\packages\esp32\hardware\esp32\1.0.4\libraries\WebServer\src\detail/RequestHandlersImpl.h line 89
0x400d2f4e: WebServer::_uploadWriteByte(unsigned char) at E:\SW\Elec\Arduino\portable\packages\esp32\hardware\esp32\1.0.4\libraries\WebServer\src\Parsing.cpp line 298
0x400d3be5: WebServer::_parseForm(WiFiClient&, String, unsigned int) at E:\SW\Elec\Arduino\portable\packages\esp32\hardware\esp32\1.0.4\libraries\WebServer\src\Parsing.cpp line 434
0x400d4abd: WebServer::_parseRequest(WiFiClient&) at E:\SW\Elec\Arduino\portable\packages\esp32\hardware\esp32\1.0.4\libraries\WebServer\src\Parsing.cpp line 199
0x400d5e55: WebServer::handleClient() at E:\SW\Elec\Arduino\portable\packages\esp32\hardware\esp32\1.0.4\libraries\WebServer\src\WebServer.cpp line 304
0x400d1636: loop() at E:\Elec\Works\ESP32\OTAWebUpdater/OTAWebUpdater.ino line 174
0x400d811d: loopTask(void*) at E:\SW\Elec\Arduino\portable\packages\esp32\hardware\esp32\1.0.4\cores\esp32\main.cpp line 19
0x4008aff9: vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c line 143
now what is the next steps to solve the issue?

lbernstone
Posts: 829
Joined: Mon Jul 22, 2019 3:20 pm

Re: BasicOTA and OTAWebUpdater fails with "abort() was called at PC 0x40136e85 on core 1"

Postby lbernstone » Sun Sep 06, 2020 2:12 pm

Something is wrong with your partitioning
https://docs.espressif.com/projects/esp ... m/ota.html

ESP_FANBOY
Posts: 2
Joined: Tue Oct 27, 2020 9:03 am

Re: BasicOTA and OTAWebUpdater fails with "abort() was called at PC 0x40136e85 on core 1"

Postby ESP_FANBOY » Sun Nov 01, 2020 7:36 am

Same problem here, seems like a known issue for the ESP-IDF related to erasing SPI flash. https://github.com/espressif/esp-idf/issues/2083 Is there a fix for esp Arduino??


Who is online

Users browsing this forum: No registered users and 91 guests