ESP reset inside an ISR

damithpavithra
Posts: 5
Joined: Thu Jul 30, 2020 2:40 pm

ESP reset inside an ISR

Postby damithpavithra » Fri Jul 31, 2020 9:16 am

Hello

My esp 32 resets sometimes and it is not periodic. Sometimes it runs for 20hours without problem and sometimes it is just 20mins or so.
I included the decoded backtrace of CPU1 and serial terminal data. Everytime it has happened, backtrace was same.
Can anyone give some kind of light to this.
Thank you

0x400819b5: i2c_isr_handler_default at C:\Users\VEGA_1010\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\cores\esp32 \esp32-hal-i2c.c line 973

0x40082a45: ets_timer_arm at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/esp32/ets_timer_legacy.c line 83

0x4008a59d: vTaskExitCritical at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/portmux_impl.inc.h line 163

0x4008c2e7: merge_adjacent at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/heap/multi_heap.c line 242

0x4008c96c: verify_allocated_region at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/heap/multi_heap_poisoning.c line 109

0x4008529c: dram_alloc_to_iram_addr at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/heap/heap_caps.c line 46

0x400852d1: heap_caps_malloc at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/heap/heap_caps.c line 82

0x40085795: esp_cpu_reset at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/soc/esp32/cpu_util.c line 49

0x4015caef: _GLOBAL__sub_I__ZNSt12ctype_bynameIcEC2ERKSsj() at /builds/idf/crosstool-NG/.build/xtensa-esp32-elf/build/build-cc-gcc-final/xtensa-esp32-elf/libstdc++-v3/include/bits/locale_facets_nonio.h line 1760

0x4015cac1: _GLOBAL__sub_I__ZNSt12ctype_bynameIcEC2ERKSsj() at /builds/idf/crosstool-NG/.build/xtensa-esp32-elf/build/build-cc-gcc-final/xtensa-esp32-elf/libstdc++-v3/include/bits/locale_facets_nonio.h line 1373

0x400dd27e: HTTPClient::handleHeaderResponse() at C:\Users\VEGA_1010\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\HTTPClient\src\HTTPClient.cpp line 1140

0x400dc74d: WiFiScanClass::scanNetworks(bool, bool, bool, unsigned int) at C:\Users\VEGA_1010\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\WiFi\src\WiFiScan.cpp line 89

0x400dc9c9: HTTPClient::beginInternal(String, char const*) at C:\Users\VEGA_1010\AppData\Local\Arduino15\packages\esp32\hardware\esp32\1.0.4\libraries\HTTPClient\src\HTTPClient.cpp line 261

0x40089405: vQueueDelete at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/queue.c line 1796


Guru Meditation Error: Core 1 panic'ed (Interrupt wdt timeout on CPU1)
Core 1 register dump:
PC : 0x400819b5 PS : 0x00060034 A0 : 0x80082a48 A1 : 0x3ffbe790
A2 : 0x3ffbed78 A3 : 0x00000004 A4 : 0x00000200 A5 : 0x60013000
A6 : 0x000007b9 A7 : 0x000007bd A8 : 0x60013000 A9 : 0x3ffbe770
A10 : 0x3ffbed78 A11 : 0x3ffb9070 A12 : 0x80085798 A13 : 0x3ffb9070
A14 : 0x00000050 A15 : 0x00000000 SAR : 0x00000016 EXCCAUSE: 0x00000006
EXCVADDR: 0x00000000 LBEG : 0x4000c2e0 LEND : 0x4000c2f6 LCOUNT : 0xffffffff
Core 1 was running in ISR context:
EPC1 : 0x4000bff0 EPC2 : 0x00000000 EPC3 : 0x00000000 EPC4 : 0x400819b5

Backtrace: 0x400819b5:0x3ffbe790 0x40082a45:0x3ffbe7b0 0x40084ff9:0x3ffbe7d0 0x4000bfed:0x3ffb8fe0 0x4008a59d:0x3ffb8ff0 0x4008c2e7:0x3ffb9010 0x4008c96c:0x3ffb9030 0x4008529c:0x3ffb9050 0x400852d1:0x3ffb9070 0x40085795:0x3ffb9090 0x4000beaf:0x3ffb90b0 0x4015caef:0x3ffb90d0 0x4015cac1:0x3ffb90f0 0x400dd27e:0x3ffb9110 0x400dc74d:0x3ffb9130 0x400dc9c9:0x3ffb9220 0x40089405:0x3ffb9250

Core 0 register dump:
PC : 0x40169b7a PS : 0x00060734 A0 : 0x800e6141 A1 : 0x3ffbc100
A2 : 0x00000000 A3 : 0x00000001 A4 : 0x80089618 A5 : 0x3ffbc020
A6 : 0x00000000 A7 : 0x3ffbbe00 A8 : 0x800e5182 A9 : 0x3ffbc0d0
A10 : 0x00000000 A11 : 0x00000001 A12 : 0x80089618 A13 : 0x3ffbc000
A14 : 0x00000000 A15 : 0x3ffbbe00 SAR : 0x00000000 EXCCAUSE: 0x00000006
EXCVADDR: 0x00000000 LBEG : 0x00000000 LEND : 0x00000000 LCOUNT : 0x00000000

Backtrace: 0x40169b7a:0x3ffbc100 0x400e613e:0x3ffbc120 0x4008ac15:0x3ffbc140 0x40089405:0x3ffbc160

Who is online

Users browsing this forum: No registered users and 14 guests