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.

Compiler/TMS320F28069: CCS Build variables and DoxyGen

Part Number: TMS320F28069

Tool/software: TI C/C++ Compiler

Hi,

How to use "Build Variable" in a C file. The OS environment variable like USER ($ (USER)) works well but I can't get one of the BUILD variables I created. Can you tell me how to do it please?

Regards

OL

  • Please see the article Using CCS Variables in source code.

    Thanks and regards,

    -George

  • Thanks George,

    I saw wiki page and applied.  I read also this post

    It works from CCS to file only. How to use variables from C source files to CCS ?

    Thanks for your help,

    OL

  • ol said:
    How to use variables from C source files to CCS ?

    I'm not sure what you mean.  Please describe the problem you want to solve.  Please be very detailed about it.  Don't worry about how you might solve it.  Just focus on a clear explanation of what you want to accomplish.

    Thanks and regards,

    -George

  • George,

    I am currently doing software documentation using Doxygen.In this documentation, I have now the date of the last build as well as the hard and soft versions and other information like the reference of the compiler, designer etc ... Variables come from CCS thanks to BUILD variables which I have declared or directly from the operating system (BUILD VARIABLES and predefined symbols are used). It works fine. But other variables especially declared in my software must be returned to CCS to be used as well. So I would like to use in CCS certain variables that I declare in my source code. Here I hope I have been clearer about what I would like to do.

    Regards,

    OL

  • It seems you want to somehow export symbols from C code like ...

    #define PREPROCESSOR_SYMBOL 100
    int global_variable;
    int function_name();

    into your documentation.  Is that correct?  For now, I presume that is correct.

    I know of no way to export preprocessor symbols.  Global and static variables can be seen with the names utility nm2000.  Information on local variables is embedded in the Dwarf debug information, but we have no utility which displays that information.

    Thanks and regards,

    -George