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.

28335工程编译出现ISA问题!

Other Parts Discussed in Thread: CONTROLSUITE

本人在前一版本可以的28335程序上一直过来的程序,现在出现了编译问题

../include/DSP2833x_common/lib/IQmath.lib<IQ24cosPU.obj>" specifies ISA revision "C2800", which is not compatible with ISA revision "C28FPU32" specified in a previous file or on the command line DSP28335_ACI C/C++ Problem

../include/DSP2833x_common/lib/IQmath.lib<IQ24div.obj>" specifies ISA revision "C2800", which is not compatible with ISA revision "C2700" specified in a previous file or on the command line DSP28335_ACI C/C++ Problem

程序中有同时使用浮点跟定点, 所以同时引用了fpu.lib跟iqmath.lib

工程配置也打开了fpu浮点模式

这时候编译就出现问题了

(上一版本可用的28335程序也是同时引用,并无报错,只不过没有用Q格式,全是浮点)

但是,如果不引用iqmath.lib的话,只引用fpu.lib就编译通过

但是程序中关于Q格式计算的=都为0

  • 你既然用浮点了,为何还要用Q格式,可以将IQMATH 定义为float MATH。

    C:\ti\controlSUITE\libs\math\IQmath\v160\doc

    见上面文档中如何配置IQMATH为浮点。

    那个报错也是很可能你没有用rts2800_fpu32.lib.

    https://e2e.ti.com/support/microcontrollers/c2000/f/171/t/347888

    ERIC

  • 这是因为我想用28335根据FOC去转电机

    但是在controlsuit里面只发现ipark.c 谐波函数的float算法

    但是svpwm之类程序的只找到Q格式的