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.

TMS320F28379D: F021_API_F2837xD移植问题

Part Number: TMS320F28379D
Other Parts Discussed in Thread: C2000WARE

工程中添加D:\work\user sw\C2000WARE\C2000Ware_4_01_00_00\libraries\flash_api\f2837xd这个库,F021_API_F2837xD已添加至工程,程序编译不过,报错和具体描述如下,不知道怎么解决,请指导。


**** Build of configuration Debug for project rfcu_cpu1 ****

"D:\\work\\user sw\\TI DSP IDE\\steup\\ccs\\utils\\bin\\gmake" -k -j 8 all -O

Building file: "../main.c"
Invoking: C2000 Compiler
"D:/work/user sw/TI DSP IDE/steup/ccs/tools/compiler/ti-cgt-c2000_21.6.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -O2 --include_path="D:/work/code/gitlab/RPS/DSP/dsp_demo -FLASH/rfcu_cpu1" --include_path="D:/work/code/gitlab/RPS/DSP/dsp_demo -FLASH/rfcu_cpu1/device/flashlib/lib" --include_path="D:/work/code/gitlab/RPS/DSP/dsp_demo -FLASH/rfcu_cpu1/device/flashlib/include" --include_path="D:/work/code/gitlab/RPS/DSP/dsp_demo -FLASH/rfcu_cpu1/device/flashlib/include/Constants" --include_path="D:/work/code/gitlab/RPS/DSP/dsp_demo -FLASH/rfcu_cpu1/utility/ringbuffer" --include_path="D:/work/user sw/TI DSP IDE/steup/ccs/tools/compiler/ti-cgt-c2000_21.6.0.LTS/include" --include_path="D:/work/code/gitlab/RPS/DSP/dsp_demo -FLASH/rfcu_cpu1/device" --include_path="D:/work/code/gitlab/RPS/DSP/dsp_demo -FLASH/rfcu_cpu1/device/driverlib" --include_path="D:/work/code/gitlab/RPS/DSP/dsp_demo -FLASH/rfcu_cpu1/rfcu/BSP/inc" --include_path="D:/work/code/gitlab/RPS/DSP/dsp_demo -FLASH/rfcu_cpu1/rfcu/BSP" --include_path="D:/work/code/gitlab/RPS/DSP/dsp_demo -FLASH/rfcu_cpu1/rfcu/logic/inc" --include_path="D:/work/code/gitlab/RPS/DSP/dsp_demo -FLASH/rfcu_cpu1/utility/shell/letter_shell/demo/dsp-loop" --include_path="D:/work/code/gitlab/RPS/DSP/dsp_demo -FLASH/rfcu_cpu1/utility/shell/letter_shell/src" --include_path="D:/work/code/gitlab/RPS/DSP/dsp_demo -FLASH/rfcu_cpu1/utility/shell/letter_shell/extensions/log" --include_path="D:/work/code/gitlab/RPS/DSP/dsp_demo -FLASH/rfcu_cpu1/utility/pid" --advice:performance=all --define=_DEBUG --define=_FLASH --define=CPU1 --define=_STANDALONE --define=__GNUC__ -g --c11 --printf_support=full --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi --preproc_with_compile --preproc_dependency="main.d_raw" "../main.c"
"D:/work/code/gitlab/RPS/DSP/dsp_demo -FLASH/rfcu_cpu1/rfcu/BSP/inc/BSP_GPIO.h", line 6: warning #48-D: incompatible redefinition of macro "CURRNET_CH1_G" (declared at line 5)
"D:/work/code/gitlab/RPS/DSP/dsp_demo -FLASH/rfcu_cpu1/rfcu/BSP/inc/BSP_GPIO.h", line 7: warning #48-D: incompatible redefinition of macro "CURRNET_CH1_G" (declared at line 6)
"D:/work/code/gitlab/RPS/DSP/dsp_demo -FLASH/rfcu_cpu1/rfcu/BSP/inc/BSP_GPIO.h", line 8: warning #48-D: incompatible redefinition of macro "CURRNET_CH1_G" (declared at line 7)
"D:/work/code/gitlab/RPS/DSP/dsp_demo -FLASH/rfcu_cpu1/rfcu/logic/inc/com_logic.h", line 117: warning #163-D: unrecognized #pragma
"D:/work/code/gitlab/RPS/DSP/dsp_demo -FLASH/rfcu_cpu1/rfcu/logic/inc/com_logic.h", line 124: warning #163-D: unrecognized #pragma
"D:/work/code/gitlab/RPS/DSP/dsp_demo -FLASH/rfcu_cpu1/rfcu/logic/inc/tc_logic.h", line 94: warning #163-D: unrecognized #pragma
"D:/work/code/gitlab/RPS/DSP/dsp_demo -FLASH/rfcu_cpu1/rfcu/logic/inc/debug_cfg.h", line 17: warning #827-D: specified symbol 'M_TraceL' undefined
"D:/work/code/gitlab/RPS/DSP/dsp_demo -FLASH/rfcu_cpu1/rfcu/logic/inc/debug_cfg.h", line 18: warning #827-D: specified symbol 'M_TraceW' undefined
"D:/work/code/gitlab/RPS/DSP/dsp_demo -FLASH/rfcu_cpu1/rfcu/logic/inc/debug_cfg.h", line 19: warning #827-D: specified symbol 'M_TraceE' undefined
Finished building: "../main.c"

Building target: "rfcu_cpu1.out"
Invoking: C2000 Linker
"D:/work/user sw/TI DSP IDE/steup/ccs/tools/compiler/ti-cgt-c2000_21.6.0.LTS/bin/cl2000" -v28 -ml -mt --cla_support=cla1 --float_support=fpu32 --tmu_support=tmu0 --vcu_support=vcu2 -O2 --advice:performance=all --define=_DEBUG --define=_FLASH --define=CPU1 --define=_STANDALONE --define=__GNUC__ -g --c11 --printf_support=full --diag_warning=225 --diag_wrap=off --display_error_number --abi=coffabi -z -m"rfcu_cpu1.map" --heap_size=0x200 --stack_size=0x400 --warn_sections -i"D:/work/user sw/TI DSP IDE/steup/ccs/tools/compiler/ti-cgt-c2000_21.6.0.LTS/lib" -i"D:/work/user sw/TI DSP IDE/steup/ccs/tools/compiler/ti-cgt-c2000_21.6.0.LTS/include" --reread_libs --diag_wrap=off --display_error_number --xml_link_info="rfcu_cpu1_linkInfo.xml" --rom_model -o "rfcu_cpu1.out" "./main.obj" "./test.obj" "./device/F2837xD_CodeStartBranch.obj" "./device/device.obj" "./device/driverlib/adc.obj" "./device/driverlib/asysctl.obj" "./device/driverlib/can.obj" "./device/driverlib/cla.obj" "./device/driverlib/clb.obj" "./device/driverlib/cmpss.obj" "./device/driverlib/cputimer.obj" "./device/driverlib/dac.obj" "./device/driverlib/dcsm.obj" "./device/driverlib/dma.obj" "./device/driverlib/ecap.obj" "./device/driverlib/emif.obj" "./device/driverlib/epwm.obj" "./device/driverlib/eqep.obj" "./device/driverlib/flash.obj" "./device/driverlib/gpio.obj" "./device/driverlib/hrpwm.obj" "./device/driverlib/i2c.obj" "./device/driverlib/interrupt.obj" "./device/driverlib/ipc.obj" "./device/driverlib/mcbsp.obj" "./device/driverlib/memcfg.obj" "./device/driverlib/sci.obj" "./device/driverlib/sdfm.obj" "./device/driverlib/spi.obj" "./device/driverlib/sysctl.obj" "./device/driverlib/upp.obj" "./device/driverlib/usb.obj" "./device/driverlib/version.obj" "./device/driverlib/xbar.obj" "./device/flashlib/source/Fapi_UserDefinedFunctions.obj" "./rfcu/BSP/BSP.obj" "./rfcu/BSP/drv_ad7682.obj" "./rfcu/BSP/drv_com.obj" "./rfcu/BSP/drv_flash.obj" "./rfcu/BSP/drv_pcf9535.obj" "./rfcu/BSP/drv_rf.obj" "./rfcu/BSP/drv_sti.obj" "./rfcu/BSP/src/BSP_CLA.obj" "./rfcu/BSP/src/BSP_DAC.obj" "./rfcu/BSP/src/BSP_FLASH.obj" "./rfcu/BSP/src/BSP_GPIO.obj" "./rfcu/BSP/src/BSP_I2C.obj" "./rfcu/BSP/src/BSP_IPC.obj" "./rfcu/BSP/src/BSP_PWM.obj" "./rfcu/BSP/src/BSP_SPI.obj" "./rfcu/BSP/src/BSP_SW_IIC.obj" "./rfcu/BSP/src/BSP_Timer.obj" "./rfcu/BSP/src/BSP_UART.obj" "./rfcu/BSP/src/BSP_WDG.obj" "./rfcu/BSP/src/BSP_XINT.obj" "./rfcu/BSP/src/cla1.obj" "./rfcu/logic/src/calibration.obj" "./rfcu/logic/src/com_logic.obj" "./rfcu/logic/src/crc_check.obj" "./rfcu/logic/src/iap_logic.obj" "./rfcu/logic/src/rf_logic.obj" "./rfcu/logic/src/sti_logic.obj" "./rfcu/logic/src/sys_monitor.obj" "./rfcu/logic/src/tc_ctrl_logic.obj" "./rfcu/logic/src/tc_logic.obj" "./utility/pid/pid.obj" "./utility/ringbuffer/ring_buffer.obj" "./utility/shell/letter_shell/demo/dsp-loop/shell_port.obj" "./utility/shell/letter_shell/extensions/log/log.obj" "./utility/shell/letter_shell/src/shell.obj" "./utility/shell/letter_shell/src/shell_cmd_list.obj" "./utility/shell/letter_shell/src/shell_companion.obj" "./utility/shell/letter_shell/src/shell_ext.obj" "../2837x_FLASH_lnk_cpu1.cmd" "../device/flashlib/lib/F021_API_F2837xD.lib" "../device/flashlib/lib/F021_API_F2837xD_EABI.lib" "../device/flashlib/lib/F021_API_F2837xD_FPU32.lib" "../device/flashlib/lib/F021_API_F2837xD_FPU32_EABI.lib" -l"D:/work/code/gitlab/RPS/DSP/dsp_demo -FLASH/rfcu_cpu1/device/flashlib/lib/F021_API_F2837xD_EABI.lib" -l"D:/work/code/gitlab/RPS/DSP/dsp_demo -FLASH/rfcu_cpu1/device/flashlib/lib/F021_API_F2837xD_FPU32_EABI.lib" -l"D:/work/code/gitlab/RPS/DSP/dsp_demo -FLASH/rfcu_cpu1/device/flashlib/lib/F021_API_F2837xD_FPU32.lib" -l"D:/work/code/gitlab/RPS/DSP/dsp_demo -FLASH/rfcu_cpu1/device/flashlib/lib/F021_API_F2837xD.lib" -llibc.a
<Linking>
error #16008-D: file "../device/flashlib/lib/F021_API_F2837xD.lib<Init.obj>" specifies ISA revision "C2800", which is not compatible with ISA revision "C28FPU32" specified in a previous file or on the command line
warning #10373-D: library "../device/flashlib/lib/F021_API_F2837xD_EABI.lib" contains ELF object files which are incompatible with the TI-COFF output file. Ensure you are using the proper library.
warning #10373-D: library "../device/flashlib/lib/F021_API_F2837xD_FPU32_EABI.lib" contains ELF object files which are incompatible with the TI-COFF output file. Ensure you are using the proper library.
warning #10373-D: library "../device/flashlib/lib/F021_API_F2837xD_EABI.lib" contains ELF object files which are incompatible with the TI-COFF output file. Ensure you are using the proper library.
warning #10373-D: library "../device/flashlib/lib/F021_API_F2837xD_FPU32_EABI.lib" contains ELF object files which are incompatible with the TI-COFF output file. Ensure you are using the proper library.
warning #10204-D: automatic RTS selection: could not resolve index library "libc.a" to a compatible library
warning #10373-D: library "../device/flashlib/lib/F021_API_F2837xD_EABI.lib" contains ELF object files which are incompatible with the TI-COFF output file. Ensure you are using the proper library.
warning #10373-D: library "../device/flashlib/lib/F021_API_F2837xD_FPU32_EABI.lib" contains ELF object files which are incompatible with the TI-COFF output file. Ensure you are using the proper library.
warning #10373-D: library "../device/flashlib/lib/F021_API_F2837xD_EABI.lib" contains ELF object files which are incompatible with the TI-COFF output file. Ensure you are using the proper library.
warning #10373-D: library "../device/flashlib/lib/F021_API_F2837xD_FPU32_EABI.lib" contains ELF object files which are incompatible with the TI-COFF output file. Ensure you are using the proper library.
warning #10062-D: entry-point symbol "_c_int00" undefined

undefined first referenced
symbol in file
--------- ----------------
FD$$DIV ./rfcu/BSP/src/BSP_SW_IIC.obj
FD$$SUB ./rfcu/BSP/src/BSP_SW_IIC.obj
FD$$TOUL ./rfcu/BSP/src/BSP_SW_IIC.obj
FS$$DIV ./test.obj
L$$DIV ./utility/shell/letter_shell/src/shell.obj
L$$MOD ./utility/shell/letter_shell/src/shell.obj
U$$MOD ./rfcu/logic/src/sti_logic.obj
UL$$TOFD ./rfcu/BSP/src/BSP_SW_IIC.obj
_cosf ./rfcu/logic/src/com_logic.obj
_memcpy ./device/device.obj
_sinf ./rfcu/logic/src/com_logic.obj
_snprintf ./utility/shell/letter_shell/extensions/log/log.obj
_sprintf ./utility/shell/letter_shell/extensions/log/log.obj
_strcmp ./utility/shell/letter_shell/src/shell.obj
_strlen ./utility/shell/letter_shell/src/shell.obj
_strncmp ./utility/shell/letter_shell/src/shell.obj
_vsnprintf ./rfcu/BSP/drv_com.obj
_vsscanf ./utility/shell/letter_shell/src/shell.obj

error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "rfcu_cpu1.out" not built

>> Compilation failure
makefile:245: recipe for target 'rfcu_cpu1.out' failed
gmake[1]: *** [rfcu_cpu1.out] Error 1
gmake[1]: Target 'secondary-outputs' not remade because of errors.
makefile:241: recipe for target 'all' failed
gmake: *** [all] Error 2

**** Build Finished ****

描述如下:

Description Resource Path Location Type
#10010 errors encountered during linking; "rfcu_cpu1.out" not built rfcu_cpu1 C/C++ Problem
<a href="file:/D:/work/user%20sw/TI%20DSP%20IDE/steup/ccs/tools/compiler/dmed/HTML/10234.html">#10234-D</a> unresolved symbols remain rfcu_cpu1 C/C++ Problem
<a href="file:/D:/work/user%20sw/TI%20DSP%20IDE/steup/ccs/tools/compiler/dmed/HTML/16008.html">#16008-D</a> file "../device/flashlib/lib/F021_API_F2837xD.lib<Init.obj>" specifies ISA revision "C2800", which is not compatible with ISA revision "C28FPU32" specified in a previous file or on the command line rfcu_cpu1 C/C++ Problem
gmake: *** [all] Error 2 rfcu_cpu1 C/C++ Problem
gmake[1]: *** [rfcu_cpu1.out] Error 1 rfcu_cpu1 C/C++ Problem
gmake[1]: Target 'secondary-outputs' not remade because of errors. rfcu_cpu1 C/C++ Problem
unresolved symbol _cosf, first referenced in ./rfcu/logic/src/com_logic.obj rfcu_cpu1 C/C++ Problem
unresolved symbol _memcpy, first referenced in ./device/device.obj rfcu_cpu1 C/C++ Problem
unresolved symbol _sinf, first referenced in ./rfcu/logic/src/com_logic.obj rfcu_cpu1 C/C++ Problem
unresolved symbol _snprintf, first referenced in ./utility/shell/letter_shell/extensions/log/log.obj rfcu_cpu1 C/C++ Problem
unresolved symbol _sprintf, first referenced in ./utility/shell/letter_shell/extensions/log/log.obj rfcu_cpu1 C/C++ Problem
unresolved symbol _strcmp, first referenced in ./utility/shell/letter_shell/src/shell.obj rfcu_cpu1 C/C++ Problem
unresolved symbol _strlen, first referenced in ./utility/shell/letter_shell/src/shell.obj rfcu_cpu1 C/C++ Problem
unresolved symbol _strncmp, first referenced in ./utility/shell/letter_shell/src/shell.obj rfcu_cpu1 C/C++ Problem
unresolved symbol _vsnprintf, first referenced in ./rfcu/BSP/drv_com.obj rfcu_cpu1 C/C++ Problem
unresolved symbol _vsscanf, first referenced in ./utility/shell/letter_shell/src/shell.obj rfcu_cpu1 C/C++ Problem
unresolved symbol FD$$DIV, first referenced in ./rfcu/BSP/src/BSP_SW_IIC.obj rfcu_cpu1 C/C++ Problem
unresolved symbol FD$$SUB, first referenced in ./rfcu/BSP/src/BSP_SW_IIC.obj rfcu_cpu1 C/C++ Problem
unresolved symbol FD$$TOUL, first referenced in ./rfcu/BSP/src/BSP_SW_IIC.obj rfcu_cpu1 C/C++ Problem
unresolved symbol FS$$DIV, first referenced in ./test.obj rfcu_cpu1 C/C++ Problem
unresolved symbol L$$DIV, first referenced in ./utility/shell/letter_shell/src/shell.obj rfcu_cpu1 C/C++ Problem
unresolved symbol L$$MOD, first referenced in ./utility/shell/letter_shell/src/shell.obj rfcu_cpu1 C/C++ Problem
unresolved symbol U$$MOD, first referenced in ./rfcu/logic/src/sti_logic.obj rfcu_cpu1 C/C++ Problem
unresolved symbol UL$$TOFD, first referenced in ./rfcu/BSP/src/BSP_SW_IIC.obj rfcu_cpu1 C/C++ Problem
#10062-D entry-point symbol "_c_int00" undefined rfcu_cpu1 C/C++ Problem
#10204-D automatic RTS selection: could not resolve index library "libc.a" to a compatible library rfcu_cpu1 C/C++ Problem
#10373-D library "../device/flashlib/lib/F021_API_F2837xD_EABI.lib" contains ELF object files which are incompatible with the TI-COFF output file. Ensure you are using the proper library. rfcu_cpu1 C/C++ Problem
#10373-D library "../device/flashlib/lib/F021_API_F2837xD_FPU32_EABI.lib" contains ELF object files which are incompatible with the TI-COFF output file. Ensure you are using the proper library. rfcu_cpu1 C/C++ Problem
#163-D unrecognized #pragma com_logic.h /rfcu_cpu1/rfcu/logic/inc line 117 C/C++ Problem
#163-D unrecognized #pragma com_logic.h /rfcu_cpu1/rfcu/logic/inc line 124 C/C++ Problem
#163-D unrecognized #pragma tc_logic.h /rfcu_cpu1/rfcu/logic/inc line 94 C/C++ Problem
#48-D incompatible redefinition of macro "CURRNET_CH1_G" (declared at line 5) BSP_GPIO.h /rfcu_cpu1/rfcu/BSP/inc line 6 C/C++ Problem
#48-D incompatible redefinition of macro "CURRNET_CH1_G" (declared at line 6) BSP_GPIO.h /rfcu_cpu1/rfcu/BSP/inc line 7 C/C++ Problem
#48-D incompatible redefinition of macro "CURRNET_CH1_G" (declared at line 7) BSP_GPIO.h /rfcu_cpu1/rfcu/BSP/inc line 8 C/C++ Problem
#827-D specified symbol 'M_TraceE' undefined debug_cfg.h /rfcu_cpu1/rfcu/logic/inc line 19 C/C++ Problem
#827-D specified symbol 'M_TraceL' undefined debug_cfg.h /rfcu_cpu1/rfcu/logic/inc line 17 C/C++ Problem
#827-D specified symbol 'M_TraceW' undefined debug_cfg.h /rfcu_cpu1/rfcu/logic/inc line 18 C/C++ Problem
Unused declaration of function 'report_ack' com_logic.c /rfcu_cpu1/rfcu/logic/src line 27 Code Analysis Problem
Unused declaration of function 'usart_active_report' com_logic.c /rfcu_cpu1/rfcu/logic/src line 25 Code Analysis Problem
Unused declaration of variable 'a_tmp_mod_s' com_logic.c /rfcu_cpu1/rfcu/logic/src line 12 Code Analysis Problem
Unused declaration of variable 'b_tmp_mod_s' com_logic.c /rfcu_cpu1/rfcu/logic/src line 13 Code Analysis Problem
Unused declaration of variable 'c_tmp_mod_s' com_logic.c /rfcu_cpu1/rfcu/logic/src line 14 Code Analysis Problem
Unused declaration of variable 'd_tmp_mod_s' com_logic.c /rfcu_cpu1/rfcu/logic/src line 15 Code Analysis Problem
Unused declaration of variable 'ringbuff2_handler_recv' com_logic.c /rfcu_cpu1/rfcu/logic/src line 31 Code Analysis Problem
Unused declaration of variable 'spib_tmp_mod_s' com_logic.c /rfcu_cpu1/rfcu/logic/src line 16 Code Analysis Problem
Unused static function 'tc_sort_min' tc_logic.c /rfcu_cpu1/rfcu/logic/src line 95 Code Analysis Problem