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.

MSP430FR2355: using extern in main file on a static variable in a second file

Part Number: MSP430FR2355

I have a static uint variable NodeCounter defined in a file outside the function (see below).  It is nothing more than the sum of the other NodeCounterXXXXX within the function.

static uint NodeCounter = 0;

void processRFMessage(void)
{
    static uint i;
    static uint NodeCounterReuse = 0, NodeCounterPreExisting = 0, NodeCounterNew = 0;
}

I have a second file main.c where I attempt to 'see / use' that variable. It is defined 'outside the scope of main' (at the top of the file) as

extern uint NodeCounter;

The issue I have is if I stop code in main the debugger reports that it 'Identifier Not Found'. The code is working as expected and I can see this variable within file.c quite well.  Can someone tell me if I am using extern why I cannot see this variable in main and what do I need to do to see it in main.c?

Thanks

**Attention** This is a public forum