Other Parts Discussed in Thread: TM4C1294NCPDT,
Tool/software: Code Composer Studio
I am trying to compile a library I imported from GitHub. It seems to have linker errors with definitions that should be in "utils/uartstdio.h" even though I have added to the linker the driverlib.lib.
I have set the following in the ARM compiler and linker sections of the projects properties:
When I debug, the following problems appear:
This is what appear in the console:
**** Build of configuration Debug for project tm4c_mpu9250 ****
/opt/ti/ccs910/ccs/utils/bin/gmake -k -j 12 all -O
Building file: "../HAL/tm4c1294/hal_mpu_i2c_tm4c.c"
Invoking: ARM Compiler
"/opt/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="/home/jb18/Documents/tm4c_mpu9250-master" --include_path="/opt/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include" --include_path="/home/jb18/.wine/drive_c/ti/TivaWare_C_Series-2.1.4.178/inc" --include_path="/home/jb18/.wine/drive_c/ti/TivaWare_C_Series-2.1.4.178" --define=ccs="ccs" --define=PART_TM4C1294NCPDT --gcc --abi=eabi --preproc_with_compile --preproc_dependency="HAL/tm4c1294/hal_mpu_i2c_tm4c.d_raw" --obj_directory="HAL/tm4c1294" "../HAL/tm4c1294/hal_mpu_i2c_tm4c.c"
Finished building: "../HAL/tm4c1294/hal_mpu_i2c_tm4c.c"
Building file: "../mpu9250/api_mpu9250.c"
Invoking: ARM Compiler
"/opt/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="/home/jb18/Documents/tm4c_mpu9250-master" --include_path="/opt/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include" --include_path="/home/jb18/.wine/drive_c/ti/TivaWare_C_Series-2.1.4.178/inc" --include_path="/home/jb18/.wine/drive_c/ti/TivaWare_C_Series-2.1.4.178" --define=ccs="ccs" --define=PART_TM4C1294NCPDT --gcc --abi=eabi --preproc_with_compile --preproc_dependency="mpu9250/api_mpu9250.d_raw" --obj_directory="mpu9250" "../mpu9250/api_mpu9250.c"
Finished building: "../mpu9250/api_mpu9250.c"
Building file: "../tm4c1294ncpdt_startup_ccs.c"
Invoking: ARM Compiler
"/opt/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="/home/jb18/Documents/tm4c_mpu9250-master" --include_path="/opt/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include" --include_path="/home/jb18/.wine/drive_c/ti/TivaWare_C_Series-2.1.4.178/inc" --include_path="/home/jb18/.wine/drive_c/ti/TivaWare_C_Series-2.1.4.178" --define=ccs="ccs" --define=PART_TM4C1294NCPDT --gcc --abi=eabi --preproc_with_compile --preproc_dependency="tm4c1294ncpdt_startup_ccs.d_raw" "../tm4c1294ncpdt_startup_ccs.c"
Finished building: "../tm4c1294ncpdt_startup_ccs.c"
Building file: "../mpu9250/nondmp_mpu9250.cpp"
Invoking: ARM Compiler
"/opt/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="/home/jb18/Documents/tm4c_mpu9250-master" --include_path="/opt/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include" --include_path="/home/jb18/.wine/drive_c/ti/TivaWare_C_Series-2.1.4.178/inc" --include_path="/home/jb18/.wine/drive_c/ti/TivaWare_C_Series-2.1.4.178" --define=ccs="ccs" --define=PART_TM4C1294NCPDT --gcc --abi=eabi --preproc_with_compile --preproc_dependency="mpu9250/nondmp_mpu9250.d_raw" --obj_directory="mpu9250" "../mpu9250/nondmp_mpu9250.cpp"
Finished building: "../mpu9250/nondmp_mpu9250.cpp"
Building file: "../mpu9250/MahonyAHRS.cpp"
Invoking: ARM Compiler
"/opt/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="/home/jb18/Documents/tm4c_mpu9250-master" --include_path="/opt/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include" --include_path="/home/jb18/.wine/drive_c/ti/TivaWare_C_Series-2.1.4.178/inc" --include_path="/home/jb18/.wine/drive_c/ti/TivaWare_C_Series-2.1.4.178" --define=ccs="ccs" --define=PART_TM4C1294NCPDT --gcc --abi=eabi --preproc_with_compile --preproc_dependency="mpu9250/MahonyAHRS.d_raw" --obj_directory="mpu9250" "../mpu9250/MahonyAHRS.cpp"
Finished building: "../mpu9250/MahonyAHRS.cpp"
Building file: "../main.cpp"
Invoking: ARM Compiler
"/opt/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="/home/jb18/Documents/tm4c_mpu9250-master" --include_path="/opt/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include" --include_path="/home/jb18/.wine/drive_c/ti/TivaWare_C_Series-2.1.4.178/inc" --include_path="/home/jb18/.wine/drive_c/ti/TivaWare_C_Series-2.1.4.178" --define=ccs="ccs" --define=PART_TM4C1294NCPDT --gcc --abi=eabi --preproc_with_compile --preproc_dependency="main.d_raw" "../main.cpp"
Finished building: "../main.cpp"
Building file: "../serialPort/uartHW.cpp"
Invoking: ARM Compiler
"/opt/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="/home/jb18/Documents/tm4c_mpu9250-master" --include_path="/opt/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include" --include_path="/home/jb18/.wine/drive_c/ti/TivaWare_C_Series-2.1.4.178/inc" --include_path="/home/jb18/.wine/drive_c/ti/TivaWare_C_Series-2.1.4.178" --define=ccs="ccs" --define=PART_TM4C1294NCPDT --gcc --abi=eabi --preproc_with_compile --preproc_dependency="serialPort/uartHW.d_raw" --obj_directory="serialPort" "../serialPort/uartHW.cpp"
Finished building: "../serialPort/uartHW.cpp"
Building file: "../HAL/tm4c1294/hal_common_tm4c.c"
Invoking: ARM Compiler
"/opt/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="/home/jb18/Documents/tm4c_mpu9250-master" --include_path="/opt/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include" --include_path="/home/jb18/.wine/drive_c/ti/TivaWare_C_Series-2.1.4.178/inc" --include_path="/home/jb18/.wine/drive_c/ti/TivaWare_C_Series-2.1.4.178" --define=ccs="ccs" --define=PART_TM4C1294NCPDT --gcc --abi=eabi --preproc_with_compile --preproc_dependency="HAL/tm4c1294/hal_common_tm4c.d_raw" --obj_directory="HAL/tm4c1294" "../HAL/tm4c1294/hal_common_tm4c.c"
Finished building: "../HAL/tm4c1294/hal_common_tm4c.c"
Building file: "../HAL/tm4c1294/hal_mpu_spi_tm4c.c"
Invoking: ARM Compiler
"/opt/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="/home/jb18/Documents/tm4c_mpu9250-master" --include_path="/opt/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include" --include_path="/home/jb18/.wine/drive_c/ti/TivaWare_C_Series-2.1.4.178/inc" --include_path="/home/jb18/.wine/drive_c/ti/TivaWare_C_Series-2.1.4.178" --define=ccs="ccs" --define=PART_TM4C1294NCPDT --gcc --abi=eabi --preproc_with_compile --preproc_dependency="HAL/tm4c1294/hal_mpu_spi_tm4c.d_raw" --obj_directory="HAL/tm4c1294" "../HAL/tm4c1294/hal_mpu_spi_tm4c.c"
Finished building: "../HAL/tm4c1294/hal_mpu_spi_tm4c.c"
Building file: "../libs/myLib.c"
Invoking: ARM Compiler
"/opt/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="/home/jb18/Documents/tm4c_mpu9250-master" --include_path="/opt/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include" --include_path="/home/jb18/.wine/drive_c/ti/TivaWare_C_Series-2.1.4.178/inc" --include_path="/home/jb18/.wine/drive_c/ti/TivaWare_C_Series-2.1.4.178" --define=ccs="ccs" --define=PART_TM4C1294NCPDT --gcc --abi=eabi --preproc_with_compile --preproc_dependency="libs/myLib.d_raw" --obj_directory="libs" "../libs/myLib.c"
Finished building: "../libs/myLib.c"
Building file: "../mpu9250/dmp_mpu9250.cpp"
Invoking: ARM Compiler
"/opt/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="/home/jb18/Documents/tm4c_mpu9250-master" --include_path="/opt/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include" --include_path="/home/jb18/.wine/drive_c/ti/TivaWare_C_Series-2.1.4.178/inc" --include_path="/home/jb18/.wine/drive_c/ti/TivaWare_C_Series-2.1.4.178" --define=ccs="ccs" --define=PART_TM4C1294NCPDT --gcc --abi=eabi --preproc_with_compile --preproc_dependency="mpu9250/dmp_mpu9250.d_raw" --obj_directory="mpu9250" "../mpu9250/dmp_mpu9250.cpp"
Finished building: "../mpu9250/dmp_mpu9250.cpp"
Building file: "../mpu9250/eMPL/inv_mpu_dmp_motion_driver.c"
Invoking: ARM Compiler
"/opt/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="/home/jb18/Documents/tm4c_mpu9250-master" --include_path="/opt/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include" --include_path="/home/jb18/.wine/drive_c/ti/TivaWare_C_Series-2.1.4.178/inc" --include_path="/home/jb18/.wine/drive_c/ti/TivaWare_C_Series-2.1.4.178" --define=ccs="ccs" --define=PART_TM4C1294NCPDT --gcc --abi=eabi --preproc_with_compile --preproc_dependency="mpu9250/eMPL/inv_mpu_dmp_motion_driver.d_raw" --obj_directory="mpu9250/eMPL" "../mpu9250/eMPL/inv_mpu_dmp_motion_driver.c"
Finished building: "../mpu9250/eMPL/inv_mpu_dmp_motion_driver.c"
Building file: "../mpu9250/eMPL/inv_mpu.c"
Invoking: ARM Compiler
"/opt/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="/home/jb18/Documents/tm4c_mpu9250-master" --include_path="/opt/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include" --include_path="/home/jb18/.wine/drive_c/ti/TivaWare_C_Series-2.1.4.178/inc" --include_path="/home/jb18/.wine/drive_c/ti/TivaWare_C_Series-2.1.4.178" --define=ccs="ccs" --define=PART_TM4C1294NCPDT --gcc --abi=eabi --preproc_with_compile --preproc_dependency="mpu9250/eMPL/inv_mpu.d_raw" --obj_directory="mpu9250/eMPL" "../mpu9250/eMPL/inv_mpu.c"
Finished building: "../mpu9250/eMPL/inv_mpu.c"
Building target: "tm4c_mpu9250.out"
Invoking: ARM Linker
"/opt/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --define=ccs="ccs" --define=PART_TM4C1294NCPDT --gcc --abi=eabi -z -m"app_TM4C1294NCPDT_ccs.map" --heap_size=0 --stack_size=512 -i"/opt/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/lib" -i"/opt/ti/ccs910/ccs/tools/compiler/ti-cgt-arm_18.12.2.LTS/include" --reread_libs --warn_sections --rom_model -o "tm4c_mpu9250.out" "./main.obj" "./tm4c1294ncpdt_startup_ccs.obj" "./HAL/tm4c1294/hal_common_tm4c.obj" "./HAL/tm4c1294/hal_mpu_i2c_tm4c.obj" "./HAL/tm4c1294/hal_mpu_spi_tm4c.obj" "./libs/myLib.obj" "./mpu9250/MahonyAHRS.obj" "./mpu9250/api_mpu9250.obj" "./mpu9250/dmp_mpu9250.obj" "./mpu9250/nondmp_mpu9250.obj" "./mpu9250/eMPL/inv_mpu.obj" "./mpu9250/eMPL/inv_mpu_dmp_motion_driver.obj" "./serialPort/uartHW.obj" "../tm4c1294ncpdt.cmd" -llibc.a -l"/home/jb18/.wine/drive_c/ti/TivaWare_C_Series-2.1.4.178/driverlib/ccs/Debug/driverlib.lib"
<Linking>
undefined first referenced
symbol in file
--------- ----------------
UARTStdioConfig ./serialPort/uartHW.obj
UARTvprintf ./serialPort/uartHW.obj
error: unresolved symbols remain
error: errors encountered during linking; "tm4c_mpu9250.out" not built
>> Compilation failure
makefile:162: recipe for target 'tm4c_mpu9250.out' failed
gmake[1]: *** [tm4c_mpu9250.out] Error 1
gmake: *** [all] Error 2
makefile:158: recipe for target 'all' failed
**** Build Finished ****
Any thoughts of what could be the issue?
Many thanks.


