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.

Location of "Copy of proj_lab01.c". copying and pasting files in InstaSPIN labs

Other Parts Discussed in Thread: MOTORWARE

I have created a workspace and imported several labs into the project workspace.  However, when I copy and paste a file within a project such "Copy of proj_lab01.c", I cannot find where this file is located.   It seems to be, maybe, some sort of referenced file.

Kurt Kloesel

  • Hi Kurt,

    When you copy and paste a file in a project, it will be placed in your folder where the project located. In case you import project without selecting the checks as the following figure:

    then your project is sill in where you browsed to.  

    In case you selected "cope projects into workspace" then the folder of the imported project will be in the same folder where you place the workspace of CCS.

    That's all,

    Tran

  • We are talking about two different things.
    Look closely at the bitmap you pasted. Notice that the icon to the right of the file "clarke.c" has a small arrow on the icon. Now examine the icon for "rampgen.c". It does not have this little arrow on the icon. One file is referenced, one is not. I would like to understand where in the tab selections of CCS v5.5 (or whichever) how to change this referencing. What is the mechanism of this referencing, etc?
  • Hi Kurt,

    You make a good observation.  You are right, the small arrow indicates that the file is being referenced by the CCS project instead working on another copy of the file.  This is convenient when you want a single copy of your work and may have multiple projects referencing it.  Your choice.  A complete description of CCS options like this can be found here:  

    http://processors.wiki.ti.com/index.php/Category:Code_Composer_Studio_v6

    .  

    You can look at a files properties by right-mouse-clicking on that file and select "properties".  In the window that opens note the Resource section and then note the location of the file.  In the screen capture below you see that adc.c from MotorWare is referenced or linked by proj_lab02a with a base reference of where the MW installation directory is located.  You can this is fully in the "Resolved location" section.

    It is really your choice whether to copy or link the file into your project. 

    Jeff

  • The file was originally copied from a referenced file. Is there an option to convert this from a linked file to a copied file with an absolute location?
  • Hi Kurt,

    You can delete the link to a file that is in your project and then add the same file to the project which will give you a prompt to either Copy or Link the file.

    Here are the steps:
    1. From the Project Explorer window, right-mouse click on the file you want to delete
    2. From the Project Explorer window, right-mouse click on the project and select "Add Files..."
    3. Select the file you want and then select the Copy option from the prompt

    Jeff
  • OK, that procedure works.  Not exactly what I expected, but workable.

    When I used the copy procedure on the referenced file.  I found that altering one file would change the other one.  Example:

    "proj_1.c" (referenced) copied to "Copy of proj_1.c" (also referenced).  Any changes to  "Copy of proj_1.c" would show up in "proj_1.c".  It was late at night when I discovered this, I was really confused.

    Thanks for your help.

    Kurt