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.

Regarding include path for header files

Other Parts Discussed in Thread: TM4C123GH6PM

Whenever we create a project for MSP430 devices,  include path (given below)for header file will get automatically added.

c:/ti/ccsv6/ccs_base/msp430/include

Why it is not getting added automatically when i create a project for TIVA (  TM4C123GXL) device ?

  • would you like to get this one?
  • SARATH V A said:

    Whenever we create a project for MSP430 devices,  include path (given below)for header file will get automatically added.

    c:/ti/ccsv6/ccs_base/msp430/include

    For MSP430, there are device header files that directory (which are usually #included in the source file), hence the path needs to be added to the compiler include path.

    For Tiva C, there are no such device header files, hence adding that path is not required.

  • Hi Sarath,

    There is a Getting Started Guide for Tiva Launchpad, where you can learn how to create a new project at CCS including setup include paths.

    Another way, is to just use an existing working example program like "hello", then add your code. This way any modifications you add to the working example program that made it to have compile errors. you would know that your added modifications made it not to work.

    - kel

  • Hii Aarti,
    Thank u for your help.
    is "tm4c123gh6pm.h" not a device headerfile ?

    why they are not adding this header file path when iam creating a poject?
  • SARATH V A said:
    is "tm4c123gh6pm.h" not a device headerfile ?

    Yes, but this is part of the TivaWare package, not CCS. A simple new project template does not automatically include this header file, but if your source file #includes this header file, then you need to add the include path to point to its location within TivaWare. If you import one of the TivaWare example projects, you can see that the path to the root TivaWare folder is one of the compiler include paths.