Hi,
I have created a task with xEventGroupWaitBits, to set the eventbit i using rtos timer callback function for every 10 sec. But I'm receiving task wdt trigger for every 5 sec.
xTaskCreate(Task, "Data Collector Task", 2048, NULL, configMAX_PRIORITIES, NULL) == pdTRUE;
dataTimer = xTimerCreate("Timer", 10*1000, pdTRUE, (void *)0,(TimerCallbackFunction_t)TimerCallBack);
xTimerStart(dataTimer, 0);
static void Task(void *pvParameters)
{
EventBits_t eventRecieved = 0;
while(1)
{
eventRecieved = xEventGroupWaitBits(dataEvent, Flag, pdTRUE, pdFALSE, portMAX_DELAY);
if((eventRecieved & Flag) == Flag)
{
...........
}
}
}
static void TimerCallBack(TimerHandle_t xTimer)
{
xEventGroupSetBits(dataEvent, Flag);
}
1.How should I avoid this task wdt ?
2. Any other way to handle wdt without deleting it?
Task wdt triggering while eventgroupwaitbits in task
-
- Posts: 9730
- Joined: Thu Nov 26, 2015 4:08 am
Re: Task wdt triggering while eventgroupwaitbits in task
Doesn't look like your issue is in the snippet that you posted.
-
- Posts: 1707
- Joined: Mon Oct 17, 2022 7:38 pm
- Location: Europe, Germany
Re: Task wdt triggering while eventgroupwaitbits in task
You sure about that?using rtos timer callback function for every 10 sec
Code: Select all
xTimerCreate("Timer", 10*1000, ...
Who is online
Users browsing this forum: No registered users and 112 guests