enabling OTA crashing

themindfactory
Posts: 65
Joined: Mon Mar 26, 2018 7:57 pm

enabling OTA crashing

Postby themindfactory » Wed Oct 30, 2024 2:24 am

In Arduino under VSCODE IDF I enabled OTA with:
RMaker.enableOTA(OTA_USING_TOPICS);

I then after the uC runs for say 10 seconds I get:

***ERROR*** A stack overflow in task Tmr Svc has been detected.

Code: Select all

Backtrace: 0x40081c96:0x3ffbc8c0 0x400914ed:0x3ffbc8e0 0x400943fe:0x3ffbc900 0x40092d63:0x3ffbc980 0x4009458c:0x3ffbc9a0 0x4009453e:0x4000bff0 |<-CORRUPTED
--- 0x40081c96: panic_abort at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/esp_system/panic.c:466
0x400914ed: esp_system_abort at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/esp_system/port/esp_system_chip.c:84
0x400943fe: vApplicationStackOverflowHook at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:581
0x40092d63: vTaskSwitchContext at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/tasks.c:3841
0x4009458c: _frxt_dispatch at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/portasm.S:450
0x4009453e: _frxt_int_exit at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/portasm.S:245
0x4000bff0: _xtos_set_intlevel in ROM
Is it that IRAM is too full?

Used static DRAM: 66800 bytes ( 57780 remain, 53.6% used)
.data size: 24376 bytes
.bss size: 42424 bytes
Used static IRAM: 127182 bytes ( 3890 remain, 97.0% used)
.text size: 126155 bytes
.vectors size: 1027 bytes
Used Flash size : 1669059 bytes
.text: 1222803 bytes
.rodata: 446000 bytes
Total image size: 1820617 bytes (.bin may be padded larger)

If so how to config for less IRAM usage... ??

Richard.

COREDUMP

Code: Select all

================== CURRENT THREAD REGISTERS ===================
exccause       0x1d (StoreProhibitedCause)
excvaddr       0x0
epc1           0x4008f5e7
epc2           0x0
epc3           0x40196312
epc4           0x0
epc5           0x0
epc6           0x0
eps2           0x0
eps3           0x60f20
eps4           0x0
eps5           0x0
eps6           0x0
pc             0x40081c99          0x40081c99 <panic_abort+21>
lbeg           0x4000c46c          1073792108
lend           0x4000c477          1073792119
lcount         0x0                 0
sar            0x18                24
ps             0x60023             393251
threadptr      <unavailable>
br             <unavailable>
scompare1      <unavailable>
acclo          <unavailable>
acchi          <unavailable>
m0             <unavailable>
m1             <unavailable>
m2             <unavailable>
m3             <unavailable>
expstate       <unavailable>
f64r_lo        <unavailable>
f64r_hi        <unavailable>
f64s           <unavailable>
fcr            <unavailable>
fsr            <unavailable>
a0             0x800914f0          -2146888464
a1             0x3ffbc8c0          1073465536
a2             0x3ffbc90c          1073465612
a3             0x3ffbc94b          1073465675
a4             0x3ffbcb30          1073466160
a5             0x3ffbcb00          1073466112
a6             0x40160c90          1075186832
a7             0x3ffbcb50          1073466192
a8             0x0                 0
a9             0x1                 1
a10            0xd                 13
a11            0x3ffe8825          1073645605
a12            0x3ffbcb00          1073466112
a13            0x3ffbcad0          1073466064
a14            0x3ffc61ac          1073504684
a15            0x3ffbcb00          1073466112

==================== CURRENT THREAD STACK =====================
#0  0x40081c99 in panic_abort (details=0x3ffbc90c "***ERROR*** A stack overflow in task Tmr Svc has been detected.") at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/esp_system/panic.c:466
#1  0x400914f0 in esp_system_abort (details=0x3ffbc90c "***ERROR*** A stack overflow in task Tmr Svc has been detected.") at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/esp_system/port/esp_system_chip.c:84
#2  0x40094401 in vApplicationStackOverflowHook (xTask=<optimized out>, pcTaskName=0x3ffbd14c "Tmr Svc") at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:581
#3  0x40092d66 in vTaskSwitchContext () at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/xtensa/include/xt_utils.h:40
#4  0x4009458f in _frxt_dispatch () at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa\portasm.S:450
Backtrace stopped: Cannot access memory at address 0x4000bfe4

======================== THREADS INFO =========================
  Id   Target Id          Frame
* 1    process 1073467672 0x40081c99 in panic_abort (details=0x3ffbc90c "***ERROR*** A stack overflow in task Tmr Svc has been detected.") at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/esp_system/panic.c:466
  2    process 1073548872 0x4000bff0 in ?? ()
  3    process 1073445780 0x4000bff0 in ?? ()
  4    process 1073446124 0x4008f5c6 in esp_cpu_wait_for_intr () at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/esp_hw_support/cpu.c:121
  5    process 1073446468 0x4008f5c6 in esp_cpu_wait_for_intr () at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/esp_hw_support/cpu.c:121
  6    process 1073609140 0x4000bff0 in ?? ()
  7    process 1073604896 0x4000bff0 in ?? ()
  8    process 1073443132 0x4000bff0 in ?? ()
  9    process 1073444504 0x4000bff0 in ?? ()
  10   process 1073557540 0x4000bff0 in ?? ()
  11   process 1073553096 0x4000bff0 in ?? ()
  12   process 1073445112 0x4000bff0 in ?? ()
  13   process 1073566764 0x4000bff0 in ?? ()


       TCB             NAME PRIO C/B  STACK USED/FREE
---------- ---------------- -------- ----------------
0x3ffbd118          Tmr Svc      1/1         1904/140
0x3ffd0e48              tiT    18/18         560/3020
0x3ffb7b94             main      1/1        1216/2872
0x3ffb7cec            IDLE0      0/0         416/1108
0x3ffb7e44            IDLE1      0/0         416/1104
0x3ffdf9b4        mqtt_task      5/5         896/5244
0x3ffde920  rmaker_queue_ta      5/5         512/3572
0x3ffb713c             ipc0      1/1          448/568
0x3ffb7698             ipc1    24/24          448/572
0x3ffd3024   arduino_events    19/19         688/3392
0x3ffd1ec8          sys_evt    20/20         528/2284
0x3ffb78f8        esp_timer    22/22         432/3660
0x3ffd542c             wifi    23/23         512/6136

==================== THREAD 1 (TCB: 0x3ffbd118, name: 'Tmr Svc') =====================
#0  0x40081c99 in panic_abort (details=0x3ffbc90c "***ERROR*** A stack overflow in task Tmr Svc has been detected.") at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/esp_system/panic.c:466
#1  0x400914f0 in esp_system_abort (details=0x3ffbc90c "***ERROR*** A stack overflow in task Tmr Svc has been detected.") at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/esp_system/port/esp_system_chip.c:84
#2  0x40094401 in vApplicationStackOverflowHook (xTask=<optimized out>, pcTaskName=0x3ffbd14c "Tmr Svc") at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:581
#3  0x40092d66 in vTaskSwitchContext () at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/xtensa/include/xt_utils.h:40
#4  0x4009458f in _frxt_dispatch () at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa\portasm.S:450
Backtrace stopped: Cannot access memory at address 0x4000bfe4

==================== THREAD 2 (TCB: 0x3ffd0e48, name: 'tiT') =====================
#0  0x4000bff0 in ?? ()
#1  0x400943b6 in vPortClearInterruptMaskFromISR (prev_level=<optimized out>) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:568
#2  vPortExitCritical (mux=<optimized out>) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:532
#3  0x40091e30 in xQueueReceive (xQueue=0x3ffcff6c, pvBuffer=0x3ffd0d90, xTicksToWait=<optimized out>) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/queue.c:1576
#4  0x4015ec08 in sys_arch_mbox_fetch (mbox=<optimized out>, msg=0x3ffd0d90, timeout=250) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/lwip/port/freertos/sys_arch.c:317
#5  0x4014b1b3 in tcpip_timeouts_mbox_fetch (mbox=0x3ffc61ac <tcpip_mbox>, msg=0x3ffd0d90) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/lwip/lwip/src/api/tcpip.c:104
#6  0x4014b275 in tcpip_thread (arg=0x0) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/lwip/lwip/src/api/tcpip.c:142
#7  0x400940cd in vPortTaskWrapper (pxCode=0x4014b254 <tcpip_thread>, pvParameters=0x0) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:162

==================== THREAD 3 (TCB: 0x3ffb7b94, name: 'main') =====================
#0  0x4000bff0 in ?? ()
#1  0x400943b6 in vPortClearInterruptMaskFromISR (prev_level=<optimized out>) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:568
#2  vPortExitCritical (mux=<optimized out>) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:532
#3  0x40091f3d in xQueueSemaphoreTake (xQueue=0x3ffcf564, xTicksToWait=<optimized out>) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/queue.c:1796
#4  0x40083ff1 in ESP32RMTController::showPixels (this=<optimized out>) at C:/Users/Richard/RICK ARDUINO/components/arduino/libraries/FastLED/src/platforms/esp/32/idf4_rmt_impl.cpp:446
#5  0x400e598c in RmtController::showPixels (this=0x3ffc4564 <CFastLED::addLeds<WS2811, (unsigned char)14, (EOrder)66>(CRGB*, int, int)::c+36>) at C:/Users/Richard/RICK ARDUINO/components/arduino/libraries/FastLED/src/platforms/esp/32/idf4_rmt.cpp:25
#6  0x400e5b62 in RmtController::showPixels (this=0x3ffc4564 <CFastLED::addLeds<WS2811, (unsigned char)14, (EOrder)66>(CRGB*, int, int)::c+36>, pixels=...) at C:/Users/Richard/RICK ARDUINO/components/arduino/libraries/FastLED/src/platforms/esp/32/idf4_rmt.cpp:45
#7  0x400dbc35 in ClocklessController<14, 52, 52, 103, (EOrder)66, 0, false, 5>::showPixels (this=0x3ffc4540 <CFastLED::addLeds<WS2811, (unsigned char)14, (EOrder)66>(CRGB*, int, int)::c>, pixels=...) at C:/Users/Richard/RICK ARDUINO/components/arduino/libraries/FastLED/src/platforms/esp/32/idf4_clockless_rmt_esp32.h:106
#8  0x400dbd48 in CPixelLEDController<(EOrder)66, 1, 4294967295ul>::show (this=0x3ffc4540 <CFastLED::addLeds<WS2811, (unsigned char)14, (EOrder)66>(CRGB*, int, int)::c>, data=0x3ffc4688 <leds>, nLeds=<optimized out>, scale_pre_mixed=...) at C:/Users/Richard/RICK ARDUINO/components/arduino/libraries/FastLED/src/controller.h:287
#9  0x400e52ae in CLEDController::showLeds (this=0x3ffc4540 <CFastLED::addLeds<WS2811, (unsigned char)14, (EOrder)66>(CRGB*, int, int)::c>, brightness=245 '\365') at C:/Users/Richard/RICK ARDUINO/components/arduino/libraries/FastLED/src/controller.h:109
#10 0x400e5394 in CFastLED::show (this=0x3ffc59e0 <FastLED>, scale=245 '\365') at C:/Users/Richard/RICK ARDUINO/components/arduino/libraries/FastLED/src/FastLED.cpp:77
#11 0x400dbadc in CFastLED::show (this=<optimized out>) at C:/Users/Richard/RICK ARDUINO/components/arduino/libraries/FastLED/src/FastLED.h:735
#12 loop () at C:/Users/Richard/RICK ARDUINO/main/main.cpp:362
#13 0x400dbbb4 in app_main () at C:/Users/Richard/RICK ARDUINO/main/main.cpp:33
#14 0x401f9f66 in main_task (args=<optimized out>) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/app_startup.c:208
#15 0x400940cd in vPortTaskWrapper (pxCode=0x401f9eb0 <main_task>, pvParameters=0x0) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:162

==================== THREAD 4 (TCB: 0x3ffb7cec, name: 'IDLE0') =====================
#0  0x4008f5c6 in esp_cpu_wait_for_intr () at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/esp_hw_support/cpu.c:121
#1  0x400d4fea in esp_vApplicationIdleHook () at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/esp_system/freertos_hooks.c:59
#2  0x40092758 in prvIdleTask (pvParameters=0x0) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/tasks.c:4439
#3  0x400940cd in vPortTaskWrapper (pxCode=0x4009274c <prvIdleTask>, pvParameters=0x0) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:162

==================== THREAD 5 (TCB: 0x3ffb7e44, name: 'IDLE1') =====================
#0  0x4008f5c6 in esp_cpu_wait_for_intr () at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/esp_hw_support/cpu.c:121
#1  0x7ff60000 in ?? ()
#2  0x40082d5f in _xt_handle_exc () at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa\xtensa_vectors.S:805
#3  0x40081c99 in panic_abort (details=0x0) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/esp_system/panic.c:466
#4  0x400914f0 in esp_system_abort (details=0x3ffbc90c "***ERROR*** A stack overflow in task Tmr Svc has been detected.") at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/esp_system/port/esp_system_chip.c:84
#5  0x40094401 in vApplicationStackOverflowHook (xTask=<optimized out>, pcTaskName=0x3ffbd14c "Tmr Svc") at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:581
#6  0x40092d66 in vTaskSwitchContext () at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/xtensa/include/xt_utils.h:40
#7  0x4009458f in _frxt_dispatch () at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa\portasm.S:450
Backtrace stopped: Cannot access memory at address 0x4000bfe4

==================== THREAD 6 (TCB: 0x3ffdf9b4, name: 'mqtt_task') =====================
#0  0x4000bff0 in ?? ()
#1  0x400943b6 in vPortClearInterruptMaskFromISR (prev_level=<optimized out>) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:568
#2  vPortExitCritical (mux=<optimized out>) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:532
#3  0x40091f3d in xQueueSemaphoreTake (xQueue=0x3ffdfcd0, xTicksToWait=<optimized out>) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/queue.c:1796
#4  0x4015eb09 in sys_arch_sem_wait (sem=0x3ffdfcc0, timeout=1000) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/lwip/port/freertos/sys_arch.c:175
#5  0x4016391a in lwip_select (maxfdp1=55, readset=0x3ffe1cd0, writeset=0x0, exceptset=0x3ffe1cd8, timeout=0x3ffe1cc0) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/lwip/lwip/src/api/sockets.c:2099
#6  0x400d81e8 in esp_vfs_select (nfds=55, readfds=0x3ffe1cd0, writefds=0x0, errorfds=0x3ffe1cd8, timeout=0x3ffe1cc0) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/vfs/vfs.c:1037
#7  0x40179949 in base_poll_read (t=0x3ffdfb0c, timeout_ms=1000) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/tcp_transport/transport_ssl.c:168
#8  0x401f3aa4 in esp_transport_poll_read (t=0x3ffdfb0c, timeout_ms=1000) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/tcp_transport/transport.c:156
#9  0x4013a43e in esp_mqtt_task (pv=0x3ffdaaac) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/mqtt/esp-mqtt/mqtt_client.c:1687
#10 0x400940cd in vPortTaskWrapper (pxCode=0x4013a0cc <esp_mqtt_task>, pvParameters=0x3ffdaaac) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:162

==================== THREAD 7 (TCB: 0x3ffde920, name: 'rmaker_queue_ta') =====================
#0  0x4000bff0 in ?? ()
#1  0x400943b6 in vPortClearInterruptMaskFromISR (prev_level=<optimized out>) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:568
#2  vPortExitCritical (mux=<optimized out>) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:532
#3  0x40091e30 in xQueueReceive (xQueue=0x3ffd9904, pvBuffer=0x3ffde840, xTicksToWait=<optimized out>) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/queue.c:1576
#4  0x40137740 in esp_rmaker_handle_work_queue () at C:/Users/Richard/RICK ARDUINO/managed_components/espressif__rmaker_common/src/work_queue.c:48
#5  0x40137783 in esp_rmaker_work_queue_task (param=0x0) at C:/Users/Richard/RICK ARDUINO/managed_components/espressif__rmaker_common/src/work_queue.c:59
#6  0x400940cd in vPortTaskWrapper (pxCode=0x40137764 <esp_rmaker_work_queue_task>, pvParameters=0x0) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:162

==================== THREAD 8 (TCB: 0x3ffb713c, name: 'ipc0') =====================
#0  0x4000bff0 in ?? ()
#1  0x400943b6 in vPortClearInterruptMaskFromISR (prev_level=<optimized out>) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:568
#2  vPortExitCritical (mux=<optimized out>) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:532
#3  0x40093b89 in xTaskGenericNotifyWait (uxIndexToWait=0, ulBitsToClearOnEntry=<optimized out>, ulBitsToClearOnExit=4294967295, pulNotificationValue=0x3ffb7080, xTicksToWait=4294967295) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/tasks.c:6023
#4  0x400864e8 in ipc_task (arg=0x0) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/esp_system/esp_ipc.c:58
#5  0x400940cd in vPortTaskWrapper (pxCode=0x400864b8 <ipc_task>, pvParameters=0x0) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:162

==================== THREAD 9 (TCB: 0x3ffb7698, name: 'ipc1') =====================
#0  0x4000bff0 in ?? ()
#1  0x400943b6 in vPortClearInterruptMaskFromISR (prev_level=<optimized out>) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:568
#2  vPortExitCritical (mux=<optimized out>) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:532
#3  0x40093b89 in xTaskGenericNotifyWait (uxIndexToWait=0, ulBitsToClearOnEntry=<optimized out>, ulBitsToClearOnExit=4294967295, pulNotificationValue=0x3ffb75e0, xTicksToWait=4294967295) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/tasks.c:6023
#4  0x400864e8 in ipc_task (arg=0x1) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/esp_system/esp_ipc.c:58
#5  0x400940cd in vPortTaskWrapper (pxCode=0x400864b8 <ipc_task>, pvParameters=0x1) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:162

==================== THREAD 10 (TCB: 0x3ffd3024, name: 'arduino_events') =====================
#0  0x4000bff0 in ?? ()
#1  0x400943b6 in vPortClearInterruptMaskFromISR (prev_level=<optimized out>) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:568
#2  vPortExitCritical (mux=<optimized out>) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:532
#3  0x40091e30 in xQueueReceive (xQueue=0x3ffd1020, pvBuffer=0x3ffd2f48, xTicksToWait=<optimized out>) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/queue.c:1576
#4  0x400e9d64 in NetworkEvents::_checkForEvent (this=0x3ffc5bd8 <Network+4>) at C:/Users/Richard/RICK ARDUINO/components/arduino/libraries/Network/src/NetworkEvents.cpp:107
#5  0x400e9df8 in operator() (self=0x3ffc5bd8 <Network+4>, __closure=0x0) at C:/Users/Richard/RICK ARDUINO/components/arduino/libraries/Network/src/NetworkEvents.cpp:62
#6  _FUN () at C:/Users/Richard/RICK ARDUINO/components/arduino/libraries/Network/src/NetworkEvents.cpp:63
#7  0x400940cd in vPortTaskWrapper (pxCode=0x400e9df0 <_FUN(void*)>, pvParameters=0x3ffc5bd8 <Network+4>) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:162

==================== THREAD 11 (TCB: 0x3ffd1ec8, name: 'sys_evt') =====================
#0  0x4000bff0 in ?? ()
#1  0x400943b6 in vPortClearInterruptMaskFromISR (prev_level=<optimized out>) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:568
#2  vPortExitCritical (mux=<optimized out>) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:532
#3  0x40091e30 in xQueueReceive (xQueue=0x3ffd1114, pvBuffer=0x3ffd1de0, xTicksToWait=<optimized out>) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/queue.c:1576
#4  0x401f8a10 in esp_event_loop_run (event_loop=0x3ffd10f8, ticks_to_run=4294967295) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/esp_event/esp_event.c:569
#5  0x401f8a28 in esp_event_loop_run_task (args=0x3ffd10f8) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/esp_event/esp_event.c:107
#6  0x400940cd in vPortTaskWrapper (pxCode=0x401f8a1c <esp_event_loop_run_task>, pvParameters=0x3ffd10f8) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:162

==================== THREAD 12 (TCB: 0x3ffb78f8, name: 'esp_timer') =====================
#0  0x4000bff0 in ?? ()
#1  0x400943b6 in vPortClearInterruptMaskFromISR (prev_level=<optimized out>) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:568
#2  vPortExitCritical (mux=<optimized out>) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:532
#3  0x40093a4d in ulTaskGenericNotifyTake (uxIndexToWait=0, xClearCountOnExit=1, xTicksToWait=<optimized out>) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/tasks.c:5932
#4  0x400d727f in timer_task (arg=0x0) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/esp_timer/src/esp_timer.c:475
#5  0x400940cd in vPortTaskWrapper (pxCode=0x400d7270 <timer_task>, pvParameters=0x0) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:162

==================== THREAD 13 (TCB: 0x3ffd542c, name: 'wifi') =====================
#0  0x4000bff0 in ?? ()
#1  0x400943b6 in vPortClearInterruptMaskFromISR (prev_level=<optimized out>) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/include/freertos/portmacro.h:568
#2  vPortExitCritical (mux=<optimized out>) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:532
#3  0x40091e30 in xQueueReceive (xQueue=0x3ffd3338, pvBuffer=0x3ffd5370, xTicksToWait=<optimized out>) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/queue.c:1576
#4  0x401f9ba0 in queue_recv_wrapper (queue=0x3ffd3338, item=0x3ffd5370, block_time_tick=4294967295) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/esp_wifi/esp32/esp_adapter.c:319
#5  0x4009a734 in ppTask ()
#6  0x400940cd in vPortTaskWrapper (pxCode=0x4009a708 <ppTask>, pvParameters=0x0) at C:/Users/Richard/ESP/v5.1.4/esp-idf/components/freertos/FreeRTOS-Kernel/portable/xtensa/port.c:162


======================= ALL MEMORY REGIONS ========================
Name   Address   Size   Attrs
.rtc.text 0x400c0000 0x0 RW
.rtc.dummy 0x3ff80000 0x0 RW
.rtc.force_fast 0x3ff80000 0x0 RW
.rtc_noinit 0x50000000 0x0 RW
.rtc.force_slow 0x50000000 0x0 RW
.rtc_fast_reserved 0x3ff82000 0x0 RW
.iram0.vectors 0x40080000 0x403 R XA
.iram0.text 0x40080404 0x1eccb R XA
.dram0.data 0x3ffbdb60 0x5f38 RW A
.ext_ram_noinit 0x3f800000 0x0 RW
.ext_ram.bss 0x3f800000 0x0 RW
.flash.appdesc 0x3f400020 0x100 R  A
.flash.rodata 0x3f400120 0x6ce30 RW A
.flash.text 0x400d0020 0x12a893 R XA
.phyiram.0 0x401fa8b4 0x2b R XA
.phyiram.1 0x401fa8e0 0x7d R XA
.phyiram.2 0x401fa960 0x21e R XA
.phyiram.3 0x401fab80 0xb2 R XA
.phyiram.6 0x401fac34 0xde R XA
.phyiram.4 0x401fad14 0xea R XA
.phyiram.7 0x401fae00 0xe4 R XA
.phyiram.8 0x401faee4 0x223 R XA
.phyiram.9 0x401fb108 0x183 R XA
.phyiram.10 0x401fb28c 0x8e R XA
.phyiram.13 0x401fb31c 0x188 R XA
.phyiram.15 0x401fb4a4 0xba R XA
.phyiram.14 0x401fb560 0xef R XA
.phyiram.16 0x401fb650 0x1cb R XA
.phyiram.18 0x401fb81c 0x72 R XA
.phyiram.12 0x401fb890 0x78 R XA
.phyiram.17 0x401fb908 0xee R XA
.phyiram.24 0x401fb9f8 0x4a R XA
.phyiram.25 0x401fba44 0x31 R XA
.phyiram.26 0x401fba78 0x103 R XA
.phyiram.27 0x401fbb7c 0x87 R XA
.phyiram.22 0x401fbc04 0x61 R XA
.phyiram.20 0x401fbc68 0x10e R XA
.phyiram.21 0x401fbd78 0x9e R XA
.phyiram.19 0x401fbe18 0x2df R XA
.iram0.data 0x4009f0d0 0x0 RW
.iram0.bss 0x4009f0d0 0x0 RW
.dram0.heap_start 0x3ffce050 0x0 RW
.coredump.tasks.data 0x3ffd0e48 0x154 RW
.coredump.tasks.data 0x3ffd0c10 0x230 RW
.coredump.tasks.data 0x3ffb7b94 0x154 RW
.coredump.tasks.data 0x3ffbb840 0x4c0 RW
.coredump.tasks.data 0x3ffbd118 0x154 RW
.coredump.tasks.data 0x3ffbc800 0x910 RW
.coredump.tasks.data 0x3ffb7cec 0x154 RW
.coredump.tasks.data 0x3ffbc160 0x1a0 RW
.coredump.tasks.data 0x3ffb7e44 0x154 RW
.coredump.tasks.data 0x3ffbc760 0x1a0 RW
.coredump.tasks.data 0x3ffdf9b4 0x154 RW
.coredump.tasks.data 0x3ffe1a60 0x380 RW
.coredump.tasks.data 0x3ffde920 0x154 RW
.coredump.tasks.data 0x3ffde710 0x200 RW
.coredump.tasks.data 0x3ffb713c 0x154 RW
.coredump.tasks.data 0x3ffb6f70 0x1c0 RW
.coredump.tasks.data 0x3ffb7698 0x154 RW
.coredump.tasks.data 0x3ffb74d0 0x1c0 RW
.coredump.tasks.data 0x3ffd3024 0x154 RW
.coredump.tasks.data 0x3ffd2d60 0x2b0 RW
.coredump.tasks.data 0x3ffd1ec8 0x154 RW
.coredump.tasks.data 0x3ffd1cb0 0x210 RW
.coredump.tasks.data 0x3ffb78f8 0x154 RW
.coredump.tasks.data 0x3ffbab50 0x1b0 RW
.coredump.tasks.data 0x3ffd542c 0x154 RW
.coredump.tasks.data 0x3ffd5220 0x200 RW

===================== ESP32 CORE DUMP END =====================

themindfactory
Posts: 65
Joined: Mon Mar 26, 2018 7:57 pm

Re: enabling OTA crashing

Postby themindfactory » Fri Nov 01, 2024 1:50 am

I believe I found the answer, I did not have a OTADATA partition, now I have one, now it works.

Not sure how big I really need but its 8Kbytes so far

Richard.

Who is online

Users browsing this forum: No registered users and 19 guests