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/TM4C123GE6PM: CCS/TM4C123GE6PM

Part Number: TM4C123GE6PM
Other Parts Discussed in Thread: TM4C123GH6PM

Tool/software: Code Composer Studio

Hello,

I have been trying to run a temperature program on Tiva launchpad TM4C123G and when I build the program, the following error pops up.

>> Compilation failure

subdir_rules.mk:7: recipe for target 'main.obj' failed

"../main.c", line 54: warning #48-D: incompatible redefinition of macro "PART_TM4C123GH6PM"

"../main.c", line 59: fatal error #1965: cannot open source file "inc/hw_ints.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.

Can someone help with this please?

Thank you

  • MONIKA NATH said:
    I have been trying to run a temperature program on Tiva launchpad TM4C123G

    Is this your own program that was created from scratch or did you start with an example project from TI? It is generally best to start with an example from TI and edit it to suit your needs.

    Specifically for this error 

    MONIKA NATH said:
    "../main.c", line 59: fatal error #1965: cannot open source file "inc/hw_ints.h"

    the path to that header file should be provided to the compiler's --include_path options. Please see this page for details on how to resolve.

    For the warning, perhaps you are including two header files that contain definition for that macro, or defining it in your code in addition to an existing definition in a header file?

  • Monika,

    Since I haven’t heard back from you, I’m assuming you were able to move past this issue. If not, please post a reply with an update below (or create a new thread). Thanks!