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: #1965 cannot open source file

Other Parts Discussed in Thread: TM4C123GH6PM

Tool/software: Code Composer Studio

I can not build my project. Although I tried many solution suggestions, I could not reach the result. As far as I understand, it gives the same error for every source file found in the "C: \ ti \ ccsv7 \ tools \ compiler \ ti-cgt-arm_16.9.0.LTS \ include" path, not for a specific source file. So, in main.c, if there is any source file in order, it gives the error there.

Here is console log;

**** Build of configuration Debug for project bes ****

"C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 4 all -O
'Building file: ../main.c'
'Invoking: ARM Compiler'
"C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.0.LTS/include" --include_path="C:/ti/xdctools_3_32_01_22_core" --define=ccs="ccs" --define=PART_TM4C123GH6PM -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="main.d" "../main.c"

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

**** Build Finished ****

  • hw_pwm.h is a file that comes with TivaWare.  Your main.c file likely references it with a #include "inc/hw_pwn.h"

    If you add the location of TivaWare to your include search paths for the project then it should find it.  For me I have TivaWare installed in: C:\ti\TivaWare_C_Series-2.1.0.12573 the actual .h file is in C:\ti\TivaWare_C_Series-2.1.0.12573\inc

    So I would go to the project properties.  In the dialog that opens there will be a section called ARM Compiler and then under that Include options.  Specify the location of TivaWare as an include path.  For me that would be C:\ti\TivaWare_C_Series-2.1.0.12573

    Regards,

    John