之前一直在做UDP协议,用的是CCS V7.2,库用的是ndk_2_20_06_35,然后我把Output type从eabi(ELF)变成legacy COFF,把Compiler version从TI v8.2.2变成TI v7.4.24,因为只要把Output type格式改了,complier version版本就不兼容TI v8.2.2了,所以我把Complier也改了,然后编译就出现了如下错误
**** Build of configuration Debug for project udp_t ****
"C:\\ti\\ccsv7\\utils\\bin\\gmake" -k -j 2 all -O已复制 1 个文件。
making ../src/sysbios/sysbios.ae674 …
gmake[1]: Nothing to be done for 'all'.
gmake[1]: Entering directory 'C:/ti/workspace_v7/udp_t/Debug'
'Building file: ../app.cfg'
'Invoking: XDCtools'
"C:/ti/xdctools_3_50_03_33_core/xs" –xdcpath="C:/ti/bios_6_52_00_12/packages;C:/ti/ndk_2_20_06_35/packages;C:/ti/ccsv7/ccs_base;" xdc.tools.configuro -o configPkg -t ti.targets.C674 -p ti.platforms.evm6748 -r release -c "C:/ti/c6000_7.4.24" –compileOptions "-g –optimize_with_debug" "../app.cfg"
'Building file: ../main.c'
'Invoking: C6000 Compiler'
"C:/ti/c6000_7.4.24/bin/cl6x" -mv6740 –abi=coffabi -g –include_path="C:/ti/ndk_2_20_06_35/packages/ti/ndk/inc" –include_path="C:/ti/workspace_v7/udp_t" –include_path="C:/ti/c6000_7.4.24/include" –define=c6748 –diag_wrap=off –diag_warning=225 –display_error_number –preproc_with_compile –preproc_dependency="main.d" –cmd_file="configPkg/compiler.opt" "../main.c"
'Finished building: ../main.c'
' '
configuring app.x674 from package/cfg/app_p674.cfg …
subdir_rules.mk:12: recipe for target 'build-1535271137-inproc' failed
"../main.c", line 46: warning #225-D: function declared implicitly
"../main.c", line 73: warning #225-D: function declared implicitly
error: ti.sysbios.family.Settings: "C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/Settings.xs", line 287: ti.sysbios.family.Settings : ti.targets.C674 is no longer supported. Please use ti.targets.elf.C674 instead.
js: "C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/Settings.xs", line 289: Error: "C:/ti/bios_6_52_00_12/packages/ti/sysbios/family/Settings.xs", line 88
"C:/ti/workspace_v7/udp_t/app.cfg", line 12
"./package/cfg/app_p674.cfg", line 183
xdctools_3_50_03_33_core\gmake.exe: *** [package/cfg/app_p674.xdl] Error 1
js: "C:/ti/xdctools_3_50_03_33_core/packages/xdc/tools/Cmdr.xs", line 52: Error: xdc.tools.configuro: configuration failed due to earlier errors (status = 2); 'linker.cmd' deleted.
gmake[1]: *** [build-1535271137-inproc] Error 1
gmake: *** [build-1535271137] Error 2
gmake[1]: Leaving directory 'C:/ti/workspace_v7/udp_t/Debug'
subdir_rules.mk:9: recipe for target 'build-1535271137' failed
gmake: Target 'all' not remade because of errors.
**** Build Finished ****
请问怎么解决呢?
Shine:
在工程属性->General->RTSC->SYS/BIOS->Target选择ti.targets.elf.C674 试试
Ryan BL:
记得之前翻ti的release note的时候有看到,ndk2.20还没支持elf,2.24才开始支持的吧。so,要么升级ndk/bios,要么使用老的coff。