Other Parts Discussed in Thread: TMS320DM6437
Hello everybody,
I just started to work with TMS320DM6437 EVM and code composer.
I create in .TCF file:
-2 periodic tasks(PRD), called each 10 ticks
-1 TSK with à TSK_Sleep(10) at the end of the while loop.
like that:
void PRD_Switch() {
SEM_pend(&SEM_DIP, SYS_FOREVER);
SEM_post(&SEM_DIP);
}
void PRD_Led(int nLed){
SEM_pend(&SEM_LED, SYS_FOREVER);
//EVMDM6437_LED_on(0);
SEM_post(&SEM_LED);
}
uint32 count=0;
void TSK_Delay(){
while(1)
{
count++;
TSK_sleep(10);
}
}
I put one breakpoint in begening of each fonction and the program enter in each one regulary.
The problem occus when i uncoment this line : "//EVMDM6437_LED_on(0);" in PRD_Led function.
From that point, the program enters only one time in TSK_Delay () and then never. But it continues entering in PRD_Led and PRD_Switch fonctions regulary.
Anyone have any idea why?
thanks