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.

Sharing ccxml files by projects

I have several projects that connect to the same hardware. Therefore these project should share a ccxml file that defines the debugger connection.

I can't copy it to a program files directory like C:\ti\... since I have to put it to source control. How can I add such a file to project while it resides in a directory that is common to all projects.

  • Hi,

    What I do in CCS 5.1 is:

    File -> New -> Target Configuration File and check the "Use shared location" box (I use the default directory). When you do this, in the "Target Configurations" window (Window -> Show View -> Target Configurations) you will see it in the "User Defined" section, this way you launch your configuration and then load the .out of your project.


    Regards

  • Another thing you can do is click on the Link file to project menu item in the capture above and this will add the file to your project as a linked file (reference).  This will allow you to have the same file in multiple projects.  However if you don't want to change the project to have this reference then what Johannes suggested is the way to go.

  • Yes, using the link makes the file available without copying to the project directory. This is essential to allow to define the target connection at one location

    Johannes proposal did not add the ccxml file to the project neither with nor without the shared location box. This caused the CCS to use the first USB connection to the wrong target and to erase the memory there. That's sad. I had to add the file as you wrote.

  • Yes, the way I said you won't have a copy or a link of the target file in all of your projects, but will allow you to load .out files without having the project in your workspace and will avoid problems of choosing the default target file if you have more than one ccxml in your project. Except for this, a shared target file works as usual, launch target, connect, load gel...

    Regards

  • Sorry, probably a misunderstanding. But when I am connected to the debugger I can load any .out file, can't I? What kind of problems I would have, when all projects refer to the one ccxml file? My intention is to run a group of (tester) projects at one target. When I reconnect to target to a different USB port, all projects should connect to the target using this actual USB port.

    Regards

  • Hi,

    Sorry, I think I really misundertood. I was thinking about running different .out (one a time) in the same target, connected to the same USB, but now I get this is not your case. Sorry for the mess up.

    Regards