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.

EK-TM4C123GXL: Linker errors when using UARTprintf, UARTStdioConfig functions

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

Hello,

I am using EK-TM4C123GXL with KEIL interface. I am trying to use UARTprintf, UARTStdioConfig in my project to print to a console. My include list is as below. UART1,h has my personal UART1 initialize routine.

#include <math.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <string.h>
#include <stdarg.h>

#include "..//tm4c123gh6pm.h"
#include "PLL.h"
#include "UART1.h"
#include "driverlib/fpu.h"
#include "driverlib/uart.h"
#include "utils/uartstdio.h".

I use UARTprintf and UARTStdioConfig functions in my main routine as shown below.

UARTStdioConfig(0, 115200, 16000000);

UARTprintf("Calibration: ");

But I get linking errors as listed below.

.\IMU_I2C.axf: Error: L6218E: Undefined symbol IntDisable (referred from uart.o).
.\IMU_I2C.axf: Error: L6218E: Undefined symbol IntEnable (referred from uart.o).
.\IMU_I2C.axf: Error: L6218E: Undefined symbol IntRegister (referred from uart.o).
.\IMU_I2C.axf: Error: L6218E: Undefined symbol IntUnregister (referred from uart.o).
.\IMU_I2C.axf: Error: L6218E: Undefined symbol SysCtlPeripheralEnable (referred from uartstdio.o).
.\IMU_I2C.axf: Error: L6218E: Undefined symbol SysCtlPeripheralPresent (referred from uartstdio.o).

I have added the /utils/uartstdio.c and /driverlib/uart.c files to my project as shown below. I don't understand what I am missing. Please advise.

Thank you for your help and considerarion.

Regards,

Rahul Mhatre