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?