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: Unable to read variables in CCS

Part Number: MSP430F47197

Tool/software: Code Composer Studio

Hi Everyone,

I' am very new to this environment and I hope I will get some help. I have this issue with CCS IDE quite a while and  not being able to read variables or expressions.

An example code is as follow:

#include<msp430.h>

void main (void)

{

1-WDTCTL=WDTPW | WDTHOLD;

2-const int a=2;

3- int b;

4-b=1;

5- int c=a+b;

6-while(1);

}

So during the execution, the compiler only start at  line 1 and jump straight to line 6 causing not being able to read variable a b and c with expression table showing type unknown and value as identifier not found.

How can I fix this?

Thanks all