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 to configure CSL on CCS v4.2.4 using C6713



Hi,

I have a problem using a code developed on CCS 3.1, the device used is C6713. That code uses Chip Support Library to configure peripherals. Now I'm using CCS 4.2.4 and I need to configure it in order to link csl include files in my project.

In my code I have the follow line: #include <csl.h>, but when I try to build my project, CCS showed errors like, could not open source file "csl.h".

I have installed CSL on C:\Program Files\C6xCSL, and I have tried to link csl_*.h files into my project of different ways.

First I added all *.h files (C:\Program Files\C6xCSL\include) to my project, but CCS showed me the same error.

After that I changed the line: #include <csl.h>, to #include "csl.h", doing that, CCS sent me an error pretty like the previous, could not open source file "csl_chip.h". and so on.

I guess my problem is a linked one, so I added the CSL path to "Include Options" field in the C6000 Compiler Properties and also added that path into "File Search Path" field in the C6000 Linker into Properties of my project. But I still get the same error.

How should I configure the CCS in order to link those files? Anyone could help me in this issue?

Thanks in advance,

Hiram Hernandez

  • Hiram,

    You probably don't want to add all of the .h files directly to your project.  You can if you want but it could get pretty cluttered.

    The include search path for the compiler is not set correctly.  Go to "Include options" under "C6000 Compiler".  You have a path set for C:/Program Files/C6xCSL however the path needs to be C:/Program Files/C6xCSL/include

    Similar for the File Search path under C6000 Linker you need to set it to the folder where the .lib is located it is probably something like C:/Program Files/C6xCSL/lib

    Regards,

    John

  • Thanks JhonS,

     I had not realized of that  ;)

    Regards,

    Hiram Hernandez