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: EX-TM4C123GXL

Part Number: EK-TM4C123GXL

Tool/software: Code Composer Studio

Hello,

I am getting an error saying it cannot find source file "inc/hw_ints.h". I am not sure what to do to resolve this issue. Do I not have the right library installed, and if so which one is it?

Thank you

  • Hi Ruben,

    Would you please capture an image from your editor page where you are writing your program?
    What is your CCS version?
    Did you select "Complete Feature Set"  choice at "Setup Type" page while you were installing CCS?

  • Hi Ruben,

    I suggest you use an example program as base that already include this in the project. So you do not have to worry about setting up the project properties. One such example program is the interrupt example program.

    -kel
  • As suggested by Markel, starting with one of the example projects in TivaWare is the best way to get an understanding of how the typical project properties and compiler options are set up.
  • Here is the code, the version is V7, and i don't remember if I hit the complete feature set option.

  • Ruben,

    You have the following line in your source file:

    #include "inc/hw_ints.h"

    The compiler is reporting that is it not able to open this file. The compiler needs to know the path to look in for #included files before it can open it. This information is provided to the compiler in the compiler's Include Options (--include_path). More info here.

    In the case of TM4C devices, the path to Tivaware typically needs to be provided to the compiler as "inc/hw_ints.h" is inside TivaWare.

    To fix the error, go to Project Properties->Build->Compiler->Include Options, and under --include_path options, add the path to your TivaWare installation (usually something like C:\ti\TivaWare_C_Series-2.1.4.178).

  • AartiG Hi,

    Your answer helps.
    I have another suggestion related to this matter.
    I think Ruben can add the inc/hw_ints.h to his project folder, or copy the folder containing inc/hw_ints.h and past it in his project folder and use it by including it correctly.
    I use this technique whenever I want to use a header file, I made before.

    #include "MY CURRENT PROJECT PATH / THE HEADER FILE I WANT TO USE.h"