Hello,
I need CLA for my current project.
To get started, I ran the IIR2P2Z project from RAM. No major problems there (had to LOAD SYMBOLS from the Run menu).
Now I have copied the complete IIR2P2Z code into my - quite lightweight - project that runs from FLASH.
However, the IIR2P2Z function "void CLA_runTest(void)" does not finish. It is stuck at Task 8 with the blue debug arrow stopped at the first line. This is odd since there is no debug instruction in this CLA Task:
//Task 8 will initialize the variables used in Task 1
interrupt void Cla1Task8 ( void )
{
W2[0] = 1; W2[1] = 2;
W1[0] = 1; W1[1] = 2;
}
The corresponding bit in the MIRUN register is set to 1, which means that Task 8 is still running. The CLA peripheral clock is enabled.
void CLA_runTest(void)
{
int16_t i;
float fError[NUM_SAMPLES];
Cla1ForceTask8andWait(); <--------- STUCK HERE ---------------
WAITSTEP;
for(i=0; i < NUM_SAMPLES; i++)
{
xn = fAdcInput[i];
Cla1ForceTask1andWait();
WAITSTEP;
fBiquadOutput[i] = yn;
fError[i] = fabs(iir_expected[i]-fBiquadOutput[i]);
if(fError[i] < 0.01)
{
pass++;
}
else
{
fail++;
}
}
Is there something I am missing?