I’m using FreeRTOS V8.0.0 with pic32MX.
When trying to delete few tasks. att some point the kernel gets stuck at prvCheckTasksWaitingTermination (), in the while loop
while( uxTasksDeleted > ( UBaseType_t ) 0U )
The variable xListIsEmpty keeps having 1 and apprently the kernel can’t delete a task.
my code is like the following
Now i’m not sure in which task this problem is hapenning and this doesn’t happen all the time so it’s hard to catch it.
Any idea on what might be wronge in my code ? and how i track it when it happens ?