Task watchdog got triggered. The following tasks/users did not reset the watchdog in time:

wishlucky
Posts: 6
Joined: Tue Aug 15, 2023 5:36 am

Task watchdog got triggered. The following tasks/users did not reset the watchdog in time:

Postby wishlucky » Thu Sep 14, 2023 1:40 am

环境 :vscode + esp-idf
您好:
问题日志:
Backtrace: 0x4037B5E6:0x3FC988B0 0x40376FA1:0x3FC988D0 0x4200A7B1:0x3FCB5640 0x403817E9:0x3FCB5660

E (96186) task_wdt: Task watchdog got triggered. The following tasks/users did not reset the watchdog in time:
E (96186) task_wdt: - IDLE (CPU 1)
E (96186) task_wdt: Tasks currently running:
E (96186) task_wdt: CPU 0: IDLE
E (96186) task_wdt: CPU 1: gatts_write
E (96186) task_wdt: Print CPU 1 backtrace

Backtrace: 0x4037B5E6:0x3FC988B0 0x40376FA1:0x3FC988D0 0x4200A7B1:0x3FCB5640 0x403817E9:0x3FCB5660

使用gatts_table_creat_demo 历程重新创建了一freertos的任务,来接收 蓝牙 收到的数据
task_created = xTaskCreate(gatts_write_characteristic_task, "gatts_write", 6144, NULL, 15, NULL);
assert(task_created == pdTRUE);

任务函数如下,就会出现上面的log调试信息?触发了看门狗
void gatts_write_characteristic_task(void *arg)
{
static uint16_t handle_last = 0;

while (1)
{

if (xQueueReceive(gatts_read_queue, p_packet->sendBuf, 100) == pdTRUE)
{

}
}
}

任务函数修改如下 ,运行正常
void gatts_write_characteristic_task(void *arg)
{
static uint16_t handle_last = 0;

while (1)
{
vTaskDelay(1);
}
}

这是因为每个任务函数的阻塞的时间是有限制的吗?不能一直等待??等待时间也不能过长吗?

Who is online

Users browsing this forum: No registered users and 50 guests