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/MSP430F47197:无法读取 CCS 中的变量

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

https://e2e.ti.com/support/tools/code-composer-studio-group/ccs/f/code-composer-studio-forum/782792/ccs-msp430f47197-unable-to-read-variables-in-ccs

器件型号:MSP430F47197

工具/软件:Code Composer Studio

大家好、

我对这种环境非常陌生、希望我能得到一些帮助。 我在 CCS IDE 中遇到这一问题很长时间、无法 读取变量或表达式。

示例代码如下所示:

#include

void main (void)

1-WDTCTL = WDTPW | WDTHOLD;

2-const int a=2;

3- int b;

4-b=1;

5- int c=a+b;

6时(1);

因此、在执行期间、编译器仅 从  第1行开始、直接跳转到 第 6行、导致无法读取变量 a b 和 c、表达式表显示类型未知、值显示为未找到标识符。

如何解决此问题?

谢谢大家