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