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/CCSTUDIO: Compilation errors

Part Number: CCSTUDIO
Other Parts Discussed in Thread: TM4C1290NCPDT

Tool/software: Code Composer Studio

  Version: 7.2.0.00013

TI 16.9.3.LTS

TM4C1290NCPDT target MCU

The links in the project I am trying to port from Stellaris to TM4C look OK. Can you help explain 

the compile errors?

Thank you,

Priya

consoleErrors.txt

  • Hi Priya,
    This is a standard error that occurs when the compiler is unable to find dependent header files. You must provide the include search path to it as the compiler expects it. Looking at you screenshot, it looks like you copied some TivaWare source and header into you project folder.

    Let's take a look at your first error:

    "../driverlib/pwm.c", line 49: fatal error #1965: cannot open source file "inc/hw_ints.h"

    The compiler is looking for the following header file: "inc/hw_ints.h". Note that the header file itself is "hw_ints.h". But the pwm.c source file explicitly states that it is in some subfolder called "inc". Hence the compiler needs an include search path to "inc". In TivaWare, that would be the root TivaWare directory (in my environment, it is: "C:\ti\TivaWare_C_Series-2.1.3.156"). I see that you created an "inc" folder so maybe you need an include search path to the root project folder location (assuming that "hw_ints.h" is indeed there).

    Thanks
    ki
  • Did you mean the correct include options? The files are there where they need to be. Please explain what you meant.

    Thank you,

    Priya

  • Priya Nadathur70 said:
    The files are there where they need to be. Please explain what you meant.

    This is explained in my previous post:

    The compiler is looking for the following header file: "inc/hw_ints.h". Note that the header file itself is "hw_ints.h". But the pwm.c source file explicitly states that it is in some subfolder called "inc". Hence the compiler needs an include search path to "inc".


    Hence add an include search path to your project root - which would be an include search path to "inc"


    your second path has an include search path in which include the "inc" folder. You need the parent folder, the one above the "inc" folder.

  • since it looks like you need the path to you project folder root directory, you can just use the below build variable:

    ${PROJECT_ROOT}
  • The PROJECT_LOC and SW_ROOT both point to the root dir where the inc directory is. Are these build variables enough?

    Thanks,

    Priya

  • No, that is not the issue. You need to add the the path to the Include Options (under ARM Compiler), not the Linked Resources .
  • That helped the driverlib/inc file errors go away. I still have several other errors to plod through related to the ported project, but the basic tivaware file errors are gone.
    Thank you,
    Priya
  • Good to hear those errors are gone. For the other errors, please post them in a new thread so we can help investigate

    Thanks

    ki