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.

CCS/TM4C123GH6PM: Unresolved Symbol Errors

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

Tool/software: Code Composer Studio

I am trying to debug my program and I am running into the following errors....


undefined first referenced
symbol in file
--------- ----------------
Delay ./main.obj
ROM_FPULazyStackingEnable ./main.obj
ROM_GPIOPinConfigure ./main.obj
ROM_GPIOPinTypeADC ./main.obj
ROM_GPIOPinTypeGPIOInput ./main.obj
ROM_GPIOPinTypeGPIOOutput ./main.obj
ROM_GPIOPinTypeUART ./main.obj
ROM_GPIOPinWrite ./main.obj
ROM_SysCtlClockSet ./main.obj
ROM_SysCtlPeripheralEnable ./main.obj
UARTStdioConfig ./main.obj
UARTprintf ./main.obj

error #10234-D: unresolved symbols remain

error #10010: errors encountered during linking; "HalfBridge.out" not built
>> Compilation failure
makefile:149: recipe for target 'HalfBridge.out' failed
gmake[1]: *** [HalfBridge.out] Error 1
gmake: *** [all] Error 2
makefile:145: recipe for target 'all' failed

**** Build Finished ****

I know this probably has something to do with my include files and what my project properties are linked to. 

This is what my code include section looks like:

#include <stdint.h>
#include <stdbool.h>
#include "tm4c123gh6pm.h"
#include "hw_memmap.h"
#include "hw_types.h"
#include "hw_ints.h"
#include "hw_nvic.h"
#include "hw_timer.h"
#include "hw_adc.h"
#include "adc.h"
#include "debug.h"
#include "fpu.h"
#include "gpio.h"
#include "pin_map.h"
#include "rom.h"
#include "sysctl.h"
#include "uart.h"
#include "systick.h"
#include "uartstdio.h"
#include "interrupt.h"
#include "comp.h"
#include "rom_map.h"
#include "swupdate.h"
#include "ustdlib.h"

And this is what my Build search path looks like: 

I am not sure what include files I still need or how to fix these errors. 

Any help would be appreciated. 

Thanks!

  • Hello Rachel,

    It looks like you are missing the project links for TivaWare in your newly made project. While I could walk you through how to add what is missing but frankly it would be significantly quicker for you if you do the following:

    1) Import Project0 for the EK-TM4C123GXL board into your workspace.
    2) Copy the code from your main file to replace what is in project0.c
    3) Adjust startup_ccs.c as needed for any interrupt routines
    4) (Optional) Rename your project and files

    You will also need to add utilities that aren't part of driverlib to the project, have a look at the steps in this post about how to correctly link files to your project (should just be the UART files I listed in the linked post): e2e.ti.com/.../2787705

    Should only take a couple minutes to do all that, and from there you should be able to build the project without errors! :)