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/TMS320F28388D: Build fails because cannot open source (.h) file, even though path is included in C2000 Compiler Build Options

Part Number: TMS320F28388D
Other Parts Discussed in Thread: C2000WARE

Tool/software: Code Composer Studio

My build is failing because it cannot open a header file I have in an 'include' folder within the project. I have that folders file path in the C2000 Compiler Build Include Options, see error message and build log below.

Can see in the filepaths below that I have the folder with the file in it included in the build options (highlighted).

Build log:

**** Build of configuration CPU1_RAM for project Test_Investigation ****

"C:\\ti\\ccs920\\ccs\\utils\\bin\\gmake" -k -j 12 all -O

Building file: "../M29EW_32Mb-2Gb_device_driver.c"
Invoking: C2000 Compiler
"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla2 --float_support=fpu64 --idiv_support=idiv0 --tmu_support=tmu0 -Ooff --include_path="C:/Users/Test_Investigation " --include_path="C:/ti/c2000/C2000Ware_2_00_00_02/device_support/f2838x/common/include" --include_path="C:/Users/Test_Investigation /include" --include_path="C:/ti/c2000/C2000Ware_2_00_00_02/device_support/f2838x/headers/include" --include_path="C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/include" --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="M29EW_32Mb-2Gb_device_driver.d_raw" "../M29EW_32Mb-2Gb_device_driver.c"

>> Compilation failure
subdir_rules.mk:9: recipe for target 'M29EW_32Mb-2Gb_device_driver.obj' failed
"../M29EW_32Mb-2Gb_device_driver.c", line 108: fatal error #1965: cannot open source file "M29EW_128Mb-2Gb_device_driver.h"
1 catastrophic error detected in the compilation of "../M29EW_32Mb-2Gb_device_driver.c".
Compilation terminated.
gmake: *** [M29EW_32Mb-2Gb_device_driver.obj] Error 1
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

  • My mistake, the file I was given must have been updated after the .c file was written, so the name of the file in the #include statement did not match the actual name of the file.