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/TMS320F28379D: How to See Debug Variables with the Same Name

Part Number: TMS320F28379D

Tool/software: Code Composer Studio

Greetings,

I have a system were multiple projects are loaded onto the flash at the same time. I can add debug symbols for each of them so that when they call into each other, I can follow what is happening.  And when I am in a given project, I can use Expressions to see its state.

In our environment, each project collects information and stores it in a variable.  The name of that variable is the same in each of the projects, and could not be changed due to code which is shared amongst the projects.  In the CCS Debug perspective, when using the Expressions tab, is there a way to specify which project’s copy of the information I wish to examine?

Thank you,

Ed

  • Hi Ed,

    Ed Sanders said:
    n the CCS Debug perspective, when using the Expressions tab, is there a way to specify which project’s copy of the information I wish to examine?

    I don't see a way to specify this. It seems to always default to one set of symbols for this, even if I add the expression from the Modules view. I suppose a workaround would be to simply add the explicit address of the variable you wish to see in the expressions view. I'll look around to see if there are any other workarounds/solutions

    Thansk

    ki 

  • Hi Ki,

    Thanks for looking.  I tried putting the address in the Expressions tab, but it only gave me the first word of data.  I wasn't able to find a way to cast it into the format of the data.  So I tried simply putting the address into the Memory Browser, and I was able to see all the data.  Obviously, it doesn't give me the structure, but I can see the data, and figure it out from there.

    Ed

  • I checked with the engineering team and there is a way to specify the symbol file in addition to the variable name. The syntax is:

    'sym::a.out::a.c'::v   - look for a file static variable v defined in source file a.c from a symbol file matching name a.out

    In the example below, I have two projects, both which define a 'gVarSame" global variable in 'main.c'. Specifying just 'gVarSame' displays the value for the second project. If I use the syntax specified above, I can specify the symbol file, source file, and variable name so that I can see the value for both gVarSame variables.

    Thanks

    ki

  • Hi Ki,

    I discover that the symbols for all of the projects need to be added first.  After that, this worked great.  I really appreciate the extra effort.

    Thank you,

    Ed