vTaskDelete

chegewara
Posts: 2375
Joined: Wed Jun 14, 2017 9:00 pm

vTaskDelete

Postby chegewara » Tue Jun 20, 2017 2:07 am

Im not sure this is bug but it made me big headache. I commented vTaskDelete() in my function and application crashed all the time. Thats fine, i understand its natural behavior, but debuging show all the time its problem with last line in function where vTaskDelete is missing. It took me a lot to figure it out what is wrong with my simple code.

ESP_Angus
Posts: 2344
Joined: Sun May 08, 2016 4:11 am

Re: vTaskDelete

Postby ESP_Angus » Tue Jun 20, 2017 3:11 am

One of the FreeRTOS requirements is that tasks never return, so if you want the task to go away it needs to call vTaskDelete(NULL).

That said, there may be something we can do detect this and handle it in a way which is easier to debug.

Who is online

Users browsing this forum: No registered users and 79 guests