Hello all,
I created an empty task that executes every 1 msec (vTaskDelay(1/portTICK_PERIOD_MS)),
subscribed it with the WD task
if (esp_task_wdt_add(NULL)!= ESP_OK)
{
// CHECK_ERROR_CODE(); }
if (esp_task_wdt_status(NULL)!= ESP_OK)
{
// CHECK_ERROR_CODE();
}
and resets the watchdog task every loop of that task.
esp_task_wdt_reset()
When I run the program I receive Task watchdog got triggered
Is there something error at my code? any ideas ??
Thanks in advance,
Task watchdog got triggered
Re: Task watchdog got triggered
1/portTICK_PERIOD_MS = 1/10 = 0 (integer)
So change it to vTaskDelay(1)
Even if your task resets the watchdog all other watched tasks have to also reset it individually so you have to give them a chance to execute.
So change it to vTaskDelay(1)
Even if your task resets the watchdog all other watched tasks have to also reset it individually so you have to give them a chance to execute.
Who is online
Users browsing this forum: Google [Bot] and 109 guests