cancel
Showing results for 
Search instead for 
Did you mean: 

Facing issue while debugging

st5
Visitor

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?

0 REPLIES 0