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.

Code composer V3.3 Include file can not be opened

Hi,

I added new source file to my project. I have set include path search pointing to the correct path (in compiler option with -i). This folder path has my header file.

After Rebuild All, I can see header file in Include but it is not found by the compiler.

Please let me know what could be the problem.

Thanks,

Nilesh

  • Hi Nilesh

    Please post the compiler error message you are getting, and also how you are including the header file in your source file

    Thanks

    ki

  • I am getting error that Cannot find the file. This I can also see if I right click and check properties of the .h file.

    I have following in source file:

    #include "DSP280x_Device.h"
    #include "f280xqep.h"

    Both of these are not found after Rebuild All.

    Let me know,

    Thanks for the help,

    Nilesh

  • Nilesh,

    It seems your project does not point to the directories that contain these include files. Right-click on the project name, select Build Options and in the Compiler tab select Preprocessor category and add the include directories in the box Include Search Path

    Typically for the libraries you seem to be using, the directories below should be included:

    C:\tidcs\c28\DSP280x\v141\DSP280x_headers\include

    C:\tidcs\DMC\c28\v32x\lib\drvlib280x\include

    This way the compiler will be able to find the missing files.

    After doing these modifications, just be sure to include the DMC library correctly or the linker will be the one that will fail.

    Hope this helps,

    Rafael