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.

Undefined Symbols in ADC Example

Other Parts Discussed in Thread: TM4C1230C3PM, TM4C123GH6PM

Hi all,

I'm relatively new to embedded development using C, but I have had a bit of experience with other products. Right now I'm working with the TM4C123GXL, Code Composer 5.4, and the latest TivaWare. 

I'm looking to do some work with processing analog inputs, so I am trying TIs example code as a starting point to get something basic working. However, I'm having tons of issues with included files and the compiler. For instance, I was getting undefined symbols for ADC and GPIO functions. I solved those by adding "driverlib/adc.c" and "driverlib/gpio.c" to my includes. However, I still have quite a few undefined symbols:

undefined first referenced
symbol in file
--------- ----------------

IntDisable ./main.obj
IntEnable ./main.obj
IntRegister ./main.obj
IntUnregister ./main.obj
SysCtlClockGet ./main.obj
SysCtlClockSet ./main.obj
SysCtlDelay ./main.obj
SysCtlPeripheralEnable ./main.obj
UARTClockSourceSet ./main.obj
UARTStdioConfig ./main.obj
UARTprintf ./main.obj

I was wondering if anybody could tell me what additional files I need to include.

However, I was under the impression it is poor practice to include these .c files, so if anybody could tell me the bigger problem that is causing my issues that would be even better!

Here's my current build output:


**** Build of configuration Debug for project single_ended_adc_example ****

"D:\\ti\\ccsv5\\utils\\bin\\gmake" -k all
'Building target: single_ended_adc_example.out'
'Invoking: ARM Linker'
"D:/ti/ccsv5/tools/compiler/arm_5.0.4/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 --abi=eabi -me -g --define=PART_TM4C1230C3PM --diag_warning=225 --display_error_number --diag_wrap=off -z --stack_size=512 -m"single_ended_adc_example.map" --heap_size=0 -i"D:/ti/ccsv5/tools/compiler/arm_5.0.4/lib" -i"D:/ti/ccsv5/tools/compiler/arm_5.0.4/include" --reread_libs --warn_sections --display_error_number --diag_wrap=off --xml_link_info="single_ended_adc_example_linkInfo.xml" --rom_model -o "single_ended_adc_example.out" "./main.obj" -l"libc.a" "../tm4c123gh6pm.cmd"
<Linking>

undefined first referenced
symbol in file
--------- ----------------

IntDisable ./main.obj
IntEnable ./main.obj
IntRegister ./main.obj
IntUnregister ./main.obj
SysCtlClockGet ./main.obj
SysCtlClockSet ./main.obj
SysCtlDelay ./main.obj
SysCtlPeripheralEnable ./main.obj
UARTClockSourceSet ./main.obj
UARTStdioConfig ./main.obj
UARTprintf ./main.obj

>> Compilation failure
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "single_ended_adc_example.out" not built
gmake: *** [single_ended_adc_example.out] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****

Any help would be greatly appreciated!

Thanks,

Tom