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-TM4C123GXL: Error #1965 while compiling a TIVA C Workshop project

Part Number: EK-TM4C123GXL
Other Parts Discussed in Thread: TM4C123GH6PM

Tool/software: Code Composer Studio

Hello,

I'm trying to compile the LAB 12 project (UART) of the TIVA C Launchpad Workshop.

The CCS version I use is: 7.1.0.00016

I imported the project successfully to CCS but when I tried to build it I got the following error:


**** Build of configuration Debug for project lab12 ****

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

>> Compilation failure
subdir_rules.mk:9: recipe for target 'main.obj' failed
"../main.c", line 3: fatal error #1965: cannot open source file "inc/hw_memmap.h"
1 catastrophic error detected in the compilation of "../main.c".
Compilation terminated.
gmake: *** [main.obj] Error 1
gmake: *** No rule to make target 'C:/ti/ccsv7/eclipse/TIVAWARE_INSTALL/driverlib/ccs/Debug/driverlib.lib', needed by 'lab12.out'.
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

I think it has something to do with the fact that the CCS version I'm using doesn't match the version that has been used to create the labs.

But suppose I want to continue using it - how should I fix the problem ? 

  • Hello,

    shai kon said:
    "../main.c", line 3: fatal error #1965: cannot open source file "inc/hw_memmap.h"

    This header file comes with TivaWare. Do you have TivaWare installed? If so, then you simply need to make sure you have the path to the root TivaWare installation directory as part of your include search paths listed in the project properties build options.

    shai kon said:
    gmake: *** No rule to make target 'C:/ti/ccsv7/eclipse/TIVAWARE_INSTALL/driverlib/ccs/Debug/driverlib.lib', needed by 'lab12.out'.

    This path in bold looks wrong. I can't imagine that TivaWare would be installed inside your CCS eclipse folder. We certainly would not recommend it. Please carefully check your project properties and make sure all your paths are correct. Make sure any build variables are correctly set.

    Thanks

    ki

  • Hello Ki,

    Thanks for helping

    I did install TIvaware.

    I see it in:

    C:\ti\TivaWare_C_Series-2.1.4.178

    I never added the variable though...

    Why would CCS assume such a strange location? 

    BTW: what's the benefit of using these environmental variables? Can't we just explicitly include the files to the project?

  • shai kon said:

    I never added the variable though...

    Why would CCS assume such a strange location? 

    It is hard to say how that path was being generated. If you provide your project, I can take a look.

    shai kon said:
    BTW: what's the benefit of using these environmental variables? Can't we just explicitly include the files to the project?

    environment variables, like build and path variables, can be useful to make project more flexible and portable.

  • In what format should I upload the project ?

    Should I zip it ?

  • Yes a zip of your project folder and any dependencies would be great. Thanks