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.

Error: identifier not found: 'main.c'::RxB



I am trying to run a new project and get the errors (see screen shot)

     Error: identifier not found: 'main.c'::RxByteCtr

     Error: identifier not found: 'main.c'::RxWord

This occurs also when trying to run a project that worked before, even after a Clean.  I'm using CCS v5.2. Any thoughts?  Thanks.

Mike

  • Mike,

    The screenshot did not make it through. Could you please try re-attaching or better yet would you be able to send a simple project that reproduces the issue?

    Michael Prairie said:
    This occurs also when trying to run a project that worked before, even after a Clean.

    When you say it happens with a project that worked before, do you mean that the project did not give the "identifier not found" error before, but started doing so now? If so, did anything change such as updating the version of CCS, etc? Are you using CCS 5.2.1?

  • Aarti,

    Thanks for responding.   I'm using Version: 5.2.0.00069.  The code actually runs, but the errors appear when I run it in debug mode.  I just ignored them and pressed on.  Here is the code:

    #include <msp430.h>

    // define variables
    volatile unsigned int  DELAY;             // Delay counter

    //  main.c
    void main(void) {
        WDTCTL = WDTPW + WDTHOLD;            // Stop WDT

        P1DIR |= 0x01;                        // Set P1.0 to Output

        for(;;) {                            // Enter the infinite loop
            P1OUT ^= 0x01;                    // Toggle P1.0 by using bitwise XOR for bit 0
            DELAY = 10000;                    // Set the counter for the count-down delay
            do DELAY-- ;                    // Enter the DO-WHILE loop
            while(DELAY != 0);                // Exit the loop when i reaches 0
        }
    }

    Just before replying back just now, I decided to try to delete the expressions that were appearing as errors, and they went away.  Apparently they were "Expressions" that were left over from a previous project.  I guess I would have thought of trying that earlier if I had recognized that the expressions were from another project, but I thought that the Clean would have ... cleaned them out.

    Mike