2024-11-20 10:11 PM - edited 2024-11-20 10:58 PM
Hello Everyone, I am debugging the code, but when i run the following command " mt_Terminate(_TN_S0);"
void mt_Terminate(unsigned char n)
{
if(mt_TaskStatus(n) != _SLEEPING)
{
// vTaskDelete(thread_info[n].thread_handle);
vTaskSuspend(thread_info[n].thread_handle);
}
}
When i execute this command, this command have to terminate the following thread. but when i execute this command i also terminate he debug session and debug session closed. Can you tell what should be the issue behind this?