使用例程2837x_sinPU是正确的,设置为FLASH模式,CLA_MATH_TABLES_IN_ROM定义,在CLA中计算sin正确的;把程序、CMD的CLA1mathTables都注释掉也是正确,因为存储空间有限,所以使用CLA_MATH_TABLES_IN_ROM;
但是在自己的程序中就不对了,仿真sin步数是对的,但是得到的数据一直为0,编译的时候出现两个警告:
1、Description Resource Path Location Type
#10247-D null: creating output section "CLA1mathTables" without a SECTIONS specification TESTPRJ C/C++ Problem;
2、Cla1Regs.MVECT1 = (uint16_t)(&Cla1Task1);这段话也会有警告:Description Resource Path Location Type
#770-D conversion from pointer to smaller integer ClaDriver.c /TESTPRJ/one line 110 C/C++ Problem;
比较例程和自己的程序,没有太大差别,请教高手解惑!