Some variables not appear in Local and watch window. This is simple code I wrote and variable 'alpha' didn't appear. #include <reg167.h> #include <stdio.h> void main(void) { unsigned int alpha; unsigned int beta; while(1) { for(beta=0;beta<255;beta++) { alpha=beta; } } } Can you please any one help me
Maybe it has been optimised out altogether? You could try making "alpha" volatile or turning off optimisation. Stefan
View all questions in Keil forum