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.

TMS320F28377D: 在CLA中进行数据比较 编译时提出警告

Part Number: TMS320F28377D


TI的 FAE您好!

我在28377D的CPU2的CLA进行一个数据的大小比较,编译提出了警告。不知道怎么处理。麻烦给点提示,代码如下:

在外部的c文件里定义一个数组

#pragma DATA_SECTION(u32DataCLAToCPU2,"Cla1ToCpuMsgRAM")
uint32_t u32DataCLAToCPU2[20];

CLA的代码如下

//Task 1 : Matrix multiply
__interrupt void Cla1Task1 ( void )
{

u32DataCLAToCPU2[0] += 3;
if(u32DataCLAToCPU2[0] >= 30000)
u32DataCLAToCPU2[0] = 0;
}

编译的提示如下:

"../matrix_mpy.cla", line 107: warning #30013-D: Comparison operation uses integer comparison instruction, which does not operate properly for values that would overflow subtraction.  Use --cla_signed_compare_workaround=on to have the compiler work around this issue.

不知道该怎么处理这个问题