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.

[参考译文] CCS/TMS320F2.8027万:我在为IQ数学编程时收到警告

Guru**** 2540720 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/618038/ccs-tms320f28027-i-am-getting-warning-while-programming-for-iq-maths

部件号:TMS320F2.8027万

工具/软件:Code Composer Studio

我正在使用CCSv6

a)我的代码如下所示

#Define PI 3.1.4159万

_iq29 in2,OUT2;
in2 =_IQ29 (0.25 *PI);
OUT2 =_IQ29cos (in2);

b)我收到以下警告

键入#1.6002万-D build attribute vendor section TI missing in "../IQmatx.lib<IQ24cs.obj>":无法确定兼容性

#1.6002万-D Build属性vendor section TI缺少"../IQmath.lib<IQmathTables.obj>":无法确定兼容性

 类型#552-D变量"OUT2"已设置但从未使用

C)当我将上述变量放在监视窗口中并运行程序时,我得到了有关这些变量的以下说明

OUT2   未知错误:找不到标识符:OUT2
输入2     未知错误:未找到标识符:in2.

d)但是,当我暂停程序时,我会获得一些变量值

OUT2379625302   (但右侧值为3.79625062亿)
in2421657088   (但右侧值为4.21657072亿)

e)我的问题

1.为什么我同时收到IQ数学和变量(已设置但从未使用)的警告

2.为什么在运行模式下,我无法看到变量的值。但是,当暂停时,我可以看到

3.钙化和CCS显示的值之间为何存在差异