Skip to main content
Visitor II
November 21, 2024
Question

Facing issue while debugging

  • November 21, 2024
  • 0 replies
  • 393 views

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?