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.

How to manage macros.ini in CCS5?

Other Parts Discussed in Thread: CONTROLSUITE

Hi

I have built a portable project using CCS5.03.  It has a macros.ini file because it was adapted from a TI example.

Am I correct in thinking that macros.ini is deprecated in CCS5?

Another developer uses CCS5.1, and it is installed in a different location to me, so the paths in macros.ini are incorrect for him.  I have advised him to modify the macros.ini file and to reimport it. 

Is it possible, instead, to modify the environment variables (definied in macros.ini) directly in the CCS5 GUI?

David

  • David,

    Macros.ini is still supported in CCSv5 but as you noted it is something that is only read on import.  When you import a project containing a macros.ini it generates the variables (and values) that were specified.

    For example if I import a project that has a macros.ini file with a line that looks like this:

    CONTROLSUITE_CSTICK_ROOT = ../../../

    Then when I go into my project and go to the build variables I see this:

    In this case since the value was a relative path it setup 2 variables.  1 as the original project location (as that is what original value was relative to) and the second one as the path relative to it.

    You can edit the values using this same dialog.

    Regards,

    John

  • Hi John,

    Thanks very much for your answer.

    David

  • Just to add to John's post: 

    macros.ini creates two sets of variables, build variables(this is what John described) and linked resource path variables. Build variables are used in compiler/linker options to specify include paths. Linked resource path variables are used to configure source files that are linked into a project. 5.1, which is based on newer eclipse has a GUI to manage these linked resource path variables as well. Go to project properties and then choose Resource ->Linked Resources; First tab (Path Variables) shows currently configured path variables and what they resolve to. This is where macros defined in macros.ini get set on import. Second tab "Linked Resources" allows you to see which files in your project are Linked and potentially fix those links. (see picture below)

    Martin