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.

CODECOMPOSER: #20 identifier "uint32_t" is undefined

Part Number: CODECOMPOSER
Other Parts Discussed in Thread: EK-TM4C123GXL

Tool/software:

Why are stdbool.h and stdint.h not correctly included in the TivaWare DriverLib files? I include them in my own files which use Boolean values and such. I shouldn't need to edit the driverlib header files to add them in. I'm using a tm4c123g but I don't think that's the issue here.

Here is what I'm seeing on my end:

  • Hi Nick,

      Sorry for the delay as your post is just routed to me. Your image is too small for viewing. If you break up your screenshot into several smaller images then it will greatly help for viewing. 

    Why are stdbool.h and stdint.h not correctly included in the TivaWare DriverLib files? I

      BTW, if you use the TivaWare then there really isn't anything to modify. Why don't use take a look at the hello example at C:\ti\TivaWare_C_Series-2.2.0.295\examples\boards\ek-tm4c123gxl\hello. This example uses uartstdio.c. As you can see the uartstdio.c has the #include <stdbool.h>. The stdbool.h is in the TI Arm compiler. Depending on your compiler version, it is located as an example at C:\ti\ccs1260\ccs\tools\compiler\ti-cgt-arm_20.2.7.LTS\include. If you properly import a TivaWare CCS project, the the project setting will have the correct search path for the compiler include directory. 

    The CCS project should have the include search path for "${CG_TOOL_ROOT}/include" whee CG_TOOL_ROOT points to your CCS installation and the compiler version. For example, my CG_TOOL_ROOT points to C:\ti\ccs1260\ccs\tools\compiler\ti-cgt-arm_20.2.7.LTS. Again, if you import a TivaWare CCS project as a starting point for your development, all the basic project settings are defined for you already.