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 doesn't recognize "uint8_t" , "int32_t" , "uint32_t" "bool"

Other Parts Discussed in Thread: EK-TM4C1294XL

When I build my project at CCS 6.1.1.0022, EK-TM4C1294XL) there are a lot of error like that:

Description	Resource	Path	Location	Type
#20 identifier "bool" is undefined	.ccsproject	/3kW_PS_controller	line 67, external location: c:\TI\TivaWare_C_Series-2.1.1.71\driverlib\interrupt.h	C/C++ Problem
#20 identifier "bool" is undefined	.ccsproject	/3kW_PS_controller	line 68, external location: c:\TI\TivaWare_C_Series-2.1.1.71\driverlib\interrupt.h	C/C++ Problem
#20 identifier "bool" is undefined	io.h	/3kW_PS_controller	line 46	C/C++ Problem
#20 identifier "int32_t" is undefined	.ccsproject	/3kW_PS_controller	line 75, external location: c:\TI\TivaWare_C_Series-2.1.1.71\driverlib\interrupt.h	C/C++ Problem
#20 identifier "uint32_t" is undefined	.ccsproject	/3kW_PS_controller	line 69, external location: c:\TI\TivaWare_C_Series-2.1.1.71\driverlib\interrupt.h	C/C++ Problem
#20 identifier "uint32_t" is undefined	.ccsproject	/3kW_PS_controller	line 70, external location: c:\TI\TivaWare_C_Series-2.1.1.71\driverlib\interrupt.h	C/C++ Problem
#20 identifier "uint32_t" is undefined	.ccsproject	/3kW_PS_controller	line 71, external location: c:\TI\TivaWare_C_Series-2.1.1.71\driverlib\interrupt.h	C/C++ Problem
#20 identifier "uint32_t" is undefined	.ccsproject	/3kW_PS_controller	line 72, external location: c:\TI\TivaWare_C_Series-2.1.1.71\driverlib\interrupt.h	C/C++ Problem
#20 identifier "uint32_t" is undefined	.ccsproject	/3kW_PS_controller	line 73, external location: c:\TI\TivaWare_C_Series-2.1.1.71\driverlib\interrupt.h	C/C++ Problem
#20 identifier "uint32_t" is undefined	.ccsproject	/3kW_PS_controller	line 75, external location: c:\TI\TivaWare_C_Series-2.1.1.71\driverlib\interrupt.h	C/C++ Problem
#20 identifier "uint32_t" is undefined	.ccsproject	/3kW_PS_controller	line 76, external location: c:\TI\TivaWare_C_Series-2.1.1.71\driverlib\interrupt.h	C/C++ Problem
#20 identifier "uint32_t" is undefined	.ccsproject	/3kW_PS_controller	line 77, external location: c:\TI\TivaWare_C_Series-2.1.1.71\driverlib\interrupt.h	C/C++ Problem
#20 identifier "uint32_t" is undefined	.ccsproject	/3kW_PS_controller	line 78, external location: c:\TI\TivaWare_C_Series-2.1.1.71\driverlib\interrupt.h	C/C++ Problem
#20 identifier "uint32_t" is undefined	.ccsproject	/3kW_PS_controller	line 79, external location: c:\TI\TivaWare_C_Series-2.1.1.71\driverlib\interrupt.h	C/C++ Problem
#20 identifier "uint32_t" is undefined	.ccsproject	/3kW_PS_controller	line 80, external location: c:\TI\TivaWare_C_Series-2.1.1.71\driverlib\interrupt.h	C/C++ Problem
#20 identifier "uint32_t" is undefined	.ccsproject	/3kW_PS_controller	line 81, external location: c:\TI\TivaWare_C_Series-2.1.1.71\driverlib\interrupt.h	C/C++ Problem
#20 identifier "uint32_t" is undefined	.ccsproject	/3kW_PS_controller	line 82, external location: c:\TI\TivaWare_C_Series-2.1.1.71\driverlib\interrupt.h	C/C++ Problem
#20 identifier "uint32_t" is undefined	.ccsproject	/3kW_PS_controller	line 83, external location: c:\TI\TivaWare_C_Series-2.1.1.71\driverlib\interrupt.h	C/C++ Problem
#20 identifier "uint8_t" is undefined	.ccsproject	/3kW_PS_controller	line 74, external location: c:\TI\TivaWare_C_Series-2.1.1.71\driverlib\interrupt.h	C/C++ Problem

I included stdint.h and stdbool.h at the start of all source files that include interrupt.h, and also tried to include these files in the start of interrupt.h, but the errors don't disappear.

How can I solve this problem?

Uriel

  • Hi Uriel,

    Add these #include below at your C file.

    #include <stdint.h>
    #include <stdbool.h>

    - kel
  • Hello kel.
    As i wrote, i did it, but the problem didn't solve.
  • Hi Uriel,

    If you check at Tivaware Example programs like interrupt example program uint32_t and bool are dependent on these #include. If you comment out these #include similar error message will appear after build. So, something else at your CCS project properties may be causing this.

    One way is to just use Tivaware Example programs like "interrupt" and then add your code.

    -kel
  • Uriel Cohen said:
    When I build my project at CCS 6.1.1.0022, EK-TM4C1294XL) there are a lot of error like that:

    Was this project originally designed using Stellarisware, and now being used with TivaWare? There are some related threads with similar reports, one of them being this one.

    If the above is true, one thing you could try is to start with a TivaWare example and add your code to it, so all the appropriate headers are correctly pulled in/referenced.

  • Helli Kel.
    I think it is very bad way to solve problem. I want to take code from some examples.
    In this case, i didn't find what i need in the standard examples, so i downloaded another example, but it didn't compile.
  • Hi Uriel,

    Maybe that example program you downloaded has some project settings causing these errors. What you can do is compare project settings of that example program and a working Tivaware example program like "interrupt".

    It is not a bad way to solve the problem by using a existing Tivaware example program as base for your development. Actually at TM4C forum it is always recommended.

    A Tivaware example program compiles without errors. So, anything you add to it that cause it to have compile errors, you know that your added code caused it. That is just one of the advantage of using a Tivaware example program as base for your development.

    - kel
  • Hello Uriel,

    Can you please share the compilation log?

    Regards
    Amit
  • Description Resource Path Location Type
    #20 identifier "bool" is undefined .ccsproject /3kW_PS_controller line 67, external location: c:\TI\TivaWare_C_Series-2.1.1.71\driverlib\interrupt.h C/C++ Problem
    #20 identifier "bool" is undefined .ccsproject /3kW_PS_controller line 68, external location: c:\TI\TivaWare_C_Series-2.1.1.71\driverlib\interrupt.h C/C++ Problem
    #20 identifier "bool" is undefined io.h /3kW_PS_controller line 46 C/C++ Problem
    #20 identifier "int32_t" is undefined .ccsproject /3kW_PS_controller line 75, external location: c:\TI\TivaWare_C_Series-2.1.1.71\driverlib\interrupt.h C/C++ Problem
    #20 identifier "uint32_t" is undefined .ccsproject /3kW_PS_controller line 69, external location: c:\TI\TivaWare_C_Series-2.1.1.71\driverlib\interrupt.h C/C++ Problem
    #20 identifier "uint32_t" is undefined .ccsproject /3kW_PS_controller line 70, external location: c:\TI\TivaWare_C_Series-2.1.1.71\driverlib\interrupt.h C/C++ Problem
    #20 identifier "uint32_t" is undefined .ccsproject /3kW_PS_controller line 71, external location: c:\TI\TivaWare_C_Series-2.1.1.71\driverlib\interrupt.h C/C++ Problem
    #20 identifier "uint32_t" is undefined .ccsproject /3kW_PS_controller line 72, external location: c:\TI\TivaWare_C_Series-2.1.1.71\driverlib\interrupt.h C/C++ Problem
    #20 identifier "uint32_t" is undefined .ccsproject /3kW_PS_controller line 73, external location: c:\TI\TivaWare_C_Series-2.1.1.71\driverlib\interrupt.h C/C++ Problem
    #20 identifier "uint32_t" is undefined .ccsproject /3kW_PS_controller line 75, external location: c:\TI\TivaWare_C_Series-2.1.1.71\driverlib\interrupt.h C/C++ Problem
    #20 identifier "uint32_t" is undefined .ccsproject /3kW_PS_controller line 76, external location: c:\TI\TivaWare_C_Series-2.1.1.71\driverlib\interrupt.h C/C++ Problem
    #20 identifier "uint32_t" is undefined .ccsproject /3kW_PS_controller line 77, external location: c:\TI\TivaWare_C_Series-2.1.1.71\driverlib\interrupt.h C/C++ Problem
    #20 identifier "uint32_t" is undefined .ccsproject /3kW_PS_controller line 78, external location: c:\TI\TivaWare_C_Series-2.1.1.71\driverlib\interrupt.h C/C++ Problem
    #20 identifier "uint32_t" is undefined .ccsproject /3kW_PS_controller line 79, external location: c:\TI\TivaWare_C_Series-2.1.1.71\driverlib\interrupt.h C/C++ Problem
    #20 identifier "uint32_t" is undefined .ccsproject /3kW_PS_controller line 80, external location: c:\TI\TivaWare_C_Series-2.1.1.71\driverlib\interrupt.h C/C++ Problem
    #20 identifier "uint32_t" is undefined .ccsproject /3kW_PS_controller line 81, external location: c:\TI\TivaWare_C_Series-2.1.1.71\driverlib\interrupt.h C/C++ Problem
    #20 identifier "uint32_t" is undefined .ccsproject /3kW_PS_controller line 82, external location: c:\TI\TivaWare_C_Series-2.1.1.71\driverlib\interrupt.h C/C++ Problem
    #20 identifier "uint32_t" is undefined .ccsproject /3kW_PS_controller line 83, external location: c:\TI\TivaWare_C_Series-2.1.1.71\driverlib\interrupt.h C/C++ Problem
    #20 identifier "uint8_t" is undefined .ccsproject /3kW_PS_controller line 74, external location: c:\TI\TivaWare_C_Series-2.1.1.71\driverlib\interrupt.h C/C++ Problem