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.

How do I add files to this "includes" folder?

Other Parts Discussed in Thread: C2000WARE

I have my own custom CCS project that I wan to add header files to.

The example project I am referencing has an expandable "includes" folder that links to the driverlib folder as well as some other folders.

How do I include it in my custom CCS project?

  • Michael,

    The "Includes" folder shows folders that have been added to your project's search path.

    If you are using content from C2000Ware this is what I would suggest.

    First setup your project so that it is including the C2000Ware product.

    Go to the properties of your project

    Select General in the tree on the left

    Select the "Products" tab on the right

    Click the Add button.

    Select C2000Ware and the version you want to use.  This list is based on what CCS has discovered on your machine.

    When done it should look something like this:

    Click "Apply and Close" at the bottom so that the change is saved.

    Now lets add the include path for driverlib.  However we are going to add it using a variable that represents where C2000Ware is installed.  This way if you change to a newer version of C2000Ware later you just have to change the version that the project is referencing and the paths will update automatically.

    Now go back to the project properties.  Under the compiler select "Include Options".  Click the add button and specify the following path:

    ${COM_TI_C2000WARE_SOFTWARE_PACKAGE_INSTALL_DIR}/driverlib/f28004x/driverlib

    It will look like this:

    If you put your mouse over the ... you can see what it resolves to.

    It will now also show up in the "Includes" folder of your project.

    Note that if you are using driverlib you will also have to the library to your project.  The example you are looking at has a reference directly to the library in the project.  YOu can see it near the end of the file listing.  You could do it that way or you can do it via the build options like below where I have added the library in the top part and the path to find it in the bottom part (once again using a variable).

    Also when creating a thread it is best to select the device that you are using as that will help it get routed to the appropriate team more quickly.

    Regards,

    John