Hey at all,
i tried to programm an UART connection to my TM4C123GXL.
When i try to debug, I get some unresolved symbol remain errors. I fixed them by importing some .c files. Unfortunately this generates three other errors:
unresolved symbol CPUwfi ; in sysctl.obj (sysctl.cis added)
Sometimes the following errors didn´t show off, i don´t know why they appear and disappear without any changes:
unresolved symbol IntEnable
unresolved symbol IntDisable.
This is my Code:
#include <stdbool.h>
#include <stdint.h>
#include "inc/hw_memmap.h"
#include "inc/hw_types.h"
#include "driverlib/gpio.h"
#include "driverlib/pin_map.h"
#include "driverlib/sysctl.h"
#include "driverlib/uart.h"
#define GPIO_PA0_U0RX GPIO_PIN_0
#define GPIO_PA1_U0TX GPIO_PIN_1
int main(void) {
char cThisChar;
SysCtlClockSet(SYSCTL_SYSDIV_1 | SYSCTL_USE_OSC | SYSCTL_OSC_MAIN | SYSCTL_XTAL_16MHZ);
SysCtlPeripheralEnable(SYSCTL_PERIPH_UART0);
SysCtlPeripheralEnable(SYSCTL_PERIPH_GPIOA);
GPIOPinConfigure(GPIO_PA0_U0RX);
GPIOPinConfigure(GPIO_PA1_U0TX);
GPIOPinTypeUART(GPIO_PORTA_BASE, GPIO_PIN_0 | GPIO_PIN_1);
UARTConfigSetExpClk(UART0_BASE, SysCtlClockGet(), 115200, (UART_CONFIG_WLEN_8 | UART_CONFIG_STOP_ONE |UART_CONFIG_PAR_NONE));
UARTCharPut(UART0_BASE, '!');
do
{
//
// Read a character using the blocking read function. This function
// will not return until a character is available.
//
cThisChar = UARTCharGet(UART0_BASE);
//
// Write the same character using the blocking write function. This
// function will not return until there was space in the FIFO and
// the character is written.
//
UARTCharPut(UART0_BASE, cThisChar);
}
while((cThisChar != '\n') && (cThisChar != '\r'));
//
// Put a character to show the end of the example. This will display on
// the terminal.
//
UARTCharPut(UART0_BASE, '@');
//
// Return no errors
//
return 0;
}
Can anyone help me, please?