Interrupt wdt timeout

yulianchen
Posts: 6
Joined: Wed Jan 24, 2024 4:46 pm

Interrupt wdt timeout

Postby yulianchen » Wed Jan 24, 2024 5:04 pm

Hello everyone,

I hope this message finds you well. I am currently facing an issue with a watchdog timeout, and given my limited expertise, I am struggling to identify the root cause.

If anyone has experience with watchdog timeouts or can offer guidance on how to troubleshoot and identify the underlying cause, I would greatly appreciate your insights

I used an interrupt to trigger the camera's shooting switch, but I've disabled the interrupt in the interrupt's callback function, I'm not sure what's causing my problem, here's my interrupt callback function code and error log

callback function

Code: Untitled.c Select all



static void IRAM_ATTR gpio_isr_handler(void *arg)
{
//
gpio_intr_disable(PRESSURE_INTER_IO);

//
BaseType_t xResult;
BaseType_t pxHigherPriorityTaskWoken = pdFALSE;
xResult = xEventGroupSetBitsFromISR(yc_event, PRESSURE | PRESSURE_FOR_SLEEP, pxHigherPriorityTaskWoken);
if (xResult != pdFAIL)
{
portYIELD_FROM_ISR(pxHigherPriorityTaskWoken);
}

//
gpio_set_level(Camer_Led_Gpio, 0);
}
error log

Code: Untitled.ps1 Select all


Guru Meditation Error: Core  0 panic'ed (Interrupt wdt timeout on CPU0). 

Core 0 register dump:
PC : 0x4209fa22 PS : 0x00060a34 A0 : 0x82003ff6 A1 : 0x3fcf3ba0
0x4209fa22: esp_pm_impl_waiti at /Users/yangyongping/esp/esp-idf/components/esp_pm/pm_impl.c:832

A2 : 0x3fc9da14 A3 : 0x00060a20 A4 : 0x80382d25 A5 : 0x3fcf3ad0
A6 : 0x00060023 A7 : 0x00000003 A8 : 0x8201ee71 A9 : 0x3fcf3b90
A10 : 0x00060a23 A11 : 0x00000000 A12 : 0x00060a20 A13 : 0x3fceb320
A14 : 0x00060023 A15 : 0x00000003 SAR : 0x0000001d EXCCAUSE: 0x00000005
EXCVADDR: 0x00000000 LBEG : 0x00000000 LEND : 0x00000000 LCOUNT : 0x00000000


Backtrace: 0x4209fa1f:0x3fcf3ba0 0x42003ff3:0x3fcf3bc0 0x4038059b:0x3fcf3be0
0x4209fa1f: cpu_ll_waiti at /Users/yangyongping/esp/esp-idf/components/hal/esp32s3/include/hal/cpu_ll.h:182
(inlined by) esp_pm_impl_waiti at /Users/yangyongping/esp/esp-idf/components/esp_pm/pm_impl.c:830

0x42003ff3: esp_vApplicationIdleHook at /Users/yangyongping/esp/esp-idf/components/esp_system/freertos_hooks.c:63

0x4038059b: prvIdleTask at /Users/yangyongping/esp/esp-idf/components/freertos/tasks.c:3987





ELF file SHA256: 44c26fe0ee853467

Core dump started (further output muted)
Received 35 kB...
Core dump finished!
espcoredump.py v0.4-dev
===============================================================
==================== ESP32 CORE DUMP START ====================

Crashed task handle: 0x3fcf3d64, name: 'IDLE', GDB name: 'process 1070546276'

================== CURRENT THREAD REGISTERS ===================
exccause 0x45 (InterruptWDTTimoutCPU0)
excvaddr 0x0
epc1 0x42024b97
epc2 0x0
epc3 0x0
epc4 0x4209fa22
epc5 0x0
epc6 0x0
eps2 0x0
eps3 0x0
eps4 0x60a20
eps5 0x0
eps6 0x0
pc 0x4209fa22 0x4209fa22 <esp_pm_impl_waiti+6>
lbeg 0x0 0
lend 0x0 0
lcount 0x0 0
sar 0x1d 29
ps 0x60a24 395812
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 0x82003ff6 -2113912842
a1 0x3fcf3ba0 1070545824
a2 0x3fc9da14 1070193172
a3 0x60a20 395808
a4 0x80382d25 -2143802075
a5 0x3fcf3ad0 1070545616
a6 0x60023 393251
a7 0x3 3
a8 0x8201ee71 -2113802639
a9 0x3fcf3b90 1070545808
a10 0x60a23 395811
a11 0x0 0
a12 0x60a20 395808
a13 0x3fceb320 1070510880
a14 0x60023 393251
a15 0x3 3

==================== CURRENT THREAD STACK =====================
#0 0x4209fa22 in esp_pm_impl_waiti () at /Users/yangyongping/esp/esp-idf/components/esp_pm/pm_impl.c:832
#1 0x42003ff6 in esp_vApplicationIdleHook () at /Users/yangyongping/esp/esp-idf/components/esp_system/freertos_hooks.c:63
#2 0x4038059e in prvIdleTask (pvParameters=<optimized out>) at /Users/yangyongping/esp/esp-idf/components/freertos/tasks.c:3987

======================== THREADS INFO =========================
Id Target Id Frame
* 1 process 1070546276 0x4209fa22 in esp_pm_impl_waiti () at /Users/yangyongping/esp/esp-idf/components/esp_pm/pm_impl.c:832
2 process 1070512548 0x20000000 in ?? ()
3 process 1070548172 0x4209fa22 in esp_pm_impl_waiti () at /Users/yangyongping/esp/esp-idf/components/esp_pm/pm_impl.c:832
4 process 1070559384 0x40380048 in xQueueReceive (xQueue=0x3fcf6fb8, pvBuffer=0x3fca3430, xTicksToWait=<optimized out>) at /Users/yangyongping/esp/esp-idf/components/hal/esp32s3/include/hal/cpu_ll.h:38
5 process 1070519052 0x403817e0 in vTaskDelay (xTicksToDelay=20) at /Users/yangyongping/esp/esp-idf/components/freertos/tasks.c:1596
6 process 1070551092 0x40382838 in prvProcessTimerOrBlockTask (xListWasEmpty=<optimized out>, xNextExpireTime=<optimized out>) at /Users/yangyongping/esp/esp-idf/components/hal/esp32s3/include/hal/cpu_ll.h:38
7 process 1070525048 0x403817e0 in vTaskDelay (xTicksToDelay=100) at /Users/yangyongping/esp/esp-idf/components/freertos/tasks.c:1596
8 process 1070558004 0x40380048 in xQueueReceive (xQueue=0x3fcf2cfc, pvBuffer=0x3fcf6820, xTicksToWait=<optimized out>) at /Users/yangyongping/esp/esp-idf/components/hal/esp32s3/include/hal/cpu_ll.h:38
9 process 1070535756 0x403801b6 in xQueueSemaphoreTake (xQueue=0x3fcf0be8, xTicksToWait=<optimized out>) at /Users/yangyongping/esp/esp-idf/components/hal/esp32s3/include/hal/cpu_ll.h:38
10 process 1070522580 0x40380048 in xQueueReceive (xQueue=0x3fcee238, pvBuffer=0x3fcedf30, xTicksToWait=<optimized out>) at /Users/yangyongping/esp/esp-idf/components/hal/esp32s3/include/hal/cpu_ll.h:38
11 process 1070562780 0x40380048 in xQueueReceive (xQueue=0x3d859354, pvBuffer=0x3fcf7c10, xTicksToWait=<optimized out>) at /Users/yangyongping/esp/esp-idf/components/hal/esp32s3/include/hal/cpu_ll.h:38
12 process 1070538452 0x403800d2 in xQueueSemaphoreTake (xQueue=0x3fcf1670, xTicksToWait=<optimized out>) at /Users/yangyongping/esp/esp-idf/components/freertos/queue.c:1554
13 process 1070554572 xEventGroupWaitBits (xEventGroup=0x3fceb798, uxBitsToWaitFor=4, xClearOnExit=0, xWaitForAllBits=1, xTicksToWait=4294967295) at /Users/yangyongping/esp/esp-idf/components/freertos/event_groups.c:475
14 process 1070226044 0x40380048 in xQueueReceive (xQueue=0x3fca39d8, pvBuffer=0x3fca5900, xTicksToWait=<optimized out>) at /Users/yangyongping/esp/esp-idf/components/hal/esp32s3/include/hal/cpu_ll.h:38
15 process 1070541372 0x400559e0 in ?? ()
16 process 1070511624 0x40380048 in xQueueReceive (xQueue=0x3fcea4cc, pvBuffer=0x3fceb488, xTicksToWait=<optimized out>) at /Users/yangyongping/esp/esp-idf/components/hal/esp32s3/include/hal/cpu_ll.h:38

==================== THREAD 1 (TCB: 0x3fcf3d64, name: 'IDLE') =====================
#0 0x4209fa22 in esp_pm_impl_waiti () at /Users/yangyongping/esp/esp-idf/components/esp_pm/pm_impl.c:832
#1 0x42003ff6 in esp_vApplicationIdleHook () at /Users/yangyongping/esp/esp-idf/components/esp_system/freertos_hooks.c:63
#2 0x4038059e in prvIdleTask (pvParameters=<optimized out>) at /Users/yangyongping/esp/esp-idf/components/freertos/tasks.c:3987

==================== THREAD 2 (TCB: 0x3fceb9a4, name: 'yc_decode') =====================
#0 0x20000000 in ?? ()

==================== THREAD 3 (TCB: 0x3fcf44cc, name: 'IDLE') =====================
#0 0x4209fa22 in esp_pm_impl_waiti () at /Users/yangyongping/esp/esp-idf/components/esp_pm/pm_impl.c:832
#1 0x42003ff6 in esp_vApplicationIdleHook () at /Users/yangyongping/esp/esp-idf/components/esp_system/freertos_hooks.c:63
#2 0x4038059e in prvIdleTask (pvParameters=<optimized out>) at /Users/yangyongping/esp/esp-idf/components/freertos/tasks.c:3987

==================== THREAD 4 (TCB: 0x3fcf7098, name: 'tiT') =====================
#0 0x40380048 in xQueueReceive (xQueue=0x3fcf6fb8, pvBuffer=0x3fca3430, xTicksToWait=<optimized out>) at /Users/yangyongping/esp/esp-idf/components/hal/esp32s3/include/hal/cpu_ll.h:38
#1 0x4203ba56 in sys_arch_mbox_fetch (mbox=0x3fc9e2ec <tcpip_mbox>, msg=0x3fca3430, timeout=120) at /Users/yangyongping/esp/esp-idf/components/lwip/port/esp32/freertos/sys_arch.c:330
#2 0x4202c0a1 in tcpip_timeouts_mbox_fetch (mbox=<optimized out>, msg=<optimized out>) at /Users/yangyongping/esp/esp-idf/components/lwip/lwip/src/api/tcpip.c:110
#3 tcpip_thread (arg=<optimized out>) at /Users/yangyongping/esp/esp-idf/components/lwip/lwip/src/api/tcpip.c:148

==================== THREAD 5 (TCB: 0x3fced30c, name: 'data_distributi') =====================
#0 0x403817e0 in vTaskDelay (xTicksToDelay=20) at /Users/yangyongping/esp/esp-idf/components/freertos/tasks.c:1596
#1 0x42009894 in data_distribution () at /Users/yangyongping/Desktop/V14/components/yc_data_distribution/yc_data_distribution.c:112

==================== THREAD 6 (TCB: 0x3fcf5034, name: 'Tmr Svc') =====================
#0 0x40382838 in prvProcessTimerOrBlockTask (xListWasEmpty=<optimized out>, xNextExpireTime=<optimized out>) at /Users/yangyongping/esp/esp-idf/components/hal/esp32s3/include/hal/cpu_ll.h:38
#1 prvTimerTask (pvParameters=<optimized out>) at /Users/yangyongping/esp/esp-idf/components/freertos/timers.c:597

==================== THREAD 7 (TCB: 0x3fceea78, name: 'yc_contorl') =====================
#0 0x403817e0 in vTaskDelay (xTicksToDelay=100) at /Users/yangyongping/esp/esp-idf/components/freertos/tasks.c:1596
#1 0x42008697 in contorl () at /Users/yangyongping/Desktop/V14/components/yc_sys_contorl/yc_sys_contorl.c:63

==================== THREAD 8 (TCB: 0x3fcf6b34, name: 'tcp_cmd_task') =====================
#0 0x40380048 in xQueueReceive (xQueue=0x3fcf2cfc, pvBuffer=0x3fcf6820, xTicksToWait=<optimized out>) at /Users/yangyongping/esp/esp-idf/components/hal/esp32s3/include/hal/cpu_ll.h:38
#1 0x4203ba56 in sys_arch_mbox_fetch (mbox=0x3fcf6d80, msg=0x3fcf6820, timeout=2000) at /Users/yangyongping/esp/esp-idf/components/lwip/port/esp32/freertos/sys_arch.c:330
#2 0x4203c9cb in netconn_recv_data (conn=0x3fcf6d70, new_buf=0x3fcf68c0, apiflags=<optimized out>) at /Users/yangyongping/esp/esp-idf/components/lwip/lwip/src/api/api_lib.c:628
#3 0x4203ca7b in netconn_recv_data_tcp (conn=0x3fcf6d70, new_buf=0x3fcf68c0, apiflags=8 '\\b') at /Users/yangyongping/esp/esp-idf/components/lwip/lwip/src/api/api_lib.c:740
#4 0x4203cca1 in netconn_recv_tcp_pbuf_flags (conn=0x3fcf6d70, new_buf=0x3fcf68c0, apiflags=8 '\\b') at /Users/yangyongping/esp/esp-idf/components/lwip/lwip/src/api/api_lib.c:821
#5 0x42029dfb in lwip_recv_tcp (sock=0x3fc9e080 <sockets+24>, mem=0x3d8689ac, len=<optimized out>, flags=0) at /Users/yangyongping/esp/esp-idf/components/lwip/lwip/src/api/sockets.c:1005
#6 0x4202b62b in lwip_recvfrom (s=<optimized out>, mem=0x3d8689ac, len=1500, flags=0, from=0x0, fromlen=<optimized out>) at /Users/yangyongping/esp/esp-idf/components/lwip/lwip/src/api/sockets.c:1272
#7 0x4202b71d in lwip_recv (s=55, mem=0x3d8689ac, len=1500, flags=0) at /Users/yangyongping/esp/esp-idf/components/lwip/lwip/src/api/sockets.c:1337
#8 0x4200dcd7 in recv (flags=0, len=1500, mem=0x3d8689ac, s=<optimized out>) at /Users/yangyongping/esp/esp-idf/components/lwip/lwip/src/include/lwip/sockets.h:646
#9 tcp_rev_check (sock=0x3fc9d700 <sock1>) at /Users/yangyongping/Desktop/V14/components/yc_tcpclient/tcp_api.c:1227
#10 0x4200d11a in tcp_cmd_task (user_url=<optimized out>) at /Users/yangyongping/Desktop/V14/components/yc_tcpclient/yc_tcpclient.c:281

==================== THREAD 9 (TCB: 0x3fcf144c, name: 'ipc0') =====================
#0 0x403801b6 in xQueueSemaphoreTake (xQueue=0x3fcf0be8, xTicksToWait=<optimized out>) at /Users/yangyongping/esp/esp-idf/components/hal/esp32s3/include/hal/cpu_ll.h:38
#1 0x40377cc4 in ipc_task (arg=<optimized out>) at /Users/yangyongping/esp/esp-idf/components/esp_ipc/src/esp_ipc.c:54

==================== THREAD 10 (TCB: 0x3fcee0d4, name: 'tcp_rev_task') =====================
#0 0x40380048 in xQueueReceive (xQueue=0x3fcee238, pvBuffer=0x3fcedf30, xTicksToWait=<optimized out>) at /Users/yangyongping/esp/esp-idf/components/hal/esp32s3/include/hal/cpu_ll.h:38
#1 0x42018bbd in tcp_rev_rev (data=0x3d841508 <error: Cannot access memory at address 0x3d841508>, datalen=2000) at /Users/yangyongping/Desktop/V14/components/yc_msg/yc_msg.c:596
#2 0x42009963 in tcp_rev_task () at /Users/yangyongping/Desktop/V14/components/yc_data_distribution/rev_data_distribution.c:51

==================== THREAD 11 (TCB: 0x3fcf7ddc, name: 'sys_evt') =====================
#0 0x40380048 in xQueueReceive (xQueue=0x3d859354, pvBuffer=0x3fcf7c10, xTicksToWait=<optimized out>) at /Users/yangyongping/esp/esp-idf/components/hal/esp32s3/include/hal/cpu_ll.h:38
#1 0x420a3ff4 in esp_event_loop_run (event_loop=0x3fcf725c, ticks_to_run=4294967295) at /Users/yangyongping/esp/esp-idf/components/esp_event/esp_event.c:566
#2 0x420a400f in esp_event_loop_run_task (args=0x3fcf725c) at /Users/yangyongping/esp/esp-idf/components/esp_event/esp_event.c:115

==================== THREAD 12 (TCB: 0x3fcf1ed4, name: 'ipc1') =====================
#0 0x403800d2 in xQueueSemaphoreTake (xQueue=0x3fcf1670, xTicksToWait=<optimized out>) at /Users/yangyongping/esp/esp-idf/components/freertos/queue.c:1554
#1 0x40377cc4 in ipc_task (arg=<optimized out>) at /Users/yangyongping/esp/esp-idf/components/esp_ipc/src/esp_ipc.c:54

==================== THREAD 13 (TCB: 0x3fcf5dcc, name: 'tcp_send_task') =====================
#0 xEventGroupWaitBits (xEventGroup=0x3fceb798, uxBitsToWaitFor=4, xClearOnExit=0, xWaitForAllBits=1, xTicksToWait=4294967295) at /Users/yangyongping/esp/esp-idf/components/freertos/event_groups.c:475
#1 0x4200d1a8 in tcp_send_task (user_url=<optimized out>) at /Users/yangyongping/Desktop/V14/components/yc_tcpclient/yc_tcpclient.c:126

==================== THREAD 14 (TCB: 0x3fca5a7c, name: 'wifi') =====================
#0 0x40380048 in xQueueReceive (xQueue=0x3fca39d8, pvBuffer=0x3fca5900, xTicksToWait=<optimized out>) at /Users/yangyongping/esp/esp-idf/components/hal/esp32s3/include/hal/cpu_ll.h:38
#1 0x42029794 in queue_recv_wrapper (queue=0x3fca39d8, item=0x3fca5900, block_time_tick=4294967295) at /Users/yangyongping/esp/esp-idf/components/esp_wifi/esp32s3/esp_adapter.c:432
#2 0x420a2294 in ppTask ()

==================== THREAD 15 (TCB: 0x3fcf2a3c, name: 'esp_timer') =====================
#0 0x400559e0 in ?? ()
#1 0x40382d25 in vPortClearInterruptMaskFromISR (prev_level=<optimized out>) at /Users/yangyongping/esp/esp-idf/components/freertos/port/xtensa/include/freertos/portmacro.h:571
#2 vPortExitCritical (mux=<optimized out>) at /Users/yangyongping/esp/esp-idf/components/freertos/port/xtensa/port.c:332
#3 0x40381d59 in ulTaskGenericNotifyTake (uxIndexToWait=<optimized out>, xClearCountOnExit=1, xTicksToWait=4294967295) at /Users/yangyongping/esp/esp-idf/components/freertos/tasks.c:5401
#4 0x42007989 in timer_task (arg=<optimized out>) at /Users/yangyongping/esp/esp-idf/components/esp_timer/src/esp_timer.c:384

==================== THREAD 16 (TCB: 0x3fceb608, name: 'cam_task') =====================
#0 0x40380048 in xQueueReceive (xQueue=0x3fcea4cc, pvBuffer=0x3fceb488, xTicksToWait=<optimized out>) at /Users/yangyongping/esp/esp-idf/components/hal/esp32s3/include/hal/cpu_ll.h:38
#1 0x4200f784 in cam_task (arg=<optimized out>) at /Users/yangyongping/Desktop/V14/components/esp32-camera/driver/cam_hal.c:124


======================= ALL MEMORY REGIONS ========================
Name Address Size Attrs
.rtc.text 0x600fe000 0x21 R XA
.rtc.force_fast 0x600fe024 0x8 RW A
.rtc.force_slow 0x50000010 0x0 RW
.iram0.vectors 0x40374000 0x403 R XA
.iram0.text 0x40374404 0x13a77 R XA
.dram0.data 0x3fc97e80 0x50c0 RW A
.noinit 0x3fc9cf40 0x0 RW
.flash.text 0x42000020 0xa55df R XA
.rtc.entry.literal 0x420a5600 0x0 R XA
.flash.appdesc 0x3c0b0020 0x100 R A
.flash.rodata 0x3c0b0120 0x207b0 RW A
.iram0.text_end 0x40387e7b 0x0 RW
.iram0.bss 0x40387e7c 0x0 RW
.dram0.heap_start 0x3fca1878 0x0 RW
.coredump.tasks.data 0x3fceb9a4 0x160 RW
.coredump.tasks.data 0x20000000 0x70 RW
.coredump.tasks.data 0x3fcf44cc 0x160 RW
.coredump.tasks.data 0x3fcf4250 0x270 RW
.coredump.tasks.data 0x3fcf3d64 0x160 RW
.coredump.tasks.data 0x3fcf3ae0 0x270 RW
.coredump.tasks.data 0x3fcf7098 0x160 RW
.coredump.tasks.data 0x3fca3300 0x2a0 RW
.coredump.tasks.data 0x3fced30c 0x160 RW
.coredump.tasks.data 0x3fced0a0 0x260 RW
.coredump.tasks.data 0x3fcf5034 0x160 RW
.coredump.tasks.data 0x3fcf4de0 0x240 RW
.coredump.tasks.data 0x3fceea78 0x160 RW
.coredump.tasks.data 0x3fcf5b70 0x250 RW
.coredump.tasks.data 0x3fcf6b34 0x160 RW
.coredump.tasks.data 0x3fcf66f0 0x430 RW
.coredump.tasks.data 0x3fcf144c 0x160 RW
.coredump.tasks.data 0x3fcf11d0 0x270 RW
.coredump.tasks.data 0x3fcee0d4 0x160 RW
.coredump.tasks.data 0x3fcede30 0x290 RW
.coredump.tasks.data 0x3fcf7ddc 0x160 RW
.coredump.tasks.data 0x3fcf7b00 0x2d0 RW
.coredump.tasks.data 0x3fcf1ed4 0x160 RW
.coredump.tasks.data 0x3fcf1c50 0x270 RW
.coredump.tasks.data 0x3fcf5dcc 0x160 RW
.coredump.tasks.data 0x3fce2920 0x280 RW
.coredump.tasks.data 0x3fca5a7c 0x160 RW
.coredump.tasks.data 0x3fca57e0 0x290 RW
.coredump.tasks.data 0x3fcf2a3c 0x160 RW
.coredump.tasks.data 0x3fcf27b0 0x280 RW
.coredump.tasks.data 0x3fceb608 0x160 RW
.coredump.tasks.data 0x3fceb370 0x290 RW

===================== ESP32 CORE DUMP END =====================
===============================================================
Done!
Coredump checksum='f5b4716b'
Rebooting...
ESP-ROM:esp32s3-20210327
Build:Mar 27 2021
rst:0xc (RTC_SW_CPU_RST),boot:0x2b (SPI_FAST_FLASH_BOOT)
Saved PC:0x40375d0c
0x40375d0c: esp_restart_noos at /Users/yangyongping/esp/esp-idf/components/esp_system/port/soc/esp32s3/system_internal.c:151 (discriminator 1)

yulianchen
Posts: 6
Joined: Wed Jan 24, 2024 4:46 pm

Re: Interrupt wdt timeout

Postby yulianchen » Fri Oct 11, 2024 3:48 am

Finally I know why this error is caused by the fact that my interrupt pin is multiplexed to a sleep pin, and every time it is multiplexed, the registers on both sides should be all initialized, otherwise some of the values in the registers have been changed, causing some errors, which took me a long time

Who is online

Users browsing this forum: Bing [Bot], Bytespider and 15 guests