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/EK-TM4C1294XL: gmake: *** [main.obj] Error 1

Part Number: EK-TM4C1294XL
Other Parts Discussed in Thread: TM4C1294NCPDT

Tool/software: Code Composer Studio

I've been using the Getting Started with the Tiva™ TM4C123G LaunchPad Workshop for help in learning how to use the TM4C1294XL and I got until lab 2 but I keep getting a build error. I tried the instructions twice but still get the error. Here is what I get:

**** Build of configuration Debug for project lab2 ****

"C:\\ti\\ccs1010\\ccs\\utils\\bin\\gmake" -k -j 8 all -O

Building file: "../main.c"
Invoking: ARM Compiler
"C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/ti/TM4C123G_LaunchPad_Workshop/lab2/project" --include_path="C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/include" --preinclude="C:/ti/TivaWare_C_Series-2.2.0.295" --define=ccs="ccs" --define=PART_TM4C1294NCPDT -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="main.d_raw" "../main.c"

>> Compilation failure
subdir_rules.mk:9: recipe for target 'main.obj' failed
Command-line error #1966: cannot open source file "C:/ti/TivaWare_C_Series-2.2.0.295": Invalid argument
1 catastrophic error detected in the compilation of "../main.c".
Compilation terminated.
gmake: *** [main.obj] Error 1
Building file: "../tm4c1294ncpdt_startup_ccs.c"
Invoking: ARM Compiler
"C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/ti/TM4C123G_LaunchPad_Workshop/lab2/project" --include_path="C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/include" --preinclude="C:/ti/TivaWare_C_Series-2.2.0.295" --define=ccs="ccs" --define=PART_TM4C1294NCPDT -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="tm4c1294ncpdt_startup_ccs.d_raw" "../tm4c1294ncpdt_startup_ccs.c"

>> Compilation failure
subdir_rules.mk:9: recipe for target 'tm4c1294ncpdt_startup_ccs.obj' failed
Command-line error #1966: cannot open source file "C:/ti/TivaWare_C_Series-2.2.0.295": Invalid argument
1 catastrophic error detected in the compilation of "../tm4c1294ncpdt_startup_ccs.c".
Compilation terminated.
gmake: *** [tm4c1294ncpdt_startup_ccs.obj] Error 1
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

  • Hello,

    Marwa Safa said:
    Building file: "../main.c"
    Invoking: ARM Compiler
    "C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/ti/TM4C123G_LaunchPad_Workshop/lab2/project" --include_path="C:/ti/ccs1010/ccs/tools/compiler/ti-cgt-arm_20.2.1.LTS/include" --preinclude="C:/ti/TivaWare_C_Series-2.2.0.295" --define=ccs="ccs" --define=PART_TM4C1294NCPDT -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="main.d_raw" "../main.c"

    >> Compilation failure
    subdir_rules.mk:9: recipe for target 'main.obj' failed
    Command-line error #1966: cannot open source file "C:/ti/TivaWare_C_Series-2.2.0.295": Invalid argument
    1 catastrophic error detected in the compilation of "../main.c".

    The part highlighted in red is the problem. You are specifying an --include_path directory as a --preinclude option.

    Please correct this.

    Example:

    Thanks

    ki