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.1 全局变量自动被改变

Other Parts Discussed in Thread: TMS320F28035

TMS320F28035

RAM 仿真时发现,某个全局变量的值无缘无故被改变。

找到的解决办法是在该变量之前定义一个新的变量。如

uint_fast8_t volatile xxx_qpn= 1;           // 新定义的变量

uint_fast8_t volatile QF_readySet_;      // 被改变的变量

然后运行,结果正常。

一个项目,多次发生这个问题。求教高手原因在哪里?