This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Debug Watch window and 8 bit variables

I am using version 5.05 of the C166 compiler and am seeing a strange problem displaying 8 bit variables in the Watch window. Rather than the value I expect, I see only the lower nibble with the upper nibble stuck at 0 (0x45 displays as 0x05).

I can see that the processor has the correct value because it is correctly shown in the Register window. This is a local function variable that has been optimized to be placed in a register rather than the stack.

Anybody else have this problem and know of a solution?

Thanks,
Barry

Parents
  • I am still having a problem displaying the correct values for 8 bit variables and it is causing a lot of wasted time having to examine register values to see if the byte value shown in the Watch window is correct. The upper nibble of these variables will be displayed as zeros (i.e. 0xFF is displayed as 0x0F).

    I am using UV3.05e which came with the ULINK driver UL2OCDS.dll (V1.00). I am using the USB ULINK tied to a custom board having the XC167 uP, 2Mb external program flash and 512Kb of RAM. Is there a newer driver for ULINK (I don't even see ULINK listed on the Product Update page).

Reply
  • I am still having a problem displaying the correct values for 8 bit variables and it is causing a lot of wasted time having to examine register values to see if the byte value shown in the Watch window is correct. The upper nibble of these variables will be displayed as zeros (i.e. 0xFF is displayed as 0x0F).

    I am using UV3.05e which came with the ULINK driver UL2OCDS.dll (V1.00). I am using the USB ULINK tied to a custom board having the XC167 uP, 2Mb external program flash and 512Kb of RAM. Is there a newer driver for ULINK (I don't even see ULINK listed on the Product Update page).

Children