https://github.com/EIPStackGroup/OpENer/blob/70d6947c6ef97c5c8ccbc908b94651432e18cf9c/source/src/ports/STM32/opener.c#L102 I use FreeRTOS and CMSIS_OS2, when program run to this line, task will exit without calling vTaskDelete(). This will cause an error on FreeRTOS.