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.

Graph in CCS4



Hi,I am using CCS now. I want to look at the value of a certain variable.

For the following code, the variable "time" is updated every 1 sec. The configuration of graph view is as follows:

However the y-axis of the graph view is not correct.

Who can tell me why??

Thanks very much!

  • Hi,

    How not correct? What do you expect to see?

    If you expect to see a decimal number (0,1234567...), then you need to adapt the Q-value to properly set its dynamic range.

    Details about Q representation of integers:

    http://en.wikipedia.org/wiki/Q_(number_format)

    Regards,

    Rafael

  • The y-axis should be 1,2,3,4......However, in this figure the value is 196542447..... and so on.

    Should I change the format of the y-axis? However the display is already general.

    Best.

    Liu 

  • Liu,

    I see what may be happening here...

    The tool is translating the parameter Start Address (&time) to the address of the variable time, not its contents - the initial value of -1965424449 corresponds to the hex value of 0x8ADA00BF, which is plausible to a full 32-bit address.

    Therefore the values on the Y-axis of the graph are showing an increment on the address of the variable time - check if your source code is actually updating the contents of this variable instead of its address.

    If that is not the case, open a Memory Browser view and check the contents of this variable continuously and compare its value to the one being displayed...

    Hope this helps,

    Rafael