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: Put a copy of the source file instead of a link to file

Other Parts Discussed in Thread: CC2650

Tool/software: Code Composer Studio

Hi,

I'm new with CCS and working on CC2650 sensortag projects. Once I import a CCS project, the project will be imported only with files links as resources. I want to make some modification to my source code, but the result is a change of all projects in which the common files are imported. How can I easily force CCS to copy source files rather than making shortcut files?

Cheers

  • Hi Alex,

    You can copy the header and source files that you require for your project in local project directory (in workspace). This directory should be included under your Project -> Properties -> Include options.

    Regards,
    Gautam
  • Bringing this subject back to life - I might need another helping hand on the subject...

    The structure below is the real example I'm facing:

    File main.c is linked, not local. As expected, if I change anything to it, I'll affect any other projects that use this file.

    (Separate story, it caused me a good deal of trouble because I failed to see the little arrow on the icon, edited the file, and magically a different project ceased to work...)

    Question is: is there a practical way of converting the linked main.c into a local one? A right-click "replace with a local copy" would be perfect!

    If I just copy/paste, it will create another linked shortcut. And if I copy the text into a fresh file, it will require renaming and the risk of the automatic renaming to "automatically fix and point existing references to the previous resource"...

    Hints?

    Bruno

  • Hi Bruno,

    Bruno Saraiva said:
    Question is: is there a practical way of converting the linked main.c into a local one? A right-click "replace with a local copy" would be perfect!

    I am not aware of any convenient way to handle this in Eclipse/CDT. Sorry

    ki

  • Hello Ki! Thanks for the comment.

    I guess I'll adopt the following sequence:

    - Create a new "newname.c" file
    - Copy all the text code from the previous "main.c"
    - Close and remove the previous (link only) file from the structure
    - Rename newname into main

    Just did it and it compiled alright.

    Bruno