This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
我想测试一下CLA中三角函数的计算时间,已经用CALatan等函数测试过了,但是在使用sin和atan等math.h中的函数时cla程序在sin函数处停止运行了(i值为0)。
测试程序为:
for(i=0;(float)i < (float)1000;i++)
{
a = sin(1);
// __mdebugstop();
}
#pragma DATA_SECTION(a,"Cla1ToCpuMsgRAM")
float a;
void Cla1Task1()
{
// __mdebugstop();
a=2;
// __mdebugstop();
for(i=0;(float)i < (float)1000;i++)
{
a = sin(1);
// __mdebugstop();
}
a=10;
}
这是完整的ClaTask1的程序;
CPU端执行
Cla1ForceTask1();
while((int)a!=10);
asm(" ESTOP0");
程序并不能执行完while((int)a!=10);,于是查看CLA中a和i的值 a=2;i=0。
若是您比较着急的话,可以将问题发至英文E2E。若是不是很急的话,我会在下周测试后回复
https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/