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.

TM4C1290NCPDT: CCS suddenly getting "uint32_t" is undefined.

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

Tool/software:

I don't know what I did while editing but suddenly I start get a whole bunch of this error:

"C:/TI/tivaware_c_series_2_1_4_178/driverlib/timer.h", line 245: error #20: identifier "uint32_t" is undefined

I don't know where to start looking to fix this.

Thanks

Doug

CCS 10.4.0.00006,  Tivaware 2.1.4.178

  • Hi Doug,

      Please make sure in your application where timer.h is included, you also have the below include. 

    #include <stdint.h>

    If you believe you have the above header file included already and still have the error then make sure the stdint.h file in the include path of your CCS project settings. 

  • Hi Charles,

    Yes, I've had "${CG_TOOL_ROOT}/include" in my project from the very beginning.

    Next thought?

    Thanks, Doug

  • Hi Doug,

    Check if ${CG_TOOL_ROOT}/include expands to a valid location. 

      

    As I have shown in the last reply, do you find the stdint.h in the file system? Below is where I find stdint.h for my installation per my CCS and compiler version. 

    If everything is at the right place then i will suggest you try:

    - Create a new CCS workspace

    - Import the simple hello example at C:\ti\TivaWare_C_Series-2.2.0.295\examples\boards\ek-tm4c1294xl\hello

    - Compile the hello project. Do you have the same problem? The hello example uses uint32_t type. 

  • Hi Charles,

    I've been fixing other errors I'd been getting on compile, and magically the problem went away.  Probably a syntax error somewhere that screwed things up

    Thanks, Doug