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.

CODECOMPOSER: How do I show the variables?

Part Number: CODECOMPOSER

Hello!

Everything is in the title. I didin't use ccs for a while. I'm writing a program for F5510 right now, but anyway

it's a CCS issue.

Usually when you use a debugger, the idea is to watch all the variables in the current context, usually in the current function.

All the windows / panes are empty. Be it variables, expressions. I have one variable, let's say "a" in my current function.

If i want to ad an expression, I pres the + sign, and enter "a". At the right of the expressions window, it says "identifier not found a".

I also use the STM32 environment, which is built on eclipse as well, and I don't have to specify or configure anything, the

variables are just there when I need tham.

Is there a way to configure the same behavior in CCS?

Thanks for any hint.

R

  • Hello,

    If i want to ad an expression, I pres the + sign, and enter "a". At the right of the expressions window, it says "identifier not found a".

    One common cause of this is because compiler optimization is enabled and the variable in question has been optimizied out. 

    If optimiztion is disabled and the issue is still occurring, then it could a multitude of other reasons. Providing a small test case would be helpful.

    Thanks

    ki

  • Pascal,

    The "variables" view in CCS will automatically show any local variables that are in scope and present in the application (i.e. not optimized out).  The expressions view requires variables, expressions... to be added to it in order to be displayed.

    In this example I have a variable i and a variable john.  You can see that i shows up in the variables view automatically (top right view).  If I add john to the expressions view I get the "identfier not found" message (just below the variables view).

    As Ki mentioned if you could provide an example that would be useful.  Also please state which version of CCS you are using.

    Regards,

    John

**Attention** This is a public forum