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.

Organizing code in CCS 6.0



Hi,

I would like to ask if there is a better way than what I did below to organize my files and codes in CCS 6.0 in such a way that .settings, .ccsproject, .project, .cproject *.cmd, system_pre_init.c, etc will be placed in one folder separate from my source code?

The below screenshot is what I'm trying to achieve. 

What I did was:

1. I created first a new CCS project in IDE, named it MyProject.

2. Then I close the IDE, I copied/cut manually all IDE generated files and put it in a separate folder, I named the folder CCS_Settings,.

3. Then relaunch CCS IDE. 

4. I copied manually the existing code into MyProject folder

5. In IDE, I add those source code file from MyProject folder as a Link instead of Copy.

Also, is there a way I can use Copy in my step5, so that the copied source files will reside in MyProject folder instead of going into CCS_Settings?

Thanks in advance,

Gee

  • Gee said:
    I would like to ask if there is a better way than what I did below to organize my files and codes in CCS 6.0 in such a way that .settings, .ccsproject, .project, .cproject *.cmd, system_pre_init.c, etc will be placed in one folder separate from my source code?

    How your project and sources are organized is really a matter of preference, or if working on a team project, then it is usually based on a set of guidelines set by the company. 

    If you just wish for your sources to be in a different folder than the project metadata files, an easier way to accomplish that would be to keep your sources in a sub-folder within your main project folder. That way you don't have to move your project metadata files. So MyProject would be your project folder and you can create a folder called "source" or something similar to hold your source files.

    More about the CCS project system is described in this wiki so you may want to take a look at it for some other ideas as well.
    http://processors.wiki.ti.com/index.php/Projects_and_Build_Handbook_for_CCS