Other Parts Discussed in Thread: TM4C123GH6PM
Hello all,
I am using Code Composer Studio 6.0.1. Also I am using a Tiva C Series TM4C123G (more specifically TM4C123GH6PM).
My problem: I am unable to load a program in my microcontroller but don't know why, there is a problem with my header file I think.
//First I tried this:
When I tried to use:
#include "tm4c123gh6pm.h"
It give me an error at that line. The error was :
Description Resource Path Location Type
#1965 cannot open source file "tm4c123gh6pm.h" main.c /Tiva - GPIO Config line 2 C/C++ Problem
// Then I tried this:
Then when I tried:
#include "C:\ti\TivaWare_C_Series-2.1.0.12573\inc\tm4c123gh6pm.h"
The debugger give me an error at all the #defines I used from the header, for example GPIO_PORTF_DATA_R, GPIO_PORTF_AFSEL_R, GPIO_PORTF_PUR_R ect.
More specifically the errors whereas followed:
Description Resource Path Location Type
#20 identifier "uint32_t" is undefined main.c /Tiva - GPIO Config line 38 C/C++ Problem
#20 identifier "uint32_t" is undefined main.c /Tiva - GPIO Config line 37 C/C++ Problem
#20 identifier "uint32_t" is undefined main.c /Tiva - GPIO Config line 39 C/C++ Problem
#20 identifier "uint32_t" is undefined main.c /Tiva - GPIO Config line 20 C/C++ Problem
#20 identifier "uint32_t" is undefined main.c /Tiva - GPIO Config line 29 C/C++ Problem
#20 identifier "uint32_t" is undefined main.c /Tiva - GPIO Config line 30 C/C++ Problem
#20 identifier "uint32_t" is undefined main.c /Tiva - GPIO Config line 31 C/C++ Problem
#20 identifier "uint32_t" is undefined main.c /Tiva - GPIO Config line 32 C/C++ Problem
#20 identifier "uint32_t" is undefined main.c /Tiva - GPIO Config line 34 C/C++ Problem
#20 identifier "uint32_t" is undefined main.c /Tiva - GPIO Config line 35 C/C++ Problem
#20 identifier "uint32_t" is undefined main.c /Tiva - GPIO Config line 36 C/C++ Problem
#20 identifier "uint32_t" is undefined main.c /Tiva - GPIO Config line 15 C/C++ Problem
#20 identifier "uint32_t" is undefined main.c /Tiva - GPIO Config line 17 C/C++ Problem
Can someone tell me why this is? Why can't it read the defines correctly?