Page 1 of 1

vTaskDelete

Posted: Tue Jun 20, 2017 2:07 am
by chegewara
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.

Re: vTaskDelete

Posted: Tue Jun 20, 2017 3:11 am
by ESP_Angus
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.