I never faced this problem before so I'm a little bit lost.
I'm debbuging a new code just adquiring some signals from the ADCH0 and ADCH1, called Vbat and Vshunt, as follows:
unsigned int contcicles=0, limit=0,Vbat=0;
unsigned int Vshunt=0;
When debbuging the code and reach this function all the local variable are listed expect for Vshunt, if I declare it as global variable it works perfectly, (data adquired is correct so Hw is working fine). What is going on? Anybody faced it before?
I'm using the startup code generated for the wizard (start08.c)