TI中文支持网
TI专业的中文技术问题搜集分享网站

TMS320F28335: 【在线等】CCS V6.2 C2000 Hex Utility 勾选后,Linker 输出错误

Part Number:TMS320F28335

我遇到一个很奇怪的问题,打算勾选C2000 Hex Utility 产生Hex 文件,

但很奇怪,命令行输出如下:

"D:/ti/ccs620/ccsv6/tools/compiler/ti-cgt-c2000_18.12.8.LTS/bin/cl2000" -v28 -ml -mt –float_support=fpu32 -O2 –opt_for_speed=2 –define="LARGE_MODEL" –diag_warning=225 –diag_wrap=off –display_error_number –abi=coffabi –obj_directory="F:/MyMaterial/DSP_Code/TI28335/For28335_GoToNgN_0326/Release" -z -m"F:/MyMaterial/DSP_Code/TI28335/For28335_GoToNgN_0326/lib/Release/For28335_GoToNgN_0326.map" –stack_size=0x700 –warn_sections -i"F:/MyMaterial/DSP_Code/TI28335/For28335_GoToNgN_0326/For28335_GoToNgN_0326" -i"F:/MyMaterial/DSP_Code/TI28335/For28335_GoToNgN_0326" -i"F:/MyMaterial/DSP_Code/TI28335/For28335_GoToNgN_0326/lib" -i"F:/MyMaterial/DSP_Code/TI28335/For28335_GoToNgN_0326/lib/lib" -i"D:/ti/ccs620/ccsv6/tools/compiler/ti-cgt-c2000_18.12.8.LTS/lib" -i"D:/ti/ccs620/ccsv6/tools/compiler/ti-cgt-c2000_18.12.8.LTS/include" –priority –reread_libs –diag_wrap=off –display_error_number –xml_link_info="For28335_GoToNgN_0326_linkInfo.xml" –rom_model -o "lib/DSP2833x_Headers_nonBIOS.exe" "F:/MyMaterial/DSP_Code/TI28335/For28335_GoToNgN_0326/lib/DSP2833x_Headers_nonBIOS.cmd"
这当然不对了:

但当我去掉之后C2000 Hex Utility 之后,命令行就对了:
'Invoking: C2000 Linker'
"D:/ti/ccs620/ccsv6/tools/compiler/ti-cgt-c2000_21.12.0.STS/bin/cl2000" -v28 -ml -mt –float_support=fpu32 -O2 –opt_for_speed=2 –define="LARGE_MODEL" –diag_warning=225 –diag_wrap=off –display_error_number –abi=coffabi –obj_directory="F:/MyMaterial/DSP_Code/TI28335/For28335_GoToNgN_0326/Release" -z -m"For28335_GoToNgN_0326.map" –stack_size=0x700 –warn_sections -i"F:/MyMaterial/DSP_Code/TI28335/For28335_GoToNgN_0326" -i"F:/MyMaterial/DSP_Code/TI28335/For28335_GoToNgN_0326/For28335_GoToNgN_0326" -i"F:/MyMaterial/DSP_Code/TI28335/For28335_GoToNgN_0326/lib" -i"D:/ti/ccs620/ccsv6/tools/compiler/ti-cgt-c2000_21.12.0.STS/lib" -i"D:/ti/ccs620/ccsv6/tools/compiler/ti-cgt-c2000_21.12.0.STS/include" –reread_libs –diag_wrap=off –display_error_number –xml_link_info="For28335_GoToNgN_0326_linkInfo.xml" –rom_model -o "For28335_GoToNgN_0326.out" "F:/MyMaterial/DSP_Code/TI28335/For28335_GoToNgN_0326/lib/F28335.cmd" "F:/MyMaterial/DSP_Code/TI28335/For28335_GoToNgN_0326/lib/Flash28335_API_V210.lib" -l"F:/MyMaterial/DSP_Code/TI28335/For28335_GoToNgN_0326/lib/Flash28335_API_V210.lib" "F:/MyMaterial/DSP_Code/TI28335/For28335_GoToNgN_0326/lib/rts2800_fpu32_fast_supplement.lib" -l"F:/MyMaterial/DSP_Code/TI28335/For28335_GoToNgN_0326/lib/rts2800_fpu32_fast_supplement.lib" "F:/MyMaterial/DSP_Code/TI28335/For28335_GoToNgN_0326/lib/rts2800_fpu32_good.lib" -l"F:/MyMaterial/DSP_Code/TI28335/For28335_GoToNgN_0326/lib/rts2800_fpu32_good.lib" "F:/MyMaterial/DSP_Code/TI28335/For28335_GoToNgN_0326/lib/DSP2833x_Headers_nonBIOS.cmd" "F:/MyMaterial/DSP_Code/TI28335/For28335_GoToNgN_0326/Release/DSP2833x_ADC_cal.obj" "F:/MyMaterial/DSP_Code/TI28335/For28335_GoToNgN_0326/Release/DSP2833x_Adc.obj" "F:/MyMaterial/DSP_Code/TI28335/For28335_GoToNgN_0326/Release/DSP2833x_CSMPasswords.obj" "F:/MyMaterial/DSP_Code/TI28335/For28335_GoToNgN_0326/Release/DSP2833x_CodeStartBranch.obj" "F:/MyMaterial/DSP_Code/TI28335/For28335_GoToNgN_0326/Release/DSP2833x_CpuTimers.obj" "F:/MyMaterial/DSP_Code/TI28335/For28335_GoToNgN_0326/Release/DSP2833x_DefaultIsr.obj" "F:/MyMaterial/DSP_Code/TI28335/For28335_GoToNgN_0326/Release/DSP2833x_DisInt.obj" "F:/MyMaterial/DSP_Code/TI28335/For28335_GoToNgN_0326/Release/DSP2833x_ECan.obj" "F:/MyMaterial/DSP_Code/TI28335/For28335_GoToNgN_0326/Release/DSP2833x_ECap.obj" "F:/MyMaterial/DSP_Code/TI28335/For28335_GoToNgN_0326/Release/DSP2833x_EPwm.obj" "F:/MyMaterial/DSP_Code/TI28335/For28335_GoToNgN_0326/Release/DSP2833x_EQep.obj" "F:/MyMaterial/DSP_Code/TI28335/For28335_GoToNgN_0326/Release/DSP2833x_GlobalVariableDefs.obj" "F:/MyMaterial/DSP_Code/TI28335/For28335_GoToNgN_0326/Release/DSP2833x_Gpio.obj" "F:/MyMaterial/DSP_Code/TI28335/For28335_GoToNgN_0326/Release/DSP2833x_MemCopy.obj" "F:/MyMaterial/DSP_Code/TI28335/For28335_GoToNgN_0326/Release/DSP2833x_MyMotorCtrl.obj" "F:/MyMaterial/DSP_Code/TI28335/For28335_GoToNgN_0326/Release/DSP2833x_MyMotorData.obj" "F:/MyMaterial/DSP_Code/TI28335/For28335_GoToNgN_0326/Release/DSP2833x_PieCtrl.obj" "F:/MyMaterial/DSP_Code/TI28335/For28335_GoToNgN_0326/Release/DSP2833x_PieVect.obj" "F:/MyMaterial/DSP_Code/TI28335/For28335_GoToNgN_0326/Release/DSP2833x_Sci.obj" "F:/MyMaterial/DSP_Code/TI28335/For28335_GoToNgN_0326/Release/DSP2833x_Spi.obj" "F:/MyMaterial/DSP_Code/TI28335/For28335_GoToNgN_0326/Release/DSP2833x_SysCtrl.obj" "F:/MyMaterial/DSP_Code/TI28335/For28335_GoToNgN_0326/Release/DSP2833x_Xintf.obj" "F:/MyMaterial/DSP_Code/TI28335/For28335_GoToNgN_0326/Release/DSP2833x_ePWM_Main.obj" "F:/MyMaterial/DSP_Code/TI28335/For28335_GoToNgN_0326/Release/DSP2833x_usDelay.obj" "F:/MyMaterial/DSP_Code/TI28335/For28335_GoToNgN_0326/Release/Flash2833x_API.obj" "F:/MyMaterial/DSP_Code/TI28335/For28335_GoToNgN_0326/Release/Flash2833x_CsmKeys.obj" -llibc.a<Linking>
'Finished building target: For28335_GoToNgN_0326.out'

为啥C2000 Hex Utility 会影响前面的编译和链接过程呢,C2000 Hex Utility 不就是调用hex2000.exe 来产生hex 文件吗?

这个CCS 怎么了?怎么了?

user6049953:

问题搞定了,应该是我从ccs v3.3 里面把工程给导过来,将我lib 目录下lib,cmd 文件作为源文件去Build 了,这显然是不对的;应该只能将lib 作为包含关系给指定进来,而不是作为Source File 进行编译; 也就是这些文件:应该作为lib 给引用进来,像这样:

,

Green Deng:

感谢反馈!

赞(0)
未经允许不得转载:TI中文支持网 » TMS320F28335: 【在线等】CCS V6.2 C2000 Hex Utility 勾选后,Linker 输出错误
分享到: 更多 (0)