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.

Best way to generate a CCS V4 Project from Tool/Script

Other Parts Discussed in Thread: CCSTUDIO

What is the best way to generate a CCSv4 project from an external tool / script - so that the script can be fairly tools version

independent?   Mainly the script should know the project 'make' structure and basic compiler / linker options, but not be

too tied to a specific tool version.


It seems like you need to have the .ccsproject, .cdtbuild, .cdtproject and .project files to make a CCSV4 project.

But, at least the .cdtbuild project seems to have things tied to very specific compiler versions,

like:

<option id="com.ti.ccstudio.buildDefinitions.TMS470_4.5.compilerID.ELF.925568686" superClass="com.ti.ccstudio.buildDefinitions.TMS470_4.5.compilerID.ELF" value="true" valueType="boolean"/>

So simply copying a project that CCS generates itself and trying to make a 'Template' out of it doesn't seem to be

a good idea, if you're interested in having something that's resistant to variations in the CG Tools version installed;

for one.

 

  • Take a look at this Wiki topic that covers a command line tool to create, build, import CCS4 projects

    http://tiexpressdsp.com/index.php/Projects_-_Command_Line_Build/Create

     

    by default the tool will use highest CGT version that is available in that CCS installation. CCS ships with one CGT version per processor family, but you can then add newer (or older) versions if desired. 

     

    Using raw project files as a template is not a good idea because of version information that you discovered. Also the file format may change in the future. 

     

    martin

     

  • Hi Anthony,

    What method you finalized/using for external script based project creation?

    Have two options,

    one, script creates project files (all three) based on what is needed. Observing the already created project files gives an idea of how to do it. But i'm unclear about the unique numbers assigned (eg .compilerID.LARGE_MEMORY_MODEL.1184307074)  with compilerID. What exactly are these.

    This approach worked well for CCS3.3 .pjt creation. Question is, whether this approach works or not in CCS4.

    second option, is given in the ti-wiki, command line based project creation.

    .