程序一直停在这个语句
Cla1ForceTask1andWait();
运行的出的结果矩阵Z所有元素都是0;
void CLA_runTest(void)
{
//
// x[][] = {{10,3,4}, {3,1,2}, {4,2,6}};
//
x[0][0] = 10;
x[0][1] = 3;
x[0][2] = 4;
x[1][0] = 3;
x[1][1] = 1;
x[1][2] = 2;
x[2][0] = 4;
x[2][1] = 2;
x[2][2] = 6;
//
// y[][] = {{1,2,1}, {2,1,2}, {1,2,6}};
//
y[0][0] = 1;
y[0][1] = 2;
y[0][2] = 1;
y[1][0] = 2;
y[1][1] = 1;
y[1][2] = 2;
y[2][0] = 1;
y[2][1] = 2;
y[2][2] = 6;
Cla1ForceTask1andWait();
unsigned int i,j;
int32_t fError[M][N];
for(i=0; i < M; i++)
{
for(j=0; j < N; j++)
{
fError[i][j] = fabs(z_expected[i][j]-z[i][j]);
if(fError[i][j] == 0)
{
pass++;
}
else
{
fail++;
}
}
}
#if 0
Cla1ForceTask2andWait();
WAITSTEP;
Cla1ForceTask3andWait();
WAITSTEP;
Cla1ForceTask4andWait();
WAITSTEP;
Cla1ForceTask5andWait();
WAITSTEP;
Cla1ForceTask6andWait();
WAITSTEP;
Cla1ForceTask7andWait();
WAITSTEP;
#endif
}
Green Deng:
先确认一下你上一个帖子的问题
e2echina.ti.com/…/189662