Forgive me for I have broken engineering rule 1037.42.878.... For I am a hardware designer trying to write software.
Now that we have that out of the way...
I am using CW 5.1 and targeting a HCS09AW16 If in my global var declaration section I have. unsigned char GLOBAL_VAR = 0x00; When I run the app GLOBAL_VAR is sometimes 00, but more often than not something random and not as assigned.
If I have unsigned char GLOBAL_VAR = 0x00; ........ void main(void) { GLOBAL_VAR = 0x00; ..... }
Everything works fine. It seems I shouldn't need GLOBAL_VAR = 0x00;
What am I missing?
Thanx Hawker