This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

ccs 6.1.3 debug screen changes variables when switching view



Hi,

So this is a strange one but when debugging a tiva c launchpad I was having a strange issue with a variable seeming to go negative.  When I started thoroughly testing it I noticed a strange phenomenon.  I'm watching a variable in the expression window which does not change during the entire execution.  However as soon as I move to another window say registers or variables, when I switch back the variable has suddenly become a very large negative number.

This is the view before changing:

This is what happens after I switch to Registers and back again:

Any thoughts on this one and why it could happen?  It's a real pain when you are wondering why your program doesn't seem to be working.

Thanks

Warwick

  • Warwick Leahy1 said:
    I'm watching a variable in the expression window which does not change during the entire execution.  However as soon as I move to another window say registers or variables, when I switch back the variable has suddenly become a very large negative number.

    Is the program halted or still executing when you switch to the registers view and back to expressions view? If it is halted I would not expect the value to change, but if it is executing then the value will be updated when you switch back to the view. 

    Are you able to share a simple example project that demonstrates the issue?