Hello,
i am having a strange problem where i can't see a u16 local variable in the IAR debugger (IAR 5.40.3, CC430). I have some pretty simple code:
u8 byte = 0xAB; // IAR debugger, locals shows this value fine once set
u16 word = 0xABBA; // IAR debugger, locals shows this value fine once set
u8 byte = *data; // IAR debugger, locals shows this value fine once set
u8 word_h = *data; // IAR debugger, locals shows this value fine once set
u8 word_l = *(data+1); // IAR debugger, locals shows this value fine once set
u16 word = word_h << 8; //IAR debugger shows "<error>"
word |= word_l; //IAR debugger shows "<error>"
u16 word = *data; //IAR debugger shows "<error>"
any idea what might cause this?
Thanks in advance,
-r
UPDATE: it seems the "Auto" window shows the proper values but the "Locals" doesn't. See screenshot
