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.

TMS320F280049C: Accessing #define Variables in Source Code to assign to a Build Variable

Part Number: TMS320F280049C

Tool/software:

I am working on a project in Code Composer Studio (CCS) where I need to dynamically set the output filename based on specific #define values in a header file. My goal is to:

  1. Define some CCS build variables that will hold these #define values.
  2. Automatically populate these variables with the #define values after or during the compilation.
  3. Access these populated build variables in the post-build step to modify the output filename

Is there a way to configure CCS to achieve this, such as by setting specific compiler options, preprocessor settings, or environment configurations, so that I can directly pass the #define values into CCS build variables?

  • Hi Sanskar,

    I discussed this with some of our other experts and don't think there is a way to do this unfortunately. Is there a way you could do this outside of CCS with another script?

    Thank you,

    Luke