vTaskDelete passing NULL

ignaciovarex wrote on Tuesday, February 26, 2019:

I am using the EFM32gg M4. strange thing when I pass NULL to vTaskDelete I get an assert and I cant figure out why.

ignaciovarex wrote on Tuesday, February 26, 2019:

Even if i try this still causing an assert

static void SYSTEMinitTask(void *pvParameters) {
for (;:wink:
{
SYSTEMinit();

	 if(xTaskSysTaskInit != NULL)
	 {
		 vTaskDelete(xTaskSysTaskInit);
	 }
}
vTaskDelete(NULL);

}

rtel wrote on Wednesday, February 27, 2019:

Which assert() is being hit? Can you step through in the debugger to
see why?