Adam Oldham

Variables Inside ISR are not Visible/Set Outside ISR

Discussion created by Adam Oldham on May 14, 2010
Latest reply on May 18, 2010 by Tom Thompson

I am using Codewarrior 7.1.1 for MCF5232

 

I have an ISR, that calls a static method in a C++ Class.  The method is called, does some stuff, sets an unsigned char to TRUE (1) and exits.  The unsigned character have been declared as both a volatile static member variables and tried as a volatile global variable.  Code shows that it is actually set when debugging.  Later code uses this form the class to access the static member or global variables and finds that they are set to FALSE (0).

 

I have looked at the assembly and it seems right.  The code seems right.  Can anyone make any recommendations on what I am missing?

Outcomes