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.

Global struct in Watch Window



Hello all,

I am using CCS v5.2.0.00069 along with SYS-BIOS v6.33.04.39. When I declare a global struct and go into the debug mode, the global struct is not visible, in particular "Error: Identifier not found" is displayed. But when I declare a pointer to this global struct in the main, I can see the content of the global struct in the watch window. It is probably not a bug but more a misunderstanding from my side. I would appreciate it If somebody could clarify me!

Best regards

Burak

  • Burak,

    Do you have optimization enabled for your project? If you do that can affect the debugging capabilities. Try disabling optimization (and make sure Full symbolic debug (-g) option is enabled) and see if the issue remains. You could also try defining the variable as "volatile" to tell the compiler to not optimize it away and see if that helps.

  • Hello,

    optimization is already disabled with Full symbolic debug (-g)  option. I will try it by defining the variable as volatile.

    BR

    Burak