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: Expressions window --- identifier not found?

Tool/software: Code Composer Studio

Can someone tell me why tst will not populate in the expressions window with a value but rather "identifier not found: tst" ?

#include <msp430.h>
#include <string.h>

void main(void)
{
    char a[] = "Hello";

    unsigned int tst;
    tst = strlen(a);
    if (tst < 8)
        LPM3;
    else
        LPM0;
}

  • Hello,

    Steve Wenner said:
    Can someone tell me why tst will not populate in the expressions window with a value but rather "identifier not found: tst" ?

    Check your project compiler optimization settings. You likely have register level optimization (-O0) or higher.

    Thanks

    ki