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.

LAUNCHXL-F28379D: Linking Error with F28x_usDelay

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

Hi,

I'm new to C2000 F28379D Launchpad and I'm trying to write some code for my project on the launchpad. However, I'm getting an unresolved symbol linking error for the F28x_usDelay, and I don't know what I'm missing here. The details of the error are as follows:

**** Build of configuration CPU1_RAM for project empty_driverlib_project ****

"C:\\ti\\ccs1020\\ccs\\utils\\bin\\gmake" -k -j 8 all -O
 
Building file: "../empty_driverlib_main.c"
Invoking: C2000 Compiler
"C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-c2000_20.2.2.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -Ooff --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/headers/include" --include_path="C:/CCS_Workspace_1/empty_driverlib_project" --include_path="C:/CCS_Workspace_1/empty_driverlib_project/device" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2837xd/driverlib" --include_path="C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-c2000_20.2.2.LTS/include" --advice:performance=all --define=_DUAL_HEADERS --define=_LAUNCHXL_F28379D --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="empty_driverlib_main.d_raw"  "../empty_driverlib_main.c"
Finished building: "../empty_driverlib_main.c"
 
Building target: "empty_driverlib_project.out"
Invoking: C2000 Linker
"C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-c2000_20.2.2.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -Ooff --advice:performance=all --define=_DUAL_HEADERS --define=_LAUNCHXL_F28379D --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi -z -m"empty_driverlib_project.map" --stack_size=0x100 --warn_sections -i"C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/headers/cmd" -i"C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/cmd" -i"C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-c2000_20.2.2.LTS/lib" -i"C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-c2000_20.2.2.LTS/include" --reread_libs --diag_wrap=off --display_error_number --xml_link_info="empty_driverlib_project_linkInfo.xml" --entry_point=code_start --rom_model -o "empty_driverlib_project.out" "./F2837xD_DefaultISR.obj" "./F2837xD_EPwm.obj" "./F2837xD_GlobalVariableDefs.obj" "./F2837xD_Gpio.obj" "./F2837xD_Ipc.obj" "./F2837xD_PieCtrl.obj" "./F2837xD_PieVect.obj" "./F2837xD_SysCtrl.obj" "./F2837xD_usDelay.obj" "./empty_driverlib_main.obj" "./device/F2837xD_CodeStartBranch.obj" "./device/device.obj" "../2837xD_RAM_lnk_cpu1.cmd" "C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2837xd/driverlib/ccs/Debug/driverlib.lib"  -l"C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/headers/cmd/F2837xD_Headers_nonBIOS_cpu1.cmd" -llibc.a
<Linking>
 
 undefined    first referenced          
  symbol          in file               
 ---------    ----------------          
 F28x_usDelay ./empty_driverlib_main.obj
 
error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "empty_driverlib_project.out" not built
 
>> Compilation failure
makefile:156: recipe for target 'empty_driverlib_project.out' failed
gmake[1]: *** [empty_driverlib_project.out] Error 1
makefile:152: recipe for target 'all' failed
gmake: *** [all] Error 2

**** Build Finished ****

I'm not sure what is going on as I have included the necessary paths in project properties as well. Could anyone please help me out here? I'm really stuck.

  • Hi Kartavya,

    Do you have this file included: C2000Ware_3_04_00_00\device_support\f2837xd\common\include\F2837xD_Examples.h ?

    Also, can you take a look at https://e2e.ti.com/support/microcontrollers/c2000/f/c2000-microcontrollers-forum/893565/tms320f280049-unresolved-symbols-when-choosing-eabi-format-output 

    Are you using the examples/files from latest C2000Ware?  If not, please move to latest C2000Ware.

    Thanks and regards,

    Vamsi

  • Hi,

    I'm using C2000 v3.0.

    Also, I have added the common\include folder in search path in Compiler include options. Do I need to add a preinclude file for Examples.h in project properties?

  • Also, I'm trying to follow the workshop files from this link: https://training.ti.com/c2000-f2837xd-microcontroller-one-day-workshop-series

    I'm using the project files that are compatible with driverlib

    I'm seeing errors that resemble the error type on the delay function. Can these be resolved in the same way? Could you please point em in the right direction here too?

    **** Build of configuration CPU1_RAM for project SONG_cpu1 ****

    "C:\\ti\\ccs1020\\ccs\\utils\\bin\\gmake" -k -j 8 all -O
     
    Building file: "../DefaultIsr_6.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-c2000_20.2.2.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -Ooff --include_path="C:/ti/c2000/Lab_common/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/headers/include" --include_path="C:/CCS_Workspace_1/SONG_cpu1" --include_path="C:/CCS_Workspace_1/SONG_cpu1/device" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2837xd/driverlib" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2837xd/driverlib/inc" --include_path="C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-c2000_20.2.2.LTS/include" --advice:performance=all --define=_DUAL_HEADERS --define=_LAUNCHXL_F28379D --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="DefaultIsr_6.d_raw"  "../DefaultIsr_6.c"
    Finished building: "../DefaultIsr_6.c"
     
    Building file: "C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/source/F2837xD_Adc.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-c2000_20.2.2.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -Ooff --include_path="C:/ti/c2000/Lab_common/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/headers/include" --include_path="C:/CCS_Workspace_1/SONG_cpu1" --include_path="C:/CCS_Workspace_1/SONG_cpu1/device" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2837xd/driverlib" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2837xd/driverlib/inc" --include_path="C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-c2000_20.2.2.LTS/include" --advice:performance=all --define=_DUAL_HEADERS --define=_LAUNCHXL_F28379D --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="F2837xD_Adc.d_raw"  "C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/source/F2837xD_Adc.c"
    Finished building: "C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/source/F2837xD_Adc.c"
     
    Building file: "C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/source/F2837xD_DefaultISR.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-c2000_20.2.2.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -Ooff --include_path="C:/ti/c2000/Lab_common/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/headers/include" --include_path="C:/CCS_Workspace_1/SONG_cpu1" --include_path="C:/CCS_Workspace_1/SONG_cpu1/device" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2837xd/driverlib" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2837xd/driverlib/inc" --include_path="C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-c2000_20.2.2.LTS/include" --advice:performance=all --define=_DUAL_HEADERS --define=_LAUNCHXL_F28379D --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="F2837xD_DefaultISR.d_raw"  "C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/source/F2837xD_DefaultISR.c"
    Finished building: "C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/source/F2837xD_DefaultISR.c"
     
    Building file: "../Adc.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-c2000_20.2.2.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -Ooff --include_path="C:/ti/c2000/Lab_common/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/headers/include" --include_path="C:/CCS_Workspace_1/SONG_cpu1" --include_path="C:/CCS_Workspace_1/SONG_cpu1/device" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2837xd/driverlib" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2837xd/driverlib/inc" --include_path="C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-c2000_20.2.2.LTS/include" --advice:performance=all --define=_DUAL_HEADERS --define=_LAUNCHXL_F28379D --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="Adc.d_raw"  "../Adc.c"
    Finished building: "../Adc.c"
     
    Building file: "C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/source/F2837xD_Ipc.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-c2000_20.2.2.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -Ooff --include_path="C:/ti/c2000/Lab_common/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/headers/include" --include_path="C:/CCS_Workspace_1/SONG_cpu1" --include_path="C:/CCS_Workspace_1/SONG_cpu1/device" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2837xd/driverlib" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2837xd/driverlib/inc" --include_path="C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-c2000_20.2.2.LTS/include" --advice:performance=all --define=_DUAL_HEADERS --define=_LAUNCHXL_F28379D --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="F2837xD_Ipc.d_raw"  "C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/source/F2837xD_Ipc.c"
    Finished building: "C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/source/F2837xD_Ipc.c"
     
    Building file: "../EPwm_6.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-c2000_20.2.2.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -Ooff --include_path="C:/ti/c2000/Lab_common/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/headers/include" --include_path="C:/CCS_Workspace_1/SONG_cpu1" --include_path="C:/CCS_Workspace_1/SONG_cpu1/device" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2837xd/driverlib" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2837xd/driverlib/inc" --include_path="C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-c2000_20.2.2.LTS/include" --advice:performance=all --define=_DUAL_HEADERS --define=_LAUNCHXL_F28379D --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="EPwm_6.d_raw"  "../EPwm_6.c"
    Finished building: "../EPwm_6.c"
     
    Building file: "C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/source/F2837xD_usDelay.asm"
    Invoking: C2000 Compiler
    "C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-c2000_20.2.2.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -Ooff --include_path="C:/ti/c2000/Lab_common/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/headers/include" --include_path="C:/CCS_Workspace_1/SONG_cpu1" --include_path="C:/CCS_Workspace_1/SONG_cpu1/device" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2837xd/driverlib" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2837xd/driverlib/inc" --include_path="C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-c2000_20.2.2.LTS/include" --advice:performance=all --define=_DUAL_HEADERS --define=_LAUNCHXL_F28379D --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="F2837xD_usDelay.d_raw"  "C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/source/F2837xD_usDelay.asm"
    Finished building: "C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/source/F2837xD_usDelay.asm"
     
    Building file: "C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/source/F2837xD_EPwm.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-c2000_20.2.2.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -Ooff --include_path="C:/ti/c2000/Lab_common/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/headers/include" --include_path="C:/CCS_Workspace_1/SONG_cpu1" --include_path="C:/CCS_Workspace_1/SONG_cpu1/device" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2837xd/driverlib" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2837xd/driverlib/inc" --include_path="C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-c2000_20.2.2.LTS/include" --advice:performance=all --define=_DUAL_HEADERS --define=_LAUNCHXL_F28379D --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="F2837xD_EPwm.d_raw"  "C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/source/F2837xD_EPwm.c"
    Finished building: "C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/source/F2837xD_EPwm.c"
     
    Building file: "C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/source/F2837xD_PieCtrl.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-c2000_20.2.2.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -Ooff --include_path="C:/ti/c2000/Lab_common/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/headers/include" --include_path="C:/CCS_Workspace_1/SONG_cpu1" --include_path="C:/CCS_Workspace_1/SONG_cpu1/device" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2837xd/driverlib" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2837xd/driverlib/inc" --include_path="C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-c2000_20.2.2.LTS/include" --advice:performance=all --define=_DUAL_HEADERS --define=_LAUNCHXL_F28379D --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="F2837xD_PieCtrl.d_raw"  "C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/source/F2837xD_PieCtrl.c"
    Finished building: "C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/source/F2837xD_PieCtrl.c"
     
    Building file: "../device/F2837xD_CodeStartBranch.asm"
    Invoking: C2000 Compiler
    "C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-c2000_20.2.2.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -Ooff --include_path="C:/ti/c2000/Lab_common/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/headers/include" --include_path="C:/CCS_Workspace_1/SONG_cpu1" --include_path="C:/CCS_Workspace_1/SONG_cpu1/device" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2837xd/driverlib" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2837xd/driverlib/inc" --include_path="C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-c2000_20.2.2.LTS/include" --advice:performance=all --define=_DUAL_HEADERS --define=_LAUNCHXL_F28379D --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="device/F2837xD_CodeStartBranch.d_raw" --obj_directory="device"  "../device/F2837xD_CodeStartBranch.asm"
    Finished building: "../device/F2837xD_CodeStartBranch.asm"
     
    Building file: "C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/source/F2837xD_PieVect.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-c2000_20.2.2.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -Ooff --include_path="C:/ti/c2000/Lab_common/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/headers/include" --include_path="C:/CCS_Workspace_1/SONG_cpu1" --include_path="C:/CCS_Workspace_1/SONG_cpu1/device" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2837xd/driverlib" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2837xd/driverlib/inc" --include_path="C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-c2000_20.2.2.LTS/include" --advice:performance=all --define=_DUAL_HEADERS --define=_LAUNCHXL_F28379D --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="F2837xD_PieVect.d_raw"  "C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/source/F2837xD_PieVect.c"
    Finished building: "C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/source/F2837xD_PieVect.c"
     
    Building file: "../main.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-c2000_20.2.2.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -Ooff --include_path="C:/ti/c2000/Lab_common/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/headers/include" --include_path="C:/CCS_Workspace_1/SONG_cpu1" --include_path="C:/CCS_Workspace_1/SONG_cpu1/device" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2837xd/driverlib" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2837xd/driverlib/inc" --include_path="C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-c2000_20.2.2.LTS/include" --advice:performance=all --define=_DUAL_HEADERS --define=_LAUNCHXL_F28379D --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="main.d_raw"  "../main.c"
    Finished building: "../main.c"
     
    Building file: "../Gpio.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-c2000_20.2.2.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -Ooff --include_path="C:/ti/c2000/Lab_common/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/headers/include" --include_path="C:/CCS_Workspace_1/SONG_cpu1" --include_path="C:/CCS_Workspace_1/SONG_cpu1/device" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2837xd/driverlib" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2837xd/driverlib/inc" --include_path="C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-c2000_20.2.2.LTS/include" --advice:performance=all --define=_DUAL_HEADERS --define=_LAUNCHXL_F28379D --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="Gpio.d_raw"  "../Gpio.c"
    Finished building: "../Gpio.c"
     
    Building file: "../device/device.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-c2000_20.2.2.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -Ooff --include_path="C:/ti/c2000/Lab_common/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/headers/include" --include_path="C:/CCS_Workspace_1/SONG_cpu1" --include_path="C:/CCS_Workspace_1/SONG_cpu1/device" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2837xd/driverlib" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2837xd/driverlib/inc" --include_path="C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-c2000_20.2.2.LTS/include" --advice:performance=all --define=_DUAL_HEADERS --define=_LAUNCHXL_F28379D --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="device/device.d_raw" --obj_directory="device"  "../device/device.c"
    Finished building: "../device/device.c"
     
    Building file: "C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/source/F2837xD_SysCtrl.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-c2000_20.2.2.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -Ooff --include_path="C:/ti/c2000/Lab_common/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/headers/include" --include_path="C:/CCS_Workspace_1/SONG_cpu1" --include_path="C:/CCS_Workspace_1/SONG_cpu1/device" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2837xd/driverlib" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2837xd/driverlib/inc" --include_path="C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-c2000_20.2.2.LTS/include" --advice:performance=all --define=_DUAL_HEADERS --define=_LAUNCHXL_F28379D --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="F2837xD_SysCtrl.d_raw"  "C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/source/F2837xD_SysCtrl.c"
    "C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/source/F2837xD_SysCtrl.c", line 840 (col. 47): advice #2615-D: (Performance) Use --fp_mode=relaxed to enable TMU hardware support for FP division.
    "C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/source/F2837xD_SysCtrl.c", line 848 (col. 50): advice #3195-D: (Performance) EABI double precision is 64-bits as opposed to 32-bits for COFF. Consider changing doubles to floats for improved performance in FPU32-mode.
    "C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/source/F2837xD_SysCtrl.c", line 848 (col. 31): advice #3195-D: (Performance) EABI double precision is 64-bits as opposed to 32-bits for COFF. Consider changing doubles to floats for improved performance in FPU32-mode.
    "C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/source/F2837xD_SysCtrl.c", line 848 (col. 81): advice #3195-D: (Performance) EABI double precision is 64-bits as opposed to 32-bits for COFF. Consider changing doubles to floats for improved performance in FPU32-mode.
    "C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/source/F2837xD_SysCtrl.c", line 848 (col. 62): advice #3195-D: (Performance) EABI double precision is 64-bits as opposed to 32-bits for COFF. Consider changing doubles to floats for improved performance in FPU32-mode.
    Finished building: "C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/source/F2837xD_SysCtrl.c"
     
    Building file: "C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/headers/source/F2837xD_GlobalVariableDefs.c"
    Invoking: C2000 Compiler
    "C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-c2000_20.2.2.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -Ooff --include_path="C:/ti/c2000/Lab_common/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/include" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/headers/include" --include_path="C:/CCS_Workspace_1/SONG_cpu1" --include_path="C:/CCS_Workspace_1/SONG_cpu1/device" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2837xd/driverlib" --include_path="C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2837xd/driverlib/inc" --include_path="C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-c2000_20.2.2.LTS/include" --advice:performance=all --define=_DUAL_HEADERS --define=_LAUNCHXL_F28379D --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi --preproc_with_compile --preproc_dependency="F2837xD_GlobalVariableDefs.d_raw"  "C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/headers/source/F2837xD_GlobalVariableDefs.c"
    Finished building: "C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/headers/source/F2837xD_GlobalVariableDefs.c"
     
    Building target: "SONG_cpu1.out"
    Invoking: C2000 Linker
    "C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-c2000_20.2.2.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -Ooff --advice:performance=all --define=_DUAL_HEADERS --define=_LAUNCHXL_F28379D --define=DEBUG --define=CPU1 --diag_suppress=10063 --diag_warning=225 --diag_wrap=off --display_error_number --abi=eabi -z -m"SONG_cpu1.map" --stack_size=0x100 --warn_sections -i"C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/headers/cmd" -i"C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2837xd/driverlib/ccs/Debug" -i"C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/common/cmd" -i"C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-c2000_20.2.2.LTS/lib" -i"C:/ti/ccs1020/ccs/tools/compiler/ti-cgt-c2000_20.2.2.LTS/include" --reread_libs --diag_wrap=off --display_error_number --xml_link_info="SONG_cpu1_linkInfo.xml" --entry_point=code_start --rom_model -o "SONG_cpu1.out" "./Adc.obj" "./DefaultIsr_6.obj" "./EPwm_6.obj" "./F2837xD_Adc.obj" "./F2837xD_DefaultISR.obj" "./F2837xD_EPwm.obj" "./F2837xD_GlobalVariableDefs.obj" "./F2837xD_Ipc.obj" "./F2837xD_PieCtrl.obj" "./F2837xD_PieVect.obj" "./F2837xD_SysCtrl.obj" "./F2837xD_usDelay.obj" "./Gpio.obj" "./main.obj" "./device/F2837xD_CodeStartBranch.obj" "./device/device.obj" "../2837xD_RAM_lnk_cpu1.cmd" "C:/ti/c2000/C2000Ware_3_01_00_00/driverlib/f2837xd/driverlib/ccs/Debug/driverlib.lib"  -l"C:/ti/c2000/C2000Ware_3_01_00_00/device_support/f2837xd/headers/cmd/F2837xD_Headers_nonBIOS_cpu1.cmd" -llibc.a
    <Linking>
    warning #10229-D: output section ".data" refers to load symbol "AdcBuf" and hence cannot be compressed; compression "lzss" is ignored
     
     undefined       first referenced  
      symbol             in file       
     ---------       ----------------  
     AdcBuf          ./DefaultIsr_6.obj
     DEBUG_TOGGLE    ./DefaultIsr_6.obj
     DacOffset       ./DefaultIsr_6.obj
     DacOutput       ./DefaultIsr_6.obj
     QuadratureTable ./DefaultIsr_6.obj
     SINE_ENABLE     ./DefaultIsr_6.obj
     
    error #10234-D: unresolved symbols remain
    error #10010: errors encountered during linking; "SONG_cpu1.out" not built
     
    >> Compilation failure
    makefile:160: recipe for target 'SONG_cpu1.out' failed
    gmake[1]: *** [SONG_cpu1.out] Error 1
    makefile:156: recipe for target 'all' failed
    gmake: *** [all] Error 2

    **** Build Finished ****

  • Hi Kartavya,

    Is the issue with  F28x_usDelay resolved?

    Have you defined the variables / functions  AdcBuf, DEBUG_TOGGLE..?

    Regards,

    Veena

  • No the issue with F28x_usDelay is still not resolved

    And yes, I have defined those variables

  • No the issue with F28x_usDelay is still not resolved

    Are you using EABI compiler? Note that for F2837x device, we have only ported the driverlib to EABI format. The bitfield contents are still in COFF format. As you can find in the COFF_EABI migration guide, COFF adds a leading underscore to symbol names, but EABI does not.

    Please add the following line above F28x_usDelay function definition in usdelay.asm file to make the file compatible across COFF and EABI.

    .if __TI_EABI__
    .asg F28x_usDelay, _F28x_usDelay
    .endif

    And yes, I have defined those variables

    Are these variables defined in .asm files? In that case, please follow the above instructions for these variables as well. This is not required if the variables are defined in .c file, teh compiler takes care of adding / not adding the underscore prefix for symbols

    If you are facing the issue even after this update, please share the .map file for further analysis.

    Regards,

    Veena

  • Hi Kartavya,

    Since we haven't heard from you, we assume that the above response has resolved your issue. I closing this ticket. If you are still facing issues, please reject the resolution and reply to this thread,

    Regards,

    Veena