We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
I want to look at some registers using the variable 'debug'. However, the variable does not appear in the Locals window.
Reading other posts, they say I need to use the variable otherwise the compiler has 'optimises it out'. Very cute...
However, I have declared it and used it and still it does not appear in the locals window. Not so cute...
here is how I am declaring and using it:
unsigned int n; unsigned int debug; unsigned int junk; volatile AT91PS_PIO pPIOA = AT91C_BASE_PIOA; /* pointer to Parallel I/O */ volatile AT91PS_RTTC pRTTC = AT91C_BASE_RTTC; /* pointer to RTTC */ volatile AT91PS_TC pTC = AT91C_BASE_TC0; /* use TC0 only*/ initialise_PIOA(); intialise_TC0(); debug = 1; debug = debug + 1;
I have also tried declaring it as volatile with no success.
What am I doing wrong....?
Please let me know
Thanks