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 code among projects with CCE



Hello!

I am (almost) new to CCE, I mean I have been using CCE1, then IAR and now I need to use again CCE.

I am using CCE3 Pro. 

I already posted this question a few weeks ago and got no reply, but maybe it's because my explanation

was not clear enough.

I have a hardware development platform used for many projects. But I would like to keep all the hardware

specific files in a directory and all project-specific files in one directory for each project.

However, I cannot find any way to make the hardware specific folder known to my project.

1. CCE's help says this about paths:

http://passworld.co.jp/ForumImages/2008/12/23/Help.png

This panel looks like what I need.

However, if I open the project properties (I select the project, right click and open properties), I get this:

http://passworld.co.jp/ForumImages/2008/12/23/Properties.png

As you can see, there is no "C/C++ project paths" in the left column.

Is it a documentation problem? An installation problem? I am using CCE3 pro, SP2.

2. In the panel corresponding to the second image above, when I select TI debug settings

and open the source tab, it looks more or less like the panel shown in help:

http://passworld.co.jp/ForumImages/2008/12/23/Paths.png

If I add a path to the folder I would like to be taken into account, it appears as shown

by the link above, but it looks like it does nothing at all.

I made as small example:

In the folder called testlib, there is a single h file with a single definition in it.

But the compiler still replies Could not open file "TestLib.h"

Beside this, why would it be for debug settings only? Usually the source code for debug is the same

as for release...

I should also add that I have tried project -> link files and project -> add files. Same result, the only

solution seems to be to put all the sources in the current folder.

Does anyone know how to add a source folder path?

Thanks,

Pascal

 

  • I believe you can achieve your goal by using a concept of Linked Resources.  In the CCE Help->Help Contents, you can look at the following article:

    Code Composer Main Help -> Using the Workbench -> Concepts -> Workbench -> Linked resources

    Here it is discussed that Linked Resources are files and folders that are stored in locations in the file system outside of the project's location.  These special resources can be used to add files and folders to your project that for some reason must be stored in a certain place outside of your project.

    Click on the Related Tasks -> Creating linked resources link to find the steps to add linked resources to your project, which in your case are your hardware specific files.

    In summary, right click on your project name in the C/C++ Projects pane and select New -> Folder.  Specify the name of the Linked Resource in the "Folder Name" text box.
    Click Advanced.
    Check "Link to folder in the file system".
    Browse to the folder containing your hardware specific files.
    Click Finish.

    You now have the hardware specific file folder in your project and managed by your project.  There are some caveats that you should be aware of which are described in the first article.

     

     

  • Hello Brandon!

    Thanks for your reply!

    I did exactly what you said. The good news is that my folder now appears in the C/C++ pane,

    and I can also see all the files contained in it and open them directly by double click.

    Now if I want to include a .h files located in the added folder, I still get the same compiler error:

    could not open source file "something.h"

    Pascal

     

  • Pascal said:

    Now if I want to include a .h files located in the added folder, I still get the same compiler error:

    could not open source file "something.h"

    You need to include the sub-directory of your linked folder in "#include search path" under Project Properties > C/C++ Build > Tool Settings > General Options > (--include_path)

    ++ck.hk

  • Hello!

    Sorry for the delay.

    Now it works. Thanks a lot!

    Pascal

     

  • Hi,

    Is it possible to share a single project between two PC's

    I created a project using CCE V3 in one PC and tried to access that project on another PC through LAN,
    I was able to open the project,but if I try to build the project I get the error as shown below.

    Errors running builder "Generated Makefile Builder" on project 2274.
      Could not write file: \\Pct200\Documents and Settings\2274\Debug\sources.mk.

    The console window details :
    C:\Program Files\Texas Instruments\CC Essentials v3\utils\gmake\gmake -k clean
    C:/Program Files/Texas Instruments/CC Essentials v3//utils/Cygwin/rm -rf  ./2274.obj  ./2274.pp  2274.out
    /cygdrive/c/Program Files/Texas Instruments/CC Essentials v3/utils/Cygwin/rm: cannot remove `./2274.obj': Permission denied
    /cygdrive/c/Program Files/Texas Instruments/CC Essentials v3/utils/Cygwin/rm: cannot remove `./2274.pp': Permission denied
    /cygdrive/c/Program Files/Texas Instruments/CC Essentials v3/utils/Cygwin/rm: cannot remove `2274.out': Permission denied
    C:\Program Files\Texas Instruments\CC Essentials v3\utils\gmake\gmake: [clean] Error 1 (ignored)
    Problems occurred building the selected resources.
      Errors running builder "Generated Makefile Builder" on project 2274.
      Could not write file: \\Pct200\Documents and Settings\2274\Debug\sources.mk.


    First of all I would like to know whether the above concept is correct?
    i.e. does CCE allow sharing project between two PC's.

    Thankyou and Regards.

  • Chakra,

    Are you just opening the workspace created on one PC from another PC within the network? If so I just tried it and the projects build without problems.

    The error you are getting seems to indicate problem with permissions in writing to the directories on the original PC.

**Attention** This is a public forum