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.

CCS/LAUNCHXL-F28027F: fatal error: cannot open source file "DSP28x_Project.h"

Part Number: LAUNCHXL-F28027F
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

**** Build of configuration RAM for project haaa ****
"C:\\ti\\ccsv8\\utils\\bin\\gmake" -k all
 
Building file: "../Example_2802xEPwmDeadBand.c"
Invoking: C2000 Compiler
"C:/ti/ccsv8/tools/compiler/ti-cgt-c2000_18.1.2.LTS/bin/cl2000" -v28 -ml -mt -g --include_path="C:/ti/ccsv8/tools/compiler/ti-cgt-c2000_18.1.2.LTS/include" --include_path="C:/ti/C2000Ware_1_00_05_00_Software/device_support/f2802x/common/source" --include_path="C:/Users/aashm/common/include" --include_path="C:/Users/aashm/headers/include" --include_path="C:/Users/aashm" --include_path="C:/libraries/math/IQmath/c28/include" --define="_DEBUG" --define="LARGE_MODEL" --quiet --verbose_diagnostics --diag_warning=225 --diag_suppress=10063 --preproc_with_compile --preproc_dependency="Example_2802xEPwmDeadBand.d_raw"  "../Example_2802xEPwmDeadBand.c"
 
>> Compilation failure
subdir_rules.mk:9: recipe for target 'Example_2802xEPwmDeadBand.obj' failed
"../Example_2802xEPwmDeadBand.c", line 72: fatal error: cannot open source file
          "DSP28x_Project.h"
  #include "DSP28x_Project.h"     // Device Headerfile and Examples Include File
                                                                                ^
 
1 catastrophic error detected in the compilation of "../Example_2802xEPwmDeadBand.c".
Compilation terminated.
gmake: *** [Example_2802xEPwmDeadBand.obj] Error 1
gmake: Target 'all' not remade because of errors.
**** Build Finished ****
what can I do?
  • Hello,
    what kind of modifications you did within Example_2802xEPwmDeadBand.c file?
    Could you post this file?
  • i just copied a project and without any modification ,i built this
  • aash mohd said:
    "../Example_2802xEPwmDeadBand.c", line 72: fatal error: cannot open source file

    The above message shows error in line 72.

    In the original file 

    aash mohd said:
    "DSP28x_Project.h"

    is included in line 115.

    Could you delete your project with "Delete project contents on disk ...",
    import it again and build?

  • Aash,

    The C2000Ware example projects have several dependencies and paths that are set up using variables. If you create a new project from scratch these are things you would need to set up and create yourself. To do so, you would need to have an understanding of CCS projects, their structure, variables, etc. To ease the process of getting started, C2000Ware and similar software packages provide a set of example projects so you can use those as a starting point to speed up your development process.

    To make a copy of an example project I would suggest doing the copy from within CCS (process described here). This would preserve the variables, build options and so on, and make it easier for the project copy to build.

    To get familiar with CCS, and for other resources, I would suggest reviewing the CCS User's Guide available here. It has a section on Getting Started and also covers project management details and common build errors.

    Specifically for the error you are seeing:

    aash mohd said:
    "../Example_2802xEPwmDeadBand.c", line 72: fatal error: cannot open source file
              "DSP28x_Project.h"

    The compiler is saying that it cannot open source file "DSP28x_Project.h". The error is explained here. Basically the compiler cannot locate the file because it has not been provided the path to it. Note in your build options:

    --include_path="C:/Users/aashm/common/include" --include_path="C:/Users/aashm/headers/include"

    These are not the correct paths to the device support files in C2000Ware. And they are incorrect likely because of a missing or incorrect build variable.

    Hope this helps clarify.

     

     

     

  • Tomasz Kocon said:

    In the original file 

    aash mohd
    "DSP28x_Project.h"

    is included in line 115.

    Tom,

    I believe he is using the driverlib version of the source file ((in C:\ti\C2000Ware_1_00_05_00_Software\device_support\f2802x\examples\drivers\epwm_deadband) which actually does have the #include at line 72.


  • aash mohd said:
    i just copied a project and without any modification ,i built this

    If you just copied a project it would not work. 
    Delete all you have copied. 

    You need to import a project.