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/LAUNCHXL-F28379D: How to import examples from C2000Ware as local files, NOT links?

Part Number: LAUNCHXL-F28379D
Other Parts Discussed in Thread: C2000WARE, CONTROLSUITE

Tool/software: Code Composer Studio

When I import project files into CCS 9.2.0.13 from C2000Ware 2.0.0.3, all the code files are links to the C2000Ware directory rather than local copies in my project directory.  This is true if I import using the "Import into IDE" button in the Resource Explorer.  It is true even if I import the projects using the Project:Import CCS Project menu command and select "Copy projects into workspace" in the Import CCS Project dialog.

Many of these files are common to many projects.  I want local files so I can edit them without messing up other examples.

When I import examples from ControlSuite with the "Copy projects into workspace" option selected, I get local files in my directory.  Why not with C2000Ware?  

How can I copy or convert these C2000Ware project links into local files?

Thanks.

  • Ciaran Brennan said:
    When I import project files into CCS 9.2.0.13 from C2000Ware 2.0.0.3, all the code files are links to the C2000Ware directory rather than local copies in my project directory.

    That is the expected behavior based on how the projects were originally created.


    Ciaran Brennan said:
    When I import examples from ControlSuite with the "Copy projects into workspace" option selected, I get local files in my directory.  Why not with C2000Ware?  

    ControlSuite projects also worked the same way in that most files were linked to the project. Which example from ControlSuite are you referring to that made copies of the source files into your project directory?

    Examples in C2000Ware for newer device families (like F28004x) use projectspecs and are designed to copy the sources into the project directory rather than linking them. However examples for most other devices that were created a while ago do not use projectspec functionality, they all use use linked files. 

    How can I copy or convert these C2000Ware project links into local files?

    You could try one of the methods described in this page. Although it refers to ControlSuite you could use the same technique with C2000Ware.

    Another option would be to roughly follow the steps described in this post. Basically make a list of all files linked to your project and create a copy of them inside your project. You would then need to check #includes in all source files to see which header files they are using, and make a determination of whether you want to copy just source files or source and header files. . Then adjust compiler include paths to paths where the header files reside. 

    Hope this helps. 

  • AartiG said:
    ControlSuite projects also worked the same way in that most files were linked to the project. Which example from ControlSuite are you referring to that made copies of the source files into your project directory?

    You're right.  Most of my projects have a few local files, .c, .h, .asm files, and a bunch of links.

    Thanks for the links.  I'll give it a try.