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.

CCS5.5 F28035 开编译优化导致程序出错



你好,

我在CCS5.5 定义全局变量int Kr_deadband=30; 在程序中不更改变量值,只是读取。

用仿真器观察该变量,发现变成1365这样的数值。

如果改为宏定义#define Kr_deadband 30,就可以了。

请问这是CCS5.5本身的bug还是优化设置本身可能会带来这样的错误?

设置如下: