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.

#1965: cannot open source file "DSP2803x_Device.h" Build error

Other Parts Discussed in Thread: CONTROLSUITE

Hello.

I get errors in  CCS 6   build console and it is looking like this. Please help me to solve this problem. Here I`m posting

1 .console message:

**** Build of configuration Debug for project PWM and LCD programm ****

"C:\\tidemo90days\\ccsv6\\utils\\bin\\gmake" -k all
'Building file: ../DSP2803x_CpuTimers.c'
'Invoking: C2000 Compiler'
"C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/bin/cl2000" -v28 -ml -mt --cla_support=cla0 --preinclude="C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include/v121/DSP2803x_common/include/DSP28x_Project.h" --preinclude="C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include/v121/DSP2803x_headers/include/DSP2803x_Device.h" --include_path="C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include" --include_path="C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include/v121/DSP2803x_common" --include_path="C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include/v121/DSP2803x_headers" -g --diag_warning=225 --display_error_number --diag_wrap=off --preproc_with_compile --preproc_dependency="DSP2803x_CpuTimers.pp" "../DSP2803x_CpuTimers.c"
"C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include/v121/DSP2803x_common/include/DSP28x_Project.h", line 18: fatal error #1965: cannot open source file "DSP2803x_Device.h"

1 catastrophic error detected in the compilation of "../DSP2803x_CpuTimers.c".
>> Compilation failure
Compilation terminated.
gmake: *** [DSP2803x_CpuTimers.obj] Error 1
'Building file: ../DSP2803x_DefaultIsr.c'
'Invoking: C2000 Compiler'
"C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/bin/cl2000" -v28 -ml -mt --cla_support=cla0 --preinclude="C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include/v121/DSP2803x_common/include/DSP28x_Project.h" --preinclude="C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include/v121/DSP2803x_headers/include/DSP2803x_Device.h" --include_path="C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include" --include_path="C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include/v121/DSP2803x_common" --include_path="C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include/v121/DSP2803x_headers" -g --diag_warning=225 --display_error_number --diag_wrap=off --preproc_with_compile --preproc_dependency="DSP2803x_DefaultIsr.pp" "../DSP2803x_DefaultIsr.c"
"C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include/v121/DSP2803x_common/include/DSP28x_Project.h", line 18: fatal error #1965: cannot open source file "DSP2803x_Device.h"
1 catastrophic error detected in the compilation of "../DSP2803x_DefaultIsr.c".
Compilation terminated.

>> Compilation failure
gmake: *** [DSP2803x_DefaultIsr.obj] Error 1
'Building file: ../DSP2803x_EPwm.c'
'Invoking: C2000 Compiler'
"C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/bin/cl2000" -v28 -ml -mt --cla_support=cla0 --preinclude="C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include/v121/DSP2803x_common/include/DSP28x_Project.h" --preinclude="C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include/v121/DSP2803x_headers/include/DSP2803x_Device.h" --include_path="C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include" --include_path="C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include/v121/DSP2803x_common" --include_path="C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include/v121/DSP2803x_headers" -g --diag_warning=225 --display_error_number --diag_wrap=off --preproc_with_compile --preproc_dependency="DSP2803x_EPwm.pp" "../DSP2803x_EPwm.c"
"C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include/v121/DSP2803x_common/include/DSP28x_Project.h", line 18: fatal error #1965: cannot open source file "DSP2803x_Device.h"
1 catastrophic error detected in the compilation of "../DSP2803x_EPwm.c".
Compilation terminated.

>> Compilation failure
gmake: *** [DSP2803x_EPwm.obj] Error 1
'Building file: ../DSP2803x_GlobalVariableDefs.c'
'Invoking: C2000 Compiler'
"C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/bin/cl2000" -v28 -ml -mt --cla_support=cla0 --preinclude="C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include/v121/DSP2803x_common/include/DSP28x_Project.h" --preinclude="C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include/v121/DSP2803x_headers/include/DSP2803x_Device.h" --include_path="C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include" --include_path="C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include/v121/DSP2803x_common" --include_path="C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include/v121/DSP2803x_headers" -g --diag_warning=225 --display_error_number --diag_wrap=off --preproc_with_compile --preproc_dependency="DSP2803x_GlobalVariableDefs.pp" "../DSP2803x_GlobalVariableDefs.c"
"C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include/v121/DSP2803x_common/include/DSP28x_Project.h", line 18: fatal error #1965: cannot open source file "DSP2803x_Device.h"
1 catastrophic error detected in the compilation of "../DSP2803x_GlobalVariableDefs.c".
Compilation terminated.

>> Compilation failure
gmake: *** [DSP2803x_GlobalVariableDefs.obj] Error 1
'Building file: ../DSP2803x_PieCtrl.c'
'Invoking: C2000 Compiler'
"C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/bin/cl2000" -v28 -ml -mt --cla_support=cla0 --preinclude="C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include/v121/DSP2803x_common/include/DSP28x_Project.h" --preinclude="C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include/v121/DSP2803x_headers/include/DSP2803x_Device.h" --include_path="C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include" --include_path="C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include/v121/DSP2803x_common" --include_path="C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include/v121/DSP2803x_headers" -g --diag_warning=225 --display_error_number --diag_wrap=off --preproc_with_compile --preproc_dependency="DSP2803x_PieCtrl.pp" "../DSP2803x_PieCtrl.c"
"C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include/v121/DSP2803x_common/include/DSP28x_Project.h", line 18: fatal error #1965: cannot open source file "DSP2803x_Device.h"

>> Compilation failure
1 catastrophic error detected in the compilation of "../DSP2803x_PieCtrl.c".
Compilation terminated.
gmake: *** [DSP2803x_PieCtrl.obj] Error 1
'Building file: ../DSP2803x_PieVect.c'
'Invoking: C2000 Compiler'
"C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/bin/cl2000" -v28 -ml -mt --cla_support=cla0 --preinclude="C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include/v121/DSP2803x_common/include/DSP28x_Project.h" --preinclude="C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include/v121/DSP2803x_headers/include/DSP2803x_Device.h" --include_path="C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include" --include_path="C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include/v121/DSP2803x_common" --include_path="C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include/v121/DSP2803x_headers" -g --diag_warning=225 --display_error_number --diag_wrap=off --preproc_with_compile --preproc_dependency="DSP2803x_PieVect.pp" "../DSP2803x_PieVect.c"
"C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include/v121/DSP2803x_common/include/DSP28x_Project.h", line 18: fatal error #1965: cannot open source file "DSP2803x_Device.h"

1 catastrophic error detected in the compilation of "../DSP2803x_PieVect.c".
>> Compilation failure
Compilation terminated.
gmake: *** [DSP2803x_PieVect.obj] Error 1
'Building file: ../DSP2803x_SysCtrl.c'
'Invoking: C2000 Compiler'
"C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/bin/cl2000" -v28 -ml -mt --cla_support=cla0 --preinclude="C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include/v121/DSP2803x_common/include/DSP28x_Project.h" --preinclude="C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include/v121/DSP2803x_headers/include/DSP2803x_Device.h" --include_path="C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include" --include_path="C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include/v121/DSP2803x_common" --include_path="C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include/v121/DSP2803x_headers" -g --diag_warning=225 --display_error_number --diag_wrap=off --preproc_with_compile --preproc_dependency="DSP2803x_SysCtrl.pp" "../DSP2803x_SysCtrl.c"
"C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include/v121/DSP2803x_common/include/DSP28x_Project.h", line 18: fatal error #1965: cannot open source file "DSP2803x_Device.h"
1 catastrophic error detected in the compilation of "../DSP2803x_SysCtrl.c".
Compilation terminated.

>> Compilation failure
gmake: *** [DSP2803x_SysCtrl.obj] Error 1
'Building file: ../Example_2803xEPwmUpAQ.c'
'Invoking: C2000 Compiler'
"C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/bin/cl2000" -v28 -ml -mt --cla_support=cla0 --preinclude="C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include/v121/DSP2803x_common/include/DSP28x_Project.h" --preinclude="C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include/v121/DSP2803x_headers/include/DSP2803x_Device.h" --include_path="C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include" --include_path="C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include/v121/DSP2803x_common" --include_path="C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include/v121/DSP2803x_headers" -g --diag_warning=225 --display_error_number --diag_wrap=off --preproc_with_compile --preproc_dependency="Example_2803xEPwmUpAQ.pp" "../Example_2803xEPwmUpAQ.c"
"C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include/v121/DSP2803x_common/include/DSP28x_Project.h", line 18: fatal error #1965: cannot open source file "DSP2803x_Device.h"
1 catastrophic error detected in the compilation of "../Example_2803xEPwmUpAQ.c".
Compilation terminated.

>> Compilation failure
gmake: *** [Example_2803xEPwmUpAQ.obj] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****

2. Tried to change compiler option  paths but nothing got from this. Screenshots are included. 

Still have one error  #1965: cannot open source file "DSP2803x_Device.h.

Here is screenshot of header files and C files of the project

What do I make wrong? 

  • Hi,

    Are you sure the file <DSP2803x_Device.h> exists in the paths you passed to the compiler? Actually, given the paths you show in your screenshots are rather unusual, are you sure they even exist?

    - C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include/v121/DSP2803x_headers and
    - C:/tidemo90days/ccsv6/tools/compiler/ti-cgt-c2000_6.4.2/include/v121/DSP2803x_common

    Very similar directories are part of the controlSUITE example software package for C2000 devices, which is usually installed under C:\ti\controlSUITE.

    Also, remove the entries from the preinclude box. These files are not regular include files and, if pointing to a correct directory, the paths added to the search path box are enough to make the compiler "see" the .h files.

    --Cheers
  • Good day

    Tried to change include path way from controlSUITE but problem is the same .  Here is the path way:

    I tried even to add H file to explorer manually, but nothing the same.  Here is screen shot:

    Please help me to solve this problem.

  • Yanosh,

    Don't put anything in the "preinclude" box. Instead place the paths to those files (without the filename) in the include search path box.

    The search path is where the compiler will look for include files. The names of the files that it searches for come from the #include statements in your source code.

    Regards,
    John
  • Thank you John . It helped me.