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.
Tool/software: Code Composer Studio
Dear,
I am trying to use the TivaWare library and compile an example code. Because I am using Linux, I have downloaded tivaware_c_series_2_1_4_178. This contains directories like driverlib and examples.
Within code composer studio version 8.0.0.00016, I went to Windows > Preferences > Compilers and added the discovery path to my tivaware_c_series_2_1_1_4_178 directory.
I also went to Windows > Preferences > General > Workspace > Linked resources and added a path variable "TIVAWARE_BASE" with the value a relative path to my tivaware-c_series_2_1_1_4_178 directory.
When I right click on my project and hit properties, I went to build > ARM compiler > include options and added the directory "${TIVAWARE_BASE}" which has just been defined.
If I compile the ADC single_ended.c file, I get the following output.
*** Build of configuration Debug for project ADC3 **** /opt/ccstudio/ccsv8/utils/bin/gmake -k -j 4 all -O Building target: "ADC3.out" Invoking: ARM Linker "/opt/ccstudio/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --define=ccs="ccs" --define=PART_TM4C1294NCPDT -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi -z -m"ADC3.map" --heap_size=0 --stack_size=512 -i"/opt/ccstudio/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/lib" -i"/opt/ccstudio/ccsv8/tools/compiler/ti-cgt-arm_18.1.1.LTS/include" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="ADC3_linkInfo.xml" --rom_model -o "ADC3.out" "./single_ended.obj" "./tm4c1294ncpdt_startup_ccs.obj" "../tm4c1294ncpdt.cmd" -llibc.a <Linking> undefined first referenced symbol in file --------- ---------------- ADCIntClear ./single_ended.obj ADCIntStatus ./single_ended.obj ADCProcessorTrigger ./single_ended.obj ADCSequenceConfigure ./single_ended.obj ADCSequenceDataGet ./single_ended.obj ADCSequenceEnable ./single_ended.obj ADCSequenceStepConfigure ./single_ended.obj GPIOPinConfigure ./single_ended.obj GPIOPinTypeADC ./single_ended.obj GPIOPinTypeUART ./single_ended.obj SysCtlClockGet ./single_ended.obj SysCtlClockSet ./single_ended.obj SysCtlDelay ./single_ended.obj SysCtlPeripheralEnable ./single_ended.obj UARTClockSourceSet ./single_ended.obj UARTStdioConfig ./single_ended.obj UARTprintf ./single_ended.obj error #10234-D: unresolved symbols remain >> Compilation failure makefile:140: recipe for target 'ADC3.out' failed error #10010: errors encountered during linking; "ADC3.out" not built gmake[1]: *** [ADC3.out] Error 1 gmake: *** [all] Error 2 makefile:136: recipe for target 'all' failed **** Build Finished ****
Can anyone tell me how to include the Tivaware library?