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.

Compiler/LAUNCHXL-F28379D: Merging two Examples' Code together

Part Number: LAUNCHXL-F28379D
Other Parts Discussed in Thread: C2000WARE

Tool/software: TI C/C++ Compiler

Dear all,

I am in need of taking values from a number of ADCs aboard the F28379D (I'll call this guy 283) and sending them over SPI to another TI board.

Individually, running the 283's SPI_Loopback example that you would normally see at: C:\ti\C2000Ware_3_01_00_00_Software\device_support\f2837xd\examples\cpu1\spi_loopback\cpu01\Example_2837xDSpi_FFDLB.c

spi_loopback_cpu01_SPIA_differentPINS_WORKS.zip

Individually I have been trying to use the standard adc_ex1_soc_software.c example seen at C:\ti\C2000Ware_3_01_00_00_Software\driverlib\f2837xd\examples\cpu1\adc.

When I try to insert the ADC code chunks into SPI code and compile, I receive these errors:

This was after I messed around with a bunch of header file and include psearch path antics as well, if it's of any help:

Could someone please tell me how to get around those predefinition errors and run my code fine?

APologies, I have barely any knowledge of how TI CCS manages all of this business so I was unable to trace the definiions back to it's sources.

Many many thanks in advance!

  • Hi,

    Looks like you are using mixed mode, for ADC you are using driverlib and for SPI, you are using bitfield based functions.

    I think, you need to do two things

    1. you do not need predefined symbol as _ADC_setMode and _SysCtl_delay. You should remove that.
    2. You need to add DriverLib library, it will resolve linking error. Steps to add a linked file is:
      • Right-click project, New -> File, and add filename as driverlib.lib, press "Advanced", check Linked File and browse to "C:\ti\C2000\C2000Ware_XXXX\driverlib\f2837xd\driverlib\ccs\Debug\driverlib.lib"

    After that rebuild the project.

  • Hi,

    Are you able to resolve the issue?

  • Closing the thread as there is no activity. 

  • Hi,

    What is the status of the issue? 

  • Hi Santosh,

    Apologies for the extremely late reply, I could only get around to acting on your advice today.

    When I did, these were the results I received:

    I had a suspicion this was to do with the libraries I'm including at the top of the main file.

    These are the ones I'm using.

    #include "F28x_Project.h"
    #include "driverlib.h"
    #include "device.h"

    Again thanks in advance

  • Hi,

    Can you send full error message?

  • Hi Santosh,

    Please find attached below

    **** Build of configuration CPU1_FLASH for project spi_loopback_cpu01_SPIA_differentPINS_WORKS ****
    
    "C:\\ti\\ccs920\\ccs\\utils\\bin\\gmake" -k all 
     
    Building file: "../Example_2837xDSpi_FFDLB.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/bin/cl2000" -v28 -ml -mt --vcu_support=vcu2 --tmu_support=tmu0 --cla_support=cla1 --float_support=fpu32 --include_path="C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/include" --include_path="C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/headers/include" --include_path="C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/common/include" --include_path="C:/Users/n10592563/workspace_v9_2/spi_loopback_cpu01_SPIA_differentPINS_WORKS" --include_path="C:/ti/C2000Ware_2_01_00_00_Software/driverlib/f2837xd/driverlib" --include_path="C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/include" -g --define=CPU1 --define=_FLASH --define=_DUAL_HEADERS --display_error_number --diag_suppress=10063 --diag_warning=225 --preproc_with_compile --preproc_dependency="Example_2837xDSpi_FFDLB.d_raw"  "../Example_2837xDSpi_FFDLB.c"
    "C:\ti\C2000Ware_2_01_00_00_Software\driverlib\f2837xd\driverlib\sysctl.h", line 140: warning #48-D: incompatible redefinition of macro "Device_cal" (declared at line 326 of "C:\ti\C2000Ware_2_00_00_03_Software\device_support\f2837xd\common\include\F2837xD_Examples.h")
    "../Example_2837xDSpi_FFDLB.c", line 93: warning #552-D: variable "rdata" was set but never used
    "../Example_2837xDSpi_FFDLB.c", line 207 (col. 13): advice #2614-D: (Performance) Use --fp_mode=relaxed to enable TMU hardware support for FP division.
    Finished building: "../Example_2837xDSpi_FFDLB.c"
     
    Building file: "C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/common/source/F2837xD_CodeStartBranch.asm"
    Invoking: C2000 Compiler
    "C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/bin/cl2000" -v28 -ml -mt --vcu_support=vcu2 --tmu_support=tmu0 --cla_support=cla1 --float_support=fpu32 --include_path="C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/include" --include_path="C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/headers/include" --include_path="C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/common/include" --include_path="C:/Users/n10592563/workspace_v9_2/spi_loopback_cpu01_SPIA_differentPINS_WORKS" --include_path="C:/ti/C2000Ware_2_01_00_00_Software/driverlib/f2837xd/driverlib" --include_path="C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/include" -g --define=CPU1 --define=_FLASH --define=_DUAL_HEADERS --display_error_number --diag_suppress=10063 --diag_warning=225 --preproc_with_compile --preproc_dependency="F2837xD_CodeStartBranch.d_raw"  "C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/common/source/F2837xD_CodeStartBranch.asm"
    Finished building: "C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/common/source/F2837xD_CodeStartBranch.asm"
     
    Building file: "C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/common/source/F2837xD_DefaultISR.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/bin/cl2000" -v28 -ml -mt --vcu_support=vcu2 --tmu_support=tmu0 --cla_support=cla1 --float_support=fpu32 --include_path="C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/include" --include_path="C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/headers/include" --include_path="C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/common/include" --include_path="C:/Users/n10592563/workspace_v9_2/spi_loopback_cpu01_SPIA_differentPINS_WORKS" --include_path="C:/ti/C2000Ware_2_01_00_00_Software/driverlib/f2837xd/driverlib" --include_path="C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/include" -g --define=CPU1 --define=_FLASH --define=_DUAL_HEADERS --display_error_number --diag_suppress=10063 --diag_warning=225 --preproc_with_compile --preproc_dependency="F2837xD_DefaultISR.d_raw"  "C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/common/source/F2837xD_DefaultISR.c"
    Finished building: "C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/common/source/F2837xD_DefaultISR.c"
     
    Building file: "C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/headers/source/F2837xD_GlobalVariableDefs.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/bin/cl2000" -v28 -ml -mt --vcu_support=vcu2 --tmu_support=tmu0 --cla_support=cla1 --float_support=fpu32 --include_path="C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/include" --include_path="C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/headers/include" --include_path="C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/common/include" --include_path="C:/Users/n10592563/workspace_v9_2/spi_loopback_cpu01_SPIA_differentPINS_WORKS" --include_path="C:/ti/C2000Ware_2_01_00_00_Software/driverlib/f2837xd/driverlib" --include_path="C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/include" -g --define=CPU1 --define=_FLASH --define=_DUAL_HEADERS --display_error_number --diag_suppress=10063 --diag_warning=225 --preproc_with_compile --preproc_dependency="F2837xD_GlobalVariableDefs.d_raw"  "C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/headers/source/F2837xD_GlobalVariableDefs.c"
    Finished building: "C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/headers/source/F2837xD_GlobalVariableDefs.c"
     
    Building file: "C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/common/source/F2837xD_Gpio.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/bin/cl2000" -v28 -ml -mt --vcu_support=vcu2 --tmu_support=tmu0 --cla_support=cla1 --float_support=fpu32 --include_path="C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/include" --include_path="C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/headers/include" --include_path="C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/common/include" --include_path="C:/Users/n10592563/workspace_v9_2/spi_loopback_cpu01_SPIA_differentPINS_WORKS" --include_path="C:/ti/C2000Ware_2_01_00_00_Software/driverlib/f2837xd/driverlib" --include_path="C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/include" -g --define=CPU1 --define=_FLASH --define=_DUAL_HEADERS --display_error_number --diag_suppress=10063 --diag_warning=225 --preproc_with_compile --preproc_dependency="F2837xD_Gpio.d_raw"  "C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/common/source/F2837xD_Gpio.c"
    Finished building: "C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/common/source/F2837xD_Gpio.c"
     
    Building file: "C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/common/source/F2837xD_Ipc.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/bin/cl2000" -v28 -ml -mt --vcu_support=vcu2 --tmu_support=tmu0 --cla_support=cla1 --float_support=fpu32 --include_path="C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/include" --include_path="C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/headers/include" --include_path="C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/common/include" --include_path="C:/Users/n10592563/workspace_v9_2/spi_loopback_cpu01_SPIA_differentPINS_WORKS" --include_path="C:/ti/C2000Ware_2_01_00_00_Software/driverlib/f2837xd/driverlib" --include_path="C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/include" -g --define=CPU1 --define=_FLASH --define=_DUAL_HEADERS --display_error_number --diag_suppress=10063 --diag_warning=225 --preproc_with_compile --preproc_dependency="F2837xD_Ipc.d_raw"  "C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/common/source/F2837xD_Ipc.c"
    Finished building: "C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/common/source/F2837xD_Ipc.c"
     
    Building file: "C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/common/source/F2837xD_PieCtrl.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/bin/cl2000" -v28 -ml -mt --vcu_support=vcu2 --tmu_support=tmu0 --cla_support=cla1 --float_support=fpu32 --include_path="C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/include" --include_path="C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/headers/include" --include_path="C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/common/include" --include_path="C:/Users/n10592563/workspace_v9_2/spi_loopback_cpu01_SPIA_differentPINS_WORKS" --include_path="C:/ti/C2000Ware_2_01_00_00_Software/driverlib/f2837xd/driverlib" --include_path="C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/include" -g --define=CPU1 --define=_FLASH --define=_DUAL_HEADERS --display_error_number --diag_suppress=10063 --diag_warning=225 --preproc_with_compile --preproc_dependency="F2837xD_PieCtrl.d_raw"  "C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/common/source/F2837xD_PieCtrl.c"
    Finished building: "C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/common/source/F2837xD_PieCtrl.c"
     
    Building file: "C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/common/source/F2837xD_PieVect.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/bin/cl2000" -v28 -ml -mt --vcu_support=vcu2 --tmu_support=tmu0 --cla_support=cla1 --float_support=fpu32 --include_path="C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/include" --include_path="C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/headers/include" --include_path="C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/common/include" --include_path="C:/Users/n10592563/workspace_v9_2/spi_loopback_cpu01_SPIA_differentPINS_WORKS" --include_path="C:/ti/C2000Ware_2_01_00_00_Software/driverlib/f2837xd/driverlib" --include_path="C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/include" -g --define=CPU1 --define=_FLASH --define=_DUAL_HEADERS --display_error_number --diag_suppress=10063 --diag_warning=225 --preproc_with_compile --preproc_dependency="F2837xD_PieVect.d_raw"  "C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/common/source/F2837xD_PieVect.c"
    Finished building: "C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/common/source/F2837xD_PieVect.c"
     
    Building file: "C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/common/source/F2837xD_Spi.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/bin/cl2000" -v28 -ml -mt --vcu_support=vcu2 --tmu_support=tmu0 --cla_support=cla1 --float_support=fpu32 --include_path="C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/include" --include_path="C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/headers/include" --include_path="C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/common/include" --include_path="C:/Users/n10592563/workspace_v9_2/spi_loopback_cpu01_SPIA_differentPINS_WORKS" --include_path="C:/ti/C2000Ware_2_01_00_00_Software/driverlib/f2837xd/driverlib" --include_path="C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/include" -g --define=CPU1 --define=_FLASH --define=_DUAL_HEADERS --display_error_number --diag_suppress=10063 --diag_warning=225 --preproc_with_compile --preproc_dependency="F2837xD_Spi.d_raw"  "C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/common/source/F2837xD_Spi.c"
    Finished building: "C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/common/source/F2837xD_Spi.c"
     
    Building file: "C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/common/source/F2837xD_SysCtrl.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/bin/cl2000" -v28 -ml -mt --vcu_support=vcu2 --tmu_support=tmu0 --cla_support=cla1 --float_support=fpu32 --include_path="C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/include" --include_path="C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/headers/include" --include_path="C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/common/include" --include_path="C:/Users/n10592563/workspace_v9_2/spi_loopback_cpu01_SPIA_differentPINS_WORKS" --include_path="C:/ti/C2000Ware_2_01_00_00_Software/driverlib/f2837xd/driverlib" --include_path="C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/include" -g --define=CPU1 --define=_FLASH --define=_DUAL_HEADERS --display_error_number --diag_suppress=10063 --diag_warning=225 --preproc_with_compile --preproc_dependency="F2837xD_SysCtrl.d_raw"  "C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/common/source/F2837xD_SysCtrl.c"
    "C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/common/source/F2837xD_SysCtrl.c", line 836 (col. 47): advice #2614-D: (Performance) Use --fp_mode=relaxed to enable TMU hardware support for FP division.
    Finished building: "C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/common/source/F2837xD_SysCtrl.c"
     
    Building file: "C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/common/source/F2837xD_usDelay.asm"
    Invoking: C2000 Compiler
    "C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/bin/cl2000" -v28 -ml -mt --vcu_support=vcu2 --tmu_support=tmu0 --cla_support=cla1 --float_support=fpu32 --include_path="C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/include" --include_path="C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/headers/include" --include_path="C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/common/include" --include_path="C:/Users/n10592563/workspace_v9_2/spi_loopback_cpu01_SPIA_differentPINS_WORKS" --include_path="C:/ti/C2000Ware_2_01_00_00_Software/driverlib/f2837xd/driverlib" --include_path="C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/include" -g --define=CPU1 --define=_FLASH --define=_DUAL_HEADERS --display_error_number --diag_suppress=10063 --diag_warning=225 --preproc_with_compile --preproc_dependency="F2837xD_usDelay.d_raw"  "C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/common/source/F2837xD_usDelay.asm"
    Finished building: "C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/common/source/F2837xD_usDelay.asm"
     
    Building target: "spi_loopback_cpu01_SPIA_differentPINS_WORKS.out"
    Invoking: C2000 Linker
    "C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/bin/cl2000" -v28 -ml -mt --vcu_support=vcu2 --tmu_support=tmu0 --cla_support=cla1 --float_support=fpu32 -g --define=CPU1 --define=_FLASH --define=_DUAL_HEADERS --display_error_number --diag_suppress=10063 --diag_warning=225 -z -m"spi_loopback_cpu01_SPIA_differentPINS_WORKS.map" --stack_size=0x100 --warn_sections -i"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib" -i"C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/include" -i"C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/common/cmd" -i"C:/ti/C2000Ware_2_00_00_03_Software/device_support/f2837xd/headers/cmd" --reread_libs --display_error_number --xml_link_info="spi_loopback_cpu01_SPIA_differentPINS_WORKS_linkInfo.xml" --entry_point=code_start --scan_libraries --rom_model -o "spi_loopback_cpu01_SPIA_differentPINS_WORKS.out" "./Example_2837xDSpi_FFDLB.obj" "./F2837xD_CodeStartBranch.obj" "./F2837xD_DefaultISR.obj" "./F2837xD_GlobalVariableDefs.obj" "./F2837xD_Gpio.obj" "./F2837xD_Ipc.obj" "./F2837xD_PieCtrl.obj" "./F2837xD_PieVect.obj" "./F2837xD_Spi.obj" "./F2837xD_SysCtrl.obj" "./F2837xD_usDelay.obj" "C:/ti/C2000Ware_3_01_00_00_Software/driverlib/f2837xd/driverlib/ccs/Debug/driverlib.lib"  -lrts2800_fpu32.lib -l2837xD_FLASH_lnk_cpu1.cmd -lF2837xD_Headers_nonBIOS_cpu1.cmd -llibc.a 
    <Linking>
    warning #10252-D: Symbol "C$$EXIT" (pulled from
       "C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.
       lib<exit.c.obj>") defined in 2 places:
       C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.l
       ib<exit.c.obj>
       C:\ti\ccs920\ccs\tools\compiler\ti-cgt-c2000_18.12.3.LTS\lib\rts2800_fpu32.l
       ib<exit.c.obj>
     
    warning #10252-D: Symbol "FD$$ADD" (pulled from
       "C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.
       lib<fd_add28.asm.obj>") defined in 2 places:
       C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.l
       ib<fd_add28.asm.obj>
       C:\ti\ccs920\ccs\tools\compiler\ti-cgt-c2000_18.12.3.LTS\lib\rts2800_fpu32.l
       ib<fd_add28.asm.obj>
     
    warning #10252-D: Symbol "FD$$DIV" (pulled from
       "C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.
       lib<fd_div28.asm.obj>") defined in 2 places:
       C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.l
       ib<fd_div28.asm.obj>
       C:\ti\ccs920\ccs\tools\compiler\ti-cgt-c2000_18.12.3.LTS\lib\rts2800_fpu32.l
       ib<fd_div28.asm.obj>
     
    warning #10252-D: Symbol "FD$$MPY" (pulled from
       "C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.
       lib<fd_mpy28.asm.obj>") defined in 2 places:
       C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.l
       ib<fd_mpy28.asm.obj>
       C:\ti\ccs920\ccs\tools\compiler\ti-cgt-c2000_18.12.3.LTS\lib\rts2800_fpu32.l
       ib<fd_mpy28.asm.obj>
     
    warning #10252-D: Symbol "FD$$SUB" (pulled from
       "C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.
       lib<fd_sub28.asm.obj>") defined in 2 places:
       C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.l
       ib<fd_sub28.asm.obj>
       C:\ti\ccs920\ccs\tools\compiler\ti-cgt-c2000_18.12.3.LTS\lib\rts2800_fpu32.l
       ib<fd_sub28.asm.obj>
     
    warning #10252-D: Symbol "FD$$TOL" (pulled from
       "C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.
       lib<fd_tol28.asm.obj>") defined in 2 places:
       C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.l
       ib<fd_tol28.asm.obj>
       C:\ti\ccs920\ccs\tools\compiler\ti-cgt-c2000_18.12.3.LTS\lib\rts2800_fpu32.l
       ib<fd_tol28.asm.obj>
     
    warning #10252-D: Symbol "FS$$DIV" (pulled from
       "C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.
       lib<fs_div28.asm.obj>") defined in 2 places:
       C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.l
       ib<fs_div28.asm.obj>
       C:\ti\ccs920\ccs\tools\compiler\ti-cgt-c2000_18.12.3.LTS\lib\rts2800_fpu32.l
       ib<fs_div28.asm.obj>
     
    warning #10252-D: Symbol "LL$$AND" (pulled from
       "C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.
       lib<ll_aox28.asm.obj>") defined in 2 places:
       C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.l
       ib<ll_aox28.asm.obj>
       C:\ti\ccs920\ccs\tools\compiler\ti-cgt-c2000_18.12.3.LTS\lib\rts2800_fpu32.l
       ib<ll_aox28.asm.obj>
     
    warning #10252-D: Symbol "LL$$OR" (pulled from
       "C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.
       lib<ll_aox28.asm.obj>") defined in 2 places:
       C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.l
       ib<ll_aox28.asm.obj>
       C:\ti\ccs920\ccs\tools\compiler\ti-cgt-c2000_18.12.3.LTS\lib\rts2800_fpu32.l
       ib<ll_aox28.asm.obj>
     
    warning #10252-D: Symbol "LL$$XOR" (pulled from
       "C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.
       lib<ll_aox28.asm.obj>") defined in 2 places:
       C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.l
       ib<ll_aox28.asm.obj>
       C:\ti\ccs920\ccs\tools\compiler\ti-cgt-c2000_18.12.3.LTS\lib\rts2800_fpu32.l
       ib<ll_aox28.asm.obj>
     
    warning #10252-D: Symbol "U$$TOFD" (pulled from
       "C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.
       lib<u_tofd28.asm.obj>") defined in 2 places:
       C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.l
       ib<u_tofd28.asm.obj>
       C:\ti\ccs920\ccs\tools\compiler\ti-cgt-c2000_18.12.3.LTS\lib\rts2800_fpu32.l
       ib<u_tofd28.asm.obj>
     
    warning #10252-D: Symbol "___TI_cleanup_ptr" (pulled from
       "C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.
       lib<exit.c.obj>") defined in 2 places:
       C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.l
       ib<exit.c.obj>
       C:\ti\ccs920\ccs\tools\compiler\ti-cgt-c2000_18.12.3.LTS\lib\rts2800_fpu32.l
       ib<exit.c.obj>
     
    warning #10252-D: Symbol "___TI_dtors_ptr" (pulled from
       "C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.
       lib<exit.c.obj>") defined in 2 places:
       C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.l
       ib<exit.c.obj>
       C:\ti\ccs920\ccs\tools\compiler\ti-cgt-c2000_18.12.3.LTS\lib\rts2800_fpu32.l
       ib<exit.c.obj>
     
    warning #10252-D: Symbol "___TI_enable_exit_profile_output" (pulled from
       "C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.
       lib<exit.c.obj>") defined in 2 places:
       C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.l
       ib<exit.c.obj>
       C:\ti\ccs920\ccs\tools\compiler\ti-cgt-c2000_18.12.3.LTS\lib\rts2800_fpu32.l
       ib<exit.c.obj>
     
    warning #10252-D: Symbol "__args_main" (pulled from
       "C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.
       lib<args_main.c.obj>") defined in 2 places:
       C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.l
       ib<args_main.c.obj>
       C:\ti\ccs920\ccs\tools\compiler\ti-cgt-c2000_18.12.3.LTS\lib\rts2800_fpu32.l
       ib<args_main.c.obj>
     
    warning #10252-D: Symbol "__lock" (pulled from
       "C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.
       lib<_lock.c.obj>") defined in 2 places:
       C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.l
       ib<_lock.c.obj>
       C:\ti\ccs920\ccs\tools\compiler\ti-cgt-c2000_18.12.3.LTS\lib\rts2800_fpu32.l
       ib<_lock.c.obj>
     
    warning #10252-D: Symbol "__nop" (pulled from
       "C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.
       lib<_lock.c.obj>") defined in 2 places:
       C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.l
       ib<_lock.c.obj>
       C:\ti\ccs920\ccs\tools\compiler\ti-cgt-c2000_18.12.3.LTS\lib\rts2800_fpu32.l
       ib<_lock.c.obj>
     
    warning #10252-D: Symbol "__register_lock" (pulled from
       "C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.
       lib<_lock.c.obj>") defined in 2 places:
       C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.l
       ib<_lock.c.obj>
       C:\ti\ccs920\ccs\tools\compiler\ti-cgt-c2000_18.12.3.LTS\lib\rts2800_fpu32.l
       ib<_lock.c.obj>
     
    warning #10252-D: Symbol "__register_unlock" (pulled from
       "C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.
       lib<_lock.c.obj>") defined in 2 places:
       C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.l
       ib<_lock.c.obj>
       C:\ti\ccs920\ccs\tools\compiler\ti-cgt-c2000_18.12.3.LTS\lib\rts2800_fpu32.l
       ib<_lock.c.obj>
     
    warning #10252-D: Symbol "__stack" (pulled from
       "C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.
       lib<boot28.asm.obj>") defined in 2 places:
       C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.l
       ib<boot28.asm.obj>
       C:\ti\ccs920\ccs\tools\compiler\ti-cgt-c2000_18.12.3.LTS\lib\rts2800_fpu32.l
       ib<boot28.asm.obj>
     
    warning #10252-D: Symbol "__system_post_cinit" (pulled from
       "C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.
       lib<startup.c.obj>") defined in 2 places:
       C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.l
       ib<startup.c.obj>
       C:\ti\ccs920\ccs\tools\compiler\ti-cgt-c2000_18.12.3.LTS\lib\rts2800_fpu32.l
       ib<startup.c.obj>
     
    warning #10252-D: Symbol "__system_pre_init" (pulled from
       "C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.
       lib<pre_init.c.obj>") defined in 2 places:
       C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.l
       ib<pre_init.c.obj>
       C:\ti\ccs920\ccs\tools\compiler\ti-cgt-c2000_18.12.3.LTS\lib\rts2800_fpu32.l
       ib<pre_init.c.obj>
     
    warning #10252-D: Symbol "__unlock" (pulled from
       "C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.
       lib<_lock.c.obj>") defined in 2 places:
       C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.l
       ib<_lock.c.obj>
       C:\ti\ccs920\ccs\tools\compiler\ti-cgt-c2000_18.12.3.LTS\lib\rts2800_fpu32.l
       ib<_lock.c.obj>
     
    warning #10252-D: Symbol "_abort" (pulled from
       "C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.
       lib<exit.c.obj>") defined in 2 places:
       C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.l
       ib<exit.c.obj>
       C:\ti\ccs920\ccs\tools\compiler\ti-cgt-c2000_18.12.3.LTS\lib\rts2800_fpu32.l
       ib<exit.c.obj>
     
    warning #10252-D: Symbol "_c_int00" (pulled from
       "C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.
       lib<boot28.asm.obj>") defined in 2 places:
       C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.l
       ib<boot28.asm.obj>
       C:\ti\ccs920\ccs\tools\compiler\ti-cgt-c2000_18.12.3.LTS\lib\rts2800_fpu32.l
       ib<boot28.asm.obj>
     
    warning #10252-D: Symbol "_copy_in" (pulled from
       "C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.
       lib<cpy_tbl.c.obj>") defined in 2 places:
       C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.l
       ib<cpy_tbl.c.obj>
       C:\ti\ccs920\ccs\tools\compiler\ti-cgt-c2000_18.12.3.LTS\lib\rts2800_fpu32.l
       ib<cpy_tbl.c.obj>
     
    warning #10252-D: Symbol "_exit" (pulled from
       "C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.
       lib<exit.c.obj>") defined in 2 places:
       C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.l
       ib<exit.c.obj>
       C:\ti\ccs920\ccs\tools\compiler\ti-cgt-c2000_18.12.3.LTS\lib\rts2800_fpu32.l
       ib<exit.c.obj>
     
    warning #10252-D: Symbol "_memcpy" (pulled from
       "C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.
       lib<memcpy.c.obj>") defined in 2 places:
       C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.l
       ib<memcpy.c.obj>
       C:\ti\ccs920\ccs\tools\compiler\ti-cgt-c2000_18.12.3.LTS\lib\rts2800_fpu32.l
       ib<memcpy.c.obj>
     
    warning #10252-D: Symbol "_memset" (pulled from
       "C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.
       lib<memset.c.obj>") defined in 2 places:
       C:/ti/ccs920/ccs/tools/compiler/ti-cgt-c2000_18.12.3.LTS/lib/rts2800_fpu32.l
       ib<memset.c.obj>
       C:\ti\ccs920\ccs\tools\compiler\ti-cgt-c2000_18.12.3.LTS\lib\rts2800_fpu32.l
       ib<memset.c.obj>
     
     
     undefined  first referenced                                                                                     
      symbol        in file                                                                                          
     ---------  ----------------                                                                                     
     ___error__ C:\ti\C2000Ware_3_01_00_00_Software\driverlib\f2837xd\driverlib\ccs\Debug\driverlib_coff.lib<adc.obj>
     
    error #10234-D: unresolved symbols remain
    error #10010: errors encountered during linking;
       "spi_loopback_cpu01_SPIA_differentPINS_WORKS.out" not built
     
    >> Compilation failure
    makefile:147: recipe for target 'spi_loopback_cpu01_SPIA_differentPINS_WORKS.out' failed
    gmake: *** [spi_loopback_cpu01_SPIA_differentPINS_WORKS.out] Error 1
    gmake: Target 'all' not remade because of errors.
    
    **** Build Finished ****

  • Hi,

    Here is one more step you need to do:

    • Create a folder called "device" in the project (right-click the project, select New -> Folder)
    • Copy following files to the "device" folder
    • C:/ti/C2000Ware_3_01_00_00/device_support/f2837xd/common/include/device.h
    • C:/ti/C2000Ware_3_01_00_00/device_support/f2837xd/common/source/device.c

    I am attaching your project with fixed linker error for your reference. You may need to modify C2000WARE_DLIB_ROOT environment variable to match the path on your setup.

    spi_loopback_cpu01.zip

  • You're an absolute legend!

    Code works like a breeze, aside from 33 odd warnings but eh, I don't really care about them so much. 

    As long as the thing goes that's all that matters!