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/CCSTUDIO: software development tool

Part Number: CCSTUDIO

Tool/software: Code Composer Studio

I am working on a project for generating an OFDM output on an oscilloscope.I implemented a block diagram in MATLAB simulink and obtained the output and I got the auto generated C code for the corresponding block diagram.But now I am facing problem in building the project in CCS.The error shows as "could not open source file".Attached is a screenshot of console.

**** Build of configuration Debug for project ofdm-2017 ****

"C:\\ti\\ccsv5\\utils\\bin\\gmake" -k all
'Building file: ../main.c'
'Invoking: C6000 Compiler'
"C:/ti/ccsv5/tools/compiler/c6000_7.4.1/bin/cl6x" -mv6700 --abi=coffabi -g --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.4.1/include" --include_path="C:/ti" --include_path="C:/CCStudio_v3.1/C6000/csl/include" --include_path="C:/CCStudio_v3.1/C6000/dsk6713/include" --include_path="E:/ofdm 2017" --preinclude="C:/ti/ccsv5/tools/compiler/c6000_7.4.1/include" --preinclude="C:/ti" --preinclude="C:/CCStudio_v3.1/C6000/csl/include" --preinclude="C:/CCStudio_v3.1/C6000/dsk6713/include" --preinclude="E:/ofdm 2017" --define=CHIP_6713 --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="main.pp" "../main.c"
Fatal error #5: could not open source file "C:/ti/ccsv5/tools/compiler/c6000_7.4.1/include"
1 fatal error detected in the compilation of "../main.c".
Compilation terminated.

>> Compilation failure
gmake: *** [main.obj] Error 1
'Building file: ../ofdmfinal.c'
'Invoking: C6000 Compiler'
"C:/ti/ccsv5/tools/compiler/c6000_7.4.1/bin/cl6x" -mv6700 --abi=coffabi -g --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.4.1/include" --include_path="C:/ti" --include_path="C:/CCStudio_v3.1/C6000/csl/include" --include_path="C:/CCStudio_v3.1/C6000/dsk6713/include" --include_path="E:/ofdm 2017" --preinclude="C:/ti/ccsv5/tools/compiler/c6000_7.4.1/include" --preinclude="C:/ti" --preinclude="C:/CCStudio_v3.1/C6000/csl/include" --preinclude="C:/CCStudio_v3.1/C6000/dsk6713/include" --preinclude="E:/ofdm 2017" --define=CHIP_6713 --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="ofdmfinal.pp" "../ofdmfinal.c"
Fatal error #5: could not open source file "C:/ti/ccsv5/tools/compiler/c6000_7.4.1/include"
1 fatal error detected in the compilation of "../ofdmfinal.c".
Compilation terminated.

>> Compilation failure
gmake: *** [ofdmfinal.obj] Error 1
'Building file: ../ofdmfinal_data.c'
'Invoking: C6000 Compiler'
"C:/ti/ccsv5/tools/compiler/c6000_7.4.1/bin/cl6x" -mv6700 --abi=coffabi -g --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.4.1/include" --include_path="C:/ti" --include_path="C:/CCStudio_v3.1/C6000/csl/include" --include_path="C:/CCStudio_v3.1/C6000/dsk6713/include" --include_path="E:/ofdm 2017" --preinclude="C:/ti/ccsv5/tools/compiler/c6000_7.4.1/include" --preinclude="C:/ti" --preinclude="C:/CCStudio_v3.1/C6000/csl/include" --preinclude="C:/CCStudio_v3.1/C6000/dsk6713/include" --preinclude="E:/ofdm 2017" --define=CHIP_6713 --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="ofdmfinal_data.pp" "../ofdmfinal_data.c"
Fatal error #5: could not open source file "C:/ti/ccsv5/tools/compiler/c6000_7.4.1/include"
1 fatal error detected in the compilation of "../ofdmfinal_data.c".
Compilation terminated.

>> Compilation failure
gmake: *** [ofdmfinal_data.obj] Error 1
'Building file: ../rtGetInf.c'
'Invoking: C6000 Compiler'
"C:/ti/ccsv5/tools/compiler/c6000_7.4.1/bin/cl6x" -mv6700 --abi=coffabi -g --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.4.1/include" --include_path="C:/ti" --include_path="C:/CCStudio_v3.1/C6000/csl/include" --include_path="C:/CCStudio_v3.1/C6000/dsk6713/include" --include_path="E:/ofdm 2017" --preinclude="C:/ti/ccsv5/tools/compiler/c6000_7.4.1/include" --preinclude="C:/ti" --preinclude="C:/CCStudio_v3.1/C6000/csl/include" --preinclude="C:/CCStudio_v3.1/C6000/dsk6713/include" --preinclude="E:/ofdm 2017" --define=CHIP_6713 --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="rtGetInf.pp" "../rtGetInf.c"
Fatal error #5: could not open source file "C:/ti/ccsv5/tools/compiler/c6000_7.4.1/include"
1 fatal error detected in the compilation of "../rtGetInf.c".
Compilation terminated.

>> Compilation failure
gmake: *** [rtGetInf.obj] Error 1
'Building file: ../rtGetNaN.c'
'Invoking: C6000 Compiler'
"C:/ti/ccsv5/tools/compiler/c6000_7.4.1/bin/cl6x" -mv6700 --abi=coffabi -g --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.4.1/include" --include_path="C:/ti" --include_path="C:/CCStudio_v3.1/C6000/csl/include" --include_path="C:/CCStudio_v3.1/C6000/dsk6713/include" --include_path="E:/ofdm 2017" --preinclude="C:/ti/ccsv5/tools/compiler/c6000_7.4.1/include" --preinclude="C:/ti" --preinclude="C:/CCStudio_v3.1/C6000/csl/include" --preinclude="C:/CCStudio_v3.1/C6000/dsk6713/include" --preinclude="E:/ofdm 2017" --define=CHIP_6713 --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="rtGetNaN.pp" "../rtGetNaN.c"
Fatal error #5: could not open source file "C:/ti/ccsv5/tools/compiler/c6000_7.4.1/include"
1 fatal error detected in the compilation of "../rtGetNaN.c".
Compilation terminated.

>> Compilation failure
gmake: *** [rtGetNaN.obj] Error 1
'Building file: ../rt_nonfinite (1).c'
'Invoking: C6000 Compiler'
"C:/ti/ccsv5/tools/compiler/c6000_7.4.1/bin/cl6x" -mv6700 --abi=coffabi -g --include_path="C:/ti/ccsv5/tools/compiler/c6000_7.4.1/include" --include_path="C:/ti" --include_path="C:/CCStudio_v3.1/C6000/csl/include" --include_path="C:/CCStudio_v3.1/C6000/dsk6713/include" --include_path="E:/ofdm 2017" --preinclude="C:/ti/ccsv5/tools/compiler/c6000_7.4.1/include" --preinclude="C:/ti" --preinclude="C:/CCStudio_v3.1/C6000/csl/include" --preinclude="C:/CCStudio_v3.1/C6000/dsk6713/include" --preinclude="E:/ofdm 2017" --define=CHIP_6713 --display_error_number --diag_warning=225 --preproc_with_compile --preproc_dependency="rt_nonfinite (1).pp" "../rt_nonfinite (1).c"
Fatal error #5: could not open source file "C:/ti/ccsv5/tools/compiler/c6000_7.4.1/include"
1 fatal error detected in the compilation of "../rt_nonfinite (1).c".
Compilation terminated.

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

**** Build Finished ****

Kindly suggest some way to rectify this.

  • You have a preinclude option specified as: --preinclude="C:/ti/ccsv5/tools/compiler/c6000_7.4.1/include"

    That option is supposed to point to a file and not just a path.

    I suspect that you instead want to be providing these paths as "include" options.  --include_path is used to specfiy where the compiler should look for header files.

    Regards,

    John