I am using CCS v5 with Bios_5_41_10_36 on target C6748.
I have one uart_hwi, one proc_Swi and one proc_Task, they work in the following way.
uart _hwi{
SWI_or(&Proc_Swi, 1);
}
Proc_Swi{
//some other algo here
SEM_post(Proc_Task)
}
Proc_Task{
while(1){
Sem_pend(Proc_Task, SYS_FOREVER)
My_Algo();
}
}
When My_Algo() is simple and takes shorter time, the code works fine i.e Uart receives start command from terminal, the algo start processing and display result on terminal.
But when My_Algo() is more complicated and takes longer time, looks like sometimes the Uart_Hwi does not response to command. The Uart_Hwi seems restart.
I hope I explained it clearly, can anyone help me on this issue?