Tool/software:
Hi Champ,
I am asking for my customer.
We are able to get into clatask1 and stop at the __mdebugstop(); but it could ONLY stop at there ONCE. Then, it is stuck in debug mode.
The clatask1 is triggered by ADCAINT1, and continuously triggering, so that clatask1 should be triggered again and again repeatedly.
pseudo code shown below.
__interrupt void ClaTask1()
{
__mdebugstop();
func1 ; // function defined in .cla1
func2 ; // function defined in .c
}
From my understanding, CLA task should never call the functions from .c file unless the function is thru inline declared in the .h file or declared in the .cla file.
I am suspecting the root cause is clatask1 can only stop at the breakpoint once due to following executing to func2, then the CLA PC is pointing to somewhere else, then stuck and never executing the next time clatask1.
Does the expert have thought on this ?
Thanks and regards,
Johnny