Hi all,
My customer has a CLA problem. At first, CLA is running normally. After changing one piece of code in the CLA task, from:
for(i=0;i<1;i++); // case 1
to
for(i=0;i<2;i++); // case 2
CLA doesn't enter task anymore. This is just an empty loop. Actually, the program will never reach this loop because there is "if" condition wrapping this loop and the condition will always be false. It seems that the only difference here is that the code is slightly larger.
Moreover, if the compile optimization is turned off, CLA will not enter task in both cases.
In case 2, I can see the MIFR bit and MIOVF bit is toggling, but the variable with incremental operator in the task is not increasing.
The CLA task is triggered by ADC, at 55kHz. In case 1, it takes CLA 8us to finish the task.
Any idea what might be the cause?
Thanks,
Hang,