咨询twdt被触发,idle1没有及时喂狗的问题

xuanfengzhu
Posts: 1
Joined: Fri Dec 04, 2020 8:49 am

咨询twdt被触发,idle1没有及时喂狗的问题

Postby xuanfengzhu » Mon Aug 23, 2021 9:25 am

各位好。
如附件1,我配置twdt超时时间为5s,且监控idle0和idle1。我在app_main中每隔2s钟,循环打印各任务的运行总时长,以及各任务占cpu运行总时长的percent。我感觉idle0和idle1在各自的核上,拥有多达47%的运行时间比例,为什么还提示idle1没有复位看门狗呢?

打印信息如下:
task_name run_count percent
Dat_Asm_Tsk 48649437 3%
main 11937527 <1%
IDLE0 749388916 47%
IDLE1 758251357 47%
Mcast_Tsk 432150 <1%
tiT 4520185 <1%
Tmr Svc 46 <1%
tcp_check_Tsk 7263 <1%
sys_evt 23976 <1%
ipc0 17909 <1%
ipc1 64028 <1%
esp_timer 971625 <1%
TcpClient_Tsk 839758 <1%
wifi 16222888 1%
CMD_Hdl_Tsk 14066 <1%
httpd 112567 <1%

E (798111) task_wdt: Task watchdog got triggered. The following tasks did not reset the watchdog in time:
E (798111) task_wdt: - IDLE1 (CPU 1)
E (798111) task_wdt: Tasks currently running:
E (798111) task_wdt: CPU 0: IDLE0
E (798111) task_wdt: CPU 1: IDLE1
E (798111) task_wdt: Print CPU 0 (current core) backtrace
Backtrace:0x400D4740:0x3FFB0760 0x400829F9:0x3FFB0780 0x4014BEE7:0x3FFBAA20 0x400D4A3E:0x3FFBAA40 0x40089269:0x3FFBAA60 0x40088841:0x3FFBAA80
E (798111) task_wdt: Print CPU 1 backtrace
Backtrace:0x40081C7B:0x3FFB0D60 0x400829F9:0x3FFB0D80 0x4000BFED:0x3FFBB130 0x40088AA1:0x3FFBB140 0x400D4984:0x3FFBB160 0x400D498F:0x3FFBB190 0x400D4A2D:0x3FFBB1B0 0x40089269:0x3FFBB1D0 0x40088841:0x3FFBB1F0

task_name run_count percent
main 11968263 <1%
IDLE0 751027776 47%
IDLE1 758464033 47%
Mcast_Tsk 433156 <1%
tiT 4682762 <1%
Tmr Svc 46 <1%
sys_evt 23976 <1%
ipc0 17909 <1%
ipc1 64028 <1%
CMD_Hdl_Tsk 14066 <1%
esp_timer 974721 <1%
TcpClient_Tsk 874480 <1%
wifi 16378773 1%
Dat_Asm_Tsk 50467764 3%
httpd 112567 <1%
tcp_check_Tsk 7263 <1%
Attachments
配置twdt超时时间和监控idle任务.png
配置twdt超时时间和监控idle任务
配置twdt超时时间和监控idle任务.png (94.17 KiB) Viewed 2072 times

ESP_Gargamel
Posts: 786
Joined: Wed Nov 14, 2018 8:45 am

Re: 咨询twdt被触发,idle1没有及时喂狗的问题

Postby ESP_Gargamel » Thu Aug 26, 2021 3:04 am

基于哪个版本或哪个 commit 的 IDF,方便的话把示例打包上来看一下,包含 sdkconfig。

Who is online

Users browsing this forum: No registered users and 47 guests