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/TMS320F28379D: CCS

Part Number: TMS320F28379D
Other Parts Discussed in Thread: CONTROLSUITE

Tool/software: Code Composer Studio

Hi,

I am trying to edit a particular example file from Controlsuite.First i imported it to CCS and copied it with a new file name.But when i make a change in the main function file of the newer one, then the original main function also changes.How to resolve this issue.

Thanks in advance.

  • Are you copying the whole project or just 1 source file?  I suspect that what is happening is that you are editing a linked/referenced file.  In the Project Explorer in CCS a linked file will have a small arrow on top of the file icon.  For example the ccfg.c file in the image below is a linked file.

    A linked file is simply a reference to a file.  The project will build the file but the file does not exist in the project directory.  So if you copied a project with a linked file the both the original project and the new project would have a reference to the file.  Editing the file would change it for all projects as there is only 1 copy of the file.

    Regards,

    John

  • Thank you for the response. Yes i found that, the file is linked, but how to remove these linked option, so that i can edit it without any change to the original one.
    Thanks in advance
  • First you will need to locate the physical file.  You can do this by right clicking on the file in the project explorer and selecting Properties and then in the dialog that opens up select Resource in the list on the left.  Now on the right hand side there will be a bunch of information including values for Path, Type Location and Resolved Location.  The path to the file will be in the location or resolved location.  If the path to the file is using a macro (which it likely is) then Resolved location is the one you want.  

    In my case below I have added the link to the file using a macro (PROJECT_LOC) so that the path is relative to my project location.  This makes the project more portable.  The resolved location replaces that macro with its value and you can see the full path to the physical file.  I am on a Mac so the path is Unix style.

    Make note of this location and then cancel out of the dialog.  Then delete the file from your project.  It will let you know that the file is not being deleted just the link to the file is being removed.  Click OK.  Now right click on your project and select Add Files.  Browse to the file.  After that it will ask you if you want to Copy or Link the file.  Select to Copy it.

    This will copy the file into your project directory.

    Regards,

    John