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
  • Dear Mr. Keil,

    I was using simulator under V5.00
    and also ULINK.
    I have to mention, that I used "OCDS driver for XC16x" instead of "ULINK driver for XC16x".
    But since, this was the first and only case,
    that ULINK crashed I was not sure, whether this was my mistake.
    ( Since Barry mentioned the wrong display in the watch window, I remember that I had the same in simulator too. )

    This was a trial project to interfacing a dot matrix to a starterkit for support purposes and therefore I did not take extremly care of this.

    With kindly regards
    Stefan

Reply
  • Dear Mr. Keil,

    I was using simulator under V5.00
    and also ULINK.
    I have to mention, that I used "OCDS driver for XC16x" instead of "ULINK driver for XC16x".
    But since, this was the first and only case,
    that ULINK crashed I was not sure, whether this was my mistake.
    ( Since Barry mentioned the wrong display in the watch window, I remember that I had the same in simulator too. )

    This was a trial project to interfacing a dot matrix to a starterkit for support purposes and therefore I did not take extremly care of this.

    With kindly regards
    Stefan

Children
No data