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.

EK-TM4C1294XL: Support Request: TM4C1294XL – Build Failure Due to Missing inc/hw_memmap.h and TivaWare Include Path Issues

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

Tool/software:

Dear Support Team,

I am currently developing an application on the TM4C1294XL Connected LaunchPad (MCU: TM4C1294NCPDT) using Code Composer Studio (CCS 20.1.1) and TivaWare C Series SDK 2.2.0.295.


Wrench Setup Summary:

  • MCU: TM4C1294NCPDT (TI Tiva C Series)

  • IDE: Code Composer Studio (CCS 20.1.1)

  • Compiler: ti-cgt-armllvm_4.0.2.LTS

  • Drivers: ICDI drivers installed and board detected

  • Project: Imported hello.c and related files (TivaWare examples)


X Problem Description:

When building the project, I encounter the following fatal errors:

fatal error: 'inc/hw_memmap.h' file not found fatal error: 'inc/hw_gpio.h' file not found fatal error: 'inc/hw_nvic.h' file not found

Despite having installed TivaWare 2.2.0.295, the compiler does not recognize the inc/ folder and fails to compile.


What I've Tried:

  • Added the following include paths:

    C:/TI/TivaWare_C_Series-2.2.0.295 C:/TI/TivaWare_C_Series-2.2.0.295/inc
  • Cleaned and rebuilt the project

  • Manually verified that hw_memmap.h and other headers exist in the /inc directory

  • Also linked the driverlib.lib from:

    C:/TI/TivaWare_C_Series-2.2.0.295/driverlib/ccs/Debug/driverlib.lib

Still, the build fails with missing include file errors.

Could you please help me identify what may be misconfigured or missing?
Specifically:

  • Is there a known issue with include path resolution in CCS 12.x with this compiler?

  • Is there a preferred way to set include paths and link libraries for TivaWare projects?

Any guidance to help resolve this issue would be greatly appreciated, as I need to get this board operational for development.

  • Hi,

     Setup Summary:

    • MCU: TM4C1294NCPDT (TI Tiva C Series)

    • IDE: Code Composer Studio (CCS 20.1.1)

    • Compiler: ti-cgt-armllvm_4.0.2.LTS

    • Drivers: ICDI drivers installed and board detected

    • Project: Imported hello.c and related files (TivaWare examples)

    Hi,

      For TM4C, please use the TI Arm Compiler and not the Clang compiler. There is some incompatibility between TivaWare SDK and Clang compiler. CCS20 by default only has the Clang compiler installed. You will need to manually install TI Arm Compiler which you can download from https://www.ti.com/tool/ARM-CGT

    Once you download and install, make sure CCS20 will automatically detect the path to the installation location by going to the setting. See below image at the lower left setting icon and update the discovery path. You can also watch this CCS20 video training. https://www.youtube.com/watch?v=1jkpPGcbxxA. Having said that, if you are used to the Eclipse-based CCS12 and prior versions and no strong desire to incur some learning curve on the Theia-based CCS20 then I will suggest you stay with the CCS12 version. For myself, I'm still using CCS12 for my daily work. By all means, you can use CCS20 if you want. It is just that you need to make CCS20 detect the TI Arm compiler path. 

    • Is there a known issue with include path resolution in CCS 12.x with this compiler?

    • Is there a preferred way to set include paths and link libraries for TivaWare projects?

    Do you mean CCS12.x or CCS20.x? There is no issue with CCS12.x. Make sure you import TivaWare SDK examples into  the CCS workspace, not by copy the source. Importing a project ensures all CCS settings are also imported. They should work out of box. 


  • Dear Team,

    Thank you for your response and for pointing out the compatibility concern with the Clang compiler in CCS20.

    I followed your instructions and installed the TI ARM Compiler from www.ti.com/.../ARM-CGT, and ensured it was properly detected in CCS under the compiler discovery settings.

    However, I am still encountering the same build errors related to missing TivaWare header files, such as:

    fatal error: 'inc/hw_memmap.h' file not found
    fatal error: 'inc/hw_nvic.h' file not found
    fatal error: 'inc/hw_gpio.h' file not found
    To clarify:

    I have already added the correct TivaWare include paths:

    C:/TI/TivaWare_C_Series-2.2.0.295
    C:/TI/TivaWare_C_Series-2.2.0.295/inc
    I also linked the driverlib.lib file located at:

    C:/TI/TivaWare_C_Series-2.2.0.295/driverlib/ccs/Debug/driverlib.lib
    I imported the example project using the CCS project import wizard — not by copying source files manually.

    Despite this, the build fails with the same missing include errors. I’m currently using CCS 20..x and the TI ARM Compiler 

    Could you please advise what else might be causing this issue, or if there's something specific in the project settings that needs adjustment?

  • HI,

      Did you import from Resource Explorer within the CCS or directly from TivaWare SDK at C:\ti\TivaWare_C_Series-2.2.0.295? Are you having issues on both methods of import?

      It's a bit weird that the import does not seem have the proper project settings. Can you uninstall CCS20 and reinstall again? Once reinstalled, please import the project again. Will you still have the same issue? Make sure that CCS will discover the TI Arm compiler as discussed.