Part Number: TM4C123GH6PM
Other Parts Discussed in Thread: SYSBIOS,
Tool/software: Code Composer Studio
Hello,
I am currently trying to import, build, and run the TI-RTOS Workshop Series 6: Lab 06 archived .zip file. I have documented the steps I took before receiving the error and included my final Build Console Log below.
Since it is an old project based on previous versions of CCS, TivaC, and XDCtools, I made sure to use the latest versions.
- CCS v7.2.0.00013
- Compiler Version: TI v16.9.4.LTS
- TivaC Version: 2.16.1.14
- XDCtools version: 3.32.2.25 (did not use the latest version XDCtools 3.50.2.20 due to getting an error about "the package 'ti.sysbios.knl' is not compatible with XDCtools used in this build")
After trying to rebuild, I received "#1965 cannot open source file 'inc/hw_types.h'." After looking through the TI community forum, I identified it as a potential #include search path issue. The archived file had "C:/ti/tirtos_tivac_2_16_01_14/products/TivaWare_C_Series-2.1.0.12573c" in the #include search path. I knew this was not accurate so I added the proper variable to the correct directory ${TIVAWARE_INSTALL} = C:\ti\tirtos_tivac_2_16_01_14\products\TivaWare_C_Series-2.1.1.71b. I did not remove any existing #include search paths.
After rebuilding, I had solved error #1965, but I generated even more errors. After 1-2 hours of looking for the source of the problem, I have been unable to come up with a solution. I have included the final build logs below. Thank you in advance for those who take time out of their schedule to assist students like me debug our issues.
**** Build of configuration Debug for project blink_TM4C_SWI ****
"C:\\ti\\ccsv7\\utils\\bin\\gmake" -k all
gmake[1]: Entering directory 'C:/TI_RTOS/Workspace/blink_TM4C_SWI/Debug'
'Building file: ../empty.cfg'
'Invoking: XDCtools'
"C:/ti/xdctools_3_32_02_25_core/xs" --xdcpath="C:/ti/ccsv7/ccs_base;C:/ti/tirtos_tivac_2_16_01_14/packages;C:/ti/tirtos_tivac_2_16_01_14/products/tidrivers_tivac_2_16_01_13/packages;C:/ti/tirtos_tivac_2_16_01_14/products/bios_6_45_02_31/packages;C:/ti/tirtos_tivac_2_16_01_14/products/ndk_2_25_00_09/packages;C:/ti/tirtos_tivac_2_16_01_14/products/uia_2_00_05_50/packages;C:/ti/tirtos_tivac_2_16_01_14/products/ns_1_11_00_10/packages;C:/ti/tirtos_tivac_2_16_01_14/products/bios_6_41_00_26/packages;C:/ti/tirtos_tivac_2_16_01_14/products/ndk_2_24_01_18/packages;C:/ti/tirtos_tivac_2_16_01_14/products/uia_2_00_02_39/packages;" xdc.tools.configuro -o configPkg -t ti.targets.arm.elf.M4F -p ti.platforms.tiva:TM4C123GH6PM -r release -c "C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.4.LTS" "../empty.cfg"
making package.mak (because of package.bld) ...
generating interfaces for package configPkg (because package/package.xdc.inc is older than package.xdc) ...
configuring empty.xem4f from package/cfg/empty_pem4f.cfg ...
generating custom ti.sysbios library makefile ...
Starting build of library sources ...
making C:/TI_RTOS/Workspace/blink_TM4C_SWI/src/sysbios/sysbios.aem4f ...
gmake[1]: Entering directory `C:/TI_RTOS/Workspace/blink_TM4C_SWI/src/sysbios'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `C:/TI_RTOS/Workspace/blink_TM4C_SWI/src/sysbios'
Build of libraries done.
clem4f package/cfg/empty_pem4f.c ...
warning: ti.tirtos.TIRTOS: "C:/ti/tirtos_tivac_2_16_01_14/packages/ti/tirtos/TIRTOS.xs", line 49: ti.tirtos.TIRTOS : ti.tirtos.TIRTOS module is no longer required to configure driver instrumentation. Please use the ti.drivers.Config and ti.mw.Config modules instead.
'Finished building: ../empty.cfg'
' '
gmake[1]: Leaving directory 'C:/TI_RTOS/Workspace/blink_TM4C_SWI/Debug'
'Building file: ../main.c'
'Invoking: ARM Compiler'
"C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.4.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --include_path="C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.4.LTS/include" --include_path="C:/ti/tirtos_tivac_2_16_01_14/products/TivaWare_C_Series-2.1.0.12573c" --include_path="C:/ti/tirtos_tivac_2_16_01_14/products/TivaWare_C_Series-2.1.1.71b" --define=PART_TM4C123GH6PM --define=ccs --define=TIVAWARE --define=ccs="ccs" -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi --preproc_with_compile --preproc_dependency="main.d" --cmd_file="configPkg/compiler.opt" "../main.c"
'Finished building: ../main.c'
' '
'Building target: blink_TM4C_SWI.out'
'Invoking: ARM Linker'
"C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.4.LTS/bin/armcl" -mv7M4 --code_state=16 --float_support=FPv4SPD16 -me --define=PART_TM4C123GH6PM --define=ccs --define=TIVAWARE --define=ccs="ccs" -g --gcc --diag_warning=225 --diag_wrap=off --display_error_number --gen_func_subsections=on --abi=eabi -z -m"blink_TM4C_SWI.map" --heap_size=0 --stack_size=512 -i"C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.4.LTS/lib" -i"C:/ti/ccsv7/tools/compiler/ti-cgt-arm_16.9.4.LTS/include" --reread_libs --diag_wrap=off --display_error_number --warn_sections --xml_link_info="blink_TM4C_SWI_linkInfo.xml" --rom_model -o "blink_TM4C_SWI.out" "./main.obj" "../EK_TM4C123GXL.cmd" -l"configPkg/linker.cmd" -llibc.a -l"C:/ti/tirtos_tivac_2_16_01_14/products/TivaWare_C_Series-2.1.0.12573c/driverlib/ccs/Debug/driverlib.lib" -l"C:/ti/tirtos_tivac_2_16_01_14/products/TivaWare_C_Series-2.1.0.12573c/usblib/ccs/Debug/usblib.lib" -llibc.a
<Linking>
error #10008-D: cannot find file "C:/ti/tirtos_tivac_2_16_01_14/products/TivaWare_C_Series-2.1.0.12573c/driverlib/ccs/Debug/driverlib.lib"
error #10008-D: cannot find file "C:/ti/tirtos_tivac_2_16_01_14/products/TivaWare_C_Series-2.1.0.12573c/usblib/ccs/Debug/usblib.lib"
undefined first referenced
symbol in file
--------- ----------------
GPIOPinRead ./main.obj
GPIOPinTypeGPIOOutput ./main.obj
GPIOPinWrite ./main.obj
SysCtlClockGet ./main.obj
SysCtlClockSet ./main.obj
SysCtlPeripheralEnable ./main.obj
TimerConfigure ./main.obj
TimerEnable ./main.obj
TimerIntClear ./main.obj
TimerIntEnable ./main.obj
TimerLoadSet ./main.obj
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "blink_TM4C_SWI.out" not built
>> Compilation failure
makefile:143: recipe for target 'blink_TM4C_SWI.out' failed
gmake: *** [blink_TM4C_SWI.out] Error 1
gmake: Target 'all' not remade because of errors.
**** Build Finished ****