看门狗触发但无法正常启动,Task watchdog got triggered
Posted: Mon Nov 07, 2022 2:19 am
请问各位有没有碰到过触发看门狗但程序无法正常启动,死机的想象?
用ESP32芯片做的板子,挂机测试有概率出现看门狗触发,但无法再正常运行,直接死机的现象。
使用的芯片:ESP32
使用的SDK:V4.2
程序使用WiFi联网,同时使用BLE,蓝牙搜索附近广播判断广播包变化,然后通过wifi上报数据给服务器。
挂机5天内,15个设备出现3个出现以下死机现象:
打印以上信息后,后面不再有log输出,设备无法再正常运行。
以下是BACKTRACE:
Core0:
root@H:/mnt/d/HXJ/Code/ESP32/for_crash_debug# xtensa-esp32-elf-addr2line -piaf -e build/ZB.elf 0x400D2148:0x3FFBFAC0 0x40085A09:0x3FFBFAE0 0x4019486C:0x3FFE7A90 0x40194E31:0x3FFE7AB0 0x400930B1:0x3FFE7AE0
0x400d2148: task_wdt_isr at /home/esp/esp-idf/components/esp_common/src/task_wdt.c:187
0x40085a09: _xt_lowint1 at /home/esp/esp-idf/components/freertos/xtensa/xtensa_vectors.S:1105
0x4019486c: btdm_controller_task at ??:?
0x40194e31: btdm_controller_disable at ??:?
0x400930b1: vPortTaskWrapper at /home/esp/esp-idf/components/freertos/xtensa/port.c:143
Core1
root@H:/mnt/d/HXJ/Code/ESP32/for_crash_debug# xtensa-esp32-elf-addr2line -piaf -e build/ZB.elf 0x40081697:0x3FFC00C0 0x40085A09:0x3FFC00E0 0x4000BFED:0x3FFBC400 0x40093311:0x3FFBC410 0x400D238C:0x3FFBC430 0x400D2397:0x3FFBC460 0x400D2435:0x3FFBC480 0x40091431:0x3FFBC4A0 0x400930B1:0x3FFBC4C0
0x40081697: esp_crosscore_isr at /home/esp/esp-idf/components/esp32/crosscore_int.c:80
0x40085a09: _xt_lowint1 at /home/esp/esp-idf/components/freertos/xtensa/xtensa_vectors.S:1105
0x4000bfed: ?? ??:0
0x40093311: vPortExitCritical at /home/esp/esp-idf/components/freertos/xtensa/port.c:419
0x400d238c: esp_task_wdt_reset at /home/esp/esp-idf/components/esp_common/src/task_wdt.c:333
0x400d2397: idle_hook_cb at /home/esp/esp-idf/components/esp_common/src/task_wdt.c:88
0x400d2435: esp_vApplicationIdleHook at /home/esp/esp-idf/components/esp_common/src/freertos_hooks.c:51 (discriminator 1)
0x40091431: prvIdleTask at /home/esp/esp-idf/components/freertos/tasks.c:3386 (discriminator 1)
0x400930b1: vPortTaskWrapper at /home/esp/esp-idf/components/freertos/xtensa/port.c:143
用ESP32芯片做的板子,挂机测试有概率出现看门狗触发,但无法再正常运行,直接死机的现象。
使用的芯片:ESP32
使用的SDK:V4.2
程序使用WiFi联网,同时使用BLE,蓝牙搜索附近广播判断广播包变化,然后通过wifi上报数据给服务器。
挂机5天内,15个设备出现3个出现以下死机现象:
Code: Select all
E (711955) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time:
E (711955) task_wdt: - IDLE0 (CPU 0)
E (711955) task_wdt: Tasks currently running:
E (711955) task_wdt: CPU 0: btController
E (711955) task_wdt: CPU 1: IDLE1
E (711955) task_wdt: Print CPU 0 (current core) backtrace
Backtrace:0x400D2148:0x3FFBFAC0 0x40085A09:0x3FFBFAE0 0x4019486C:0x3FFE7A90 0x40194E31:0x3FFE7AB0 0x400930B1:0x3FFE7AE0
E (711955) task_wdt: Print CPU 1 backtrace
Backtrace:0x40081697:0x3FFC00C0 0x40085A09:0x3FFC00E0 0x4000BFED:0x3FFBC400 0x40093311:0x3FFBC410 0x400D238C:0x3FFBC430 0x400D2397:0x3FFBC460 0x400D2435:0x3FFBC480 0x40091431:0x3FFBC4A0 0x400930B1:0x3FFBC4C0
打印以上信息后,后面不再有log输出,设备无法再正常运行。
以下是BACKTRACE:
Core0:
root@H:/mnt/d/HXJ/Code/ESP32/for_crash_debug# xtensa-esp32-elf-addr2line -piaf -e build/ZB.elf 0x400D2148:0x3FFBFAC0 0x40085A09:0x3FFBFAE0 0x4019486C:0x3FFE7A90 0x40194E31:0x3FFE7AB0 0x400930B1:0x3FFE7AE0
0x400d2148: task_wdt_isr at /home/esp/esp-idf/components/esp_common/src/task_wdt.c:187
0x40085a09: _xt_lowint1 at /home/esp/esp-idf/components/freertos/xtensa/xtensa_vectors.S:1105
0x4019486c: btdm_controller_task at ??:?
0x40194e31: btdm_controller_disable at ??:?
0x400930b1: vPortTaskWrapper at /home/esp/esp-idf/components/freertos/xtensa/port.c:143
Core1
root@H:/mnt/d/HXJ/Code/ESP32/for_crash_debug# xtensa-esp32-elf-addr2line -piaf -e build/ZB.elf 0x40081697:0x3FFC00C0 0x40085A09:0x3FFC00E0 0x4000BFED:0x3FFBC400 0x40093311:0x3FFBC410 0x400D238C:0x3FFBC430 0x400D2397:0x3FFBC460 0x400D2435:0x3FFBC480 0x40091431:0x3FFBC4A0 0x400930B1:0x3FFBC4C0
0x40081697: esp_crosscore_isr at /home/esp/esp-idf/components/esp32/crosscore_int.c:80
0x40085a09: _xt_lowint1 at /home/esp/esp-idf/components/freertos/xtensa/xtensa_vectors.S:1105
0x4000bfed: ?? ??:0
0x40093311: vPortExitCritical at /home/esp/esp-idf/components/freertos/xtensa/port.c:419
0x400d238c: esp_task_wdt_reset at /home/esp/esp-idf/components/esp_common/src/task_wdt.c:333
0x400d2397: idle_hook_cb at /home/esp/esp-idf/components/esp_common/src/task_wdt.c:88
0x400d2435: esp_vApplicationIdleHook at /home/esp/esp-idf/components/esp_common/src/freertos_hooks.c:51 (discriminator 1)
0x40091431: prvIdleTask at /home/esp/esp-idf/components/freertos/tasks.c:3386 (discriminator 1)
0x400930b1: vPortTaskWrapper at /home/esp/esp-idf/components/freertos/xtensa/port.c:143