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

CCS3.3移植工程到CCSV5,遇到的问题

大家好,

       最近移植ccs3.3下的工程到CCS5下,遇到以下问题:

 

**** Build of configuration Debug for project VC5507_Example ****

"E:\\ti\\ccsv5\\utils\\bin\\gmake" -k all'Building file: ../5507_che_top.c'
'Invoking: C5500 Compiler'
"E:/ti/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" -vCHIP_5509 –memory_model=large -g –include_path="E:/ti/ccsv5/tools/compiler/c5500_4.4.1/include" –include_path="D:/VC5507_workSpace_v5/include" –include_path="D:/VC5507_workSpace_v5/library/C5509A/include" –define=c5507 –display_error_number –diag_warning=225 –ptrdiff_size=32 –preproc_with_compile –preproc_dependency="5507_che_top.pp" "../5507_che_top.c"
>> WARNING: version specified in option -vCHIP_5509 is unknown (ignored)
"D:/VC5507_workSpace_v5/include/W5500.h", line 200: warning #48-D: incompatible redefinition of macro "TRUE" (declared at line 44 of "D:/VC5507_workSpace_v5/library/C5509A/include/csl_std.h")
"D:/VC5507_workSpace_v5/include/W5500.h", line 202: warning #48-D: incompatible redefinition of macro "FALSE" (declared at line 47 of "D:/VC5507_workSpace_v5/library/C5509A/include/csl_std.h")
"../5507_che_top.c", line 44: warning #163-D: unrecognized #pragma
"../5507_che_top.c", line 45: warning #163-D: unrecognized #pragma
"../5507_che_top.c", line 197: warning #225-D: function declared implicitly
"../5507_che_top.c", line 221: warning #225-D: function declared implicitly
"../5507_che_top.c", line 164: warning #179-D: variable "p" was declared but never referenced
"../5507_che_top.c", line 557: warning #225-D: function declared implicitly
"../5507_che_top.c", line 535: warning #179-D: variable "temp" was declared but never referenced
"../5507_che_top.c", line 535: warning #179-D: variable "i" was declared but never referenced
"../5507_che_top.c", line 579: warning #225-D: function declared implicitly
'Finished building: ../5507_che_top.c'
' '
'Building file: ../W5500_fun.c'
'Invoking: C5500 Compiler'
"E:/ti/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" -vCHIP_5509 –memory_model=large -g –include_path="E:/ti/ccsv5/tools/compiler/c5500_4.4.1/include" –include_path="D:/VC5507_workSpace_v5/include" –include_path="D:/VC5507_workSpace_v5/library/C5509A/include" –define=c5507 –display_error_number –diag_warning=225 –ptrdiff_size=32 –preproc_with_compile –preproc_dependency="W5500_fun.pp" "../W5500_fun.c"
>> WARNING: version specified in option -vCHIP_5509 is unknown (ignored)
"../W5500_fun.c", line 64: warning #225-D: function declared implicitly
"../W5500_fun.c", line 65: warning #225-D: function declared implicitly
"../W5500_fun.c", line 224: warning #225-D: function declared implicitly
"../W5500_fun.c", line 230: warning #225-D: function declared implicitly
"../W5500_fun.c", line 236: warning #225-D: function declared implicitly
'Finished building: ../W5500_fun.c'
' '
'Building file: ../che.c'
'Invoking: C5500 Compiler'
"E:/ti/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" -vCHIP_5509 –memory_model=large -g –include_path="E:/ti/ccsv5/tools/compiler/c5500_4.4.1/include" –include_path="D:/VC5507_workSpace_v5/include" –include_path="D:/VC5507_workSpace_v5/library/C5509A/include" –define=c5507 –display_error_number –diag_warning=225 –ptrdiff_size=32 –preproc_with_compile –preproc_dependency="che.pp" "../che.c"
>> WARNING: version specified in option -vCHIP_5509 is unknown (ignored)
'Finished building: ../che.c'
' '
'Building file: ../che_NEW.c'
'Invoking: C5500 Compiler'
"E:/ti/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" -vCHIP_5509 –memory_model=large -g –include_path="E:/ti/ccsv5/tools/compiler/c5500_4.4.1/include" –include_path="D:/VC5507_workSpace_v5/include" –include_path="D:/VC5507_workSpace_v5/library/C5509A/include" –define=c5507 –display_error_number –diag_warning=225 –ptrdiff_size=32 –preproc_with_compile –preproc_dependency="che_NEW.pp" "../che_NEW.c"
>> WARNING: version specified in option -vCHIP_5509 is unknown (ignored)
'Finished building: ../che_NEW.c'
' '
'Building file: ../dma.s55'
'Invoking: C5500 Compiler'
"E:/ti/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" -vCHIP_5509 –memory_model=large -g –include_path="E:/ti/ccsv5/tools/compiler/c5500_4.4.1/include" –include_path="D:/VC5507_workSpace_v5/include" –include_path="D:/VC5507_workSpace_v5/library/C5509A/include" –define=c5507 –display_error_number –diag_warning=225 –ptrdiff_size=32 –preproc_with_compile –preproc_dependency="dma.pp" "../dma.s55"
>> WARNING: version specified in option -vCHIP_5509 is unknown (ignored)
'Finished building: ../dma.s55'
' '
'Building file: ../ex5507fun.c'
'Invoking: C5500 Compiler'
"E:/ti/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" -vCHIP_5509 –memory_model=large -g –include_path="E:/ti/ccsv5/tools/compiler/c5500_4.4.1/include" –include_path="D:/VC5507_workSpace_v5/include" –include_path="D:/VC5507_workSpace_v5/library/C5509A/include" –define=c5507 –display_error_number –diag_warning=225 –ptrdiff_size=32 –preproc_with_compile –preproc_dependency="ex5507fun.pp" "../ex5507fun.c"
>> WARNING: version specified in option -vCHIP_5509 is unknown (ignored)
"../ex5507fun.c", line 41: warning #225-D: function declared implicitly
"../ex5507fun.c", line 156: warning #1311-D: nonstandard conversion between pointer to function and pointer to data
'Finished building: ../ex5507fun.c'
' '
'Building target: VC5507_Example.out'
'Invoking: C5500 Linker'
"E:/ti/ccsv5/tools/compiler/c5500_4.4.1/bin/cl55" -vCHIP_5509 –memory_model=large -g –define=c5507 –display_error_number –diag_warning=225 –ptrdiff_size=32 -z -m"VC5507_Example.map" –stack_size=0x200 –heap_size=0x400 -i"E:/ti/ccsv5/tools/compiler/c5500_4.4.1/lib" -i"E:/ti/ccsv5/tools/compiler/c5500_4.4.1/include" –reread_libs –display_error_number –warn_sections –xml_link_info="VC5507_Example_linkInfo.xml" –rom_model –sys_stacksize=0x200 -o "VC5507_Example.out" "./ex5507fun.obj" "./dma.obj" "./che_NEW.obj" "./che.obj" "./W5500_fun.obj" "./5507_che_top.obj" "../dma.cmd" -l"libc.a" -l"D:\VC5507_workSpace_v5\library\C5509A\lib\csl5509x.lib"<Linking>
>> WARNING: version specified in option -vCHIP_5509 is unknown (ignored)
error #10056: symbol "_th" redefined: first defined in "./che_NEW.obj";
redefined in "./che.obj"
error #10056: symbol "_che" redefined: first defined in "./che_NEW.obj";

redefined in "./che.obj"
error #10056: symbol "_fceil" redefined: first defined in "./che_NEW.obj";
>> Compilation failure
redefined in "./che.obj"
error #10056: symbol "_che_dect" redefined: first defined in "./che_NEW.obj";
redefined in "./che.obj"

undefined first referenced symbol in file ——— —————- _Detect_Gateway ./W5500_fun.obj _GPIO6H ./5507_che_top.obj
_Gateway_IP ./W5500_fun.obj _IP_Addr ./W5500_fun.obj _Phy_Addr ./W5500_fun.obj _Read_SOCK_Data_Buffer ./W5500_fun.obj _Rx_Buffer ./W5500_fun.obj _S0_DIP ./W5500_fun.obj _S0_DPort ./W5500_fun.obj _S0_Data ./W5500_fun.obj _S0_Mode ./W5500_fun.obj _S0_Port ./W5500_fun.obj _S0_State ./W5500_fun.obj _Socket_Connect ./W5500_fun.obj _Socket_Init ./W5500_fun.obj _Socket_Listen ./W5500_fun.obj _Socket_UDP ./W5500_fun.obj _Sub_Mask ./W5500_fun.obj _Tx_Buffer ./W5500_fun.obj _UDP_DIPR ./W5500_fun.obj _UDP_DPORT ./W5500_fun.obj _W5500_Hardware_Reset ./W5500_fun.obj _W5500_Init ./W5500_fun.obj _W5500_Interrupt_Process ./W5500_fun.obj _Write_SOCK_Data_Buffer ./W5500_fun.obj _Write_W5500_SOCK_2Byte ./W5500_fun.obj _Write_W5500_SOCK_4Byte ./W5500_fun.obj _netfail ./W5500_fun.obj _proc_clt ./5507_che_top.obj

error #10234-D: unresolved symbols remain
error #10010: errors encountered during linking; "VC5507_Example.out" not
built
gmake: *** [VC5507_Example.out] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****

相应的库文件及csl都已经添加完毕。

请问,这些问题该怎么解决?

谢谢

Shine:

请问你在CCS3.3下编译通过了么?CHIP_5509不是填在-v选项,而是填在predefined Symbols(-d)选项里。

另外,建议在CCSv5里新建project,不要import ccs3.3 project,可以减少很多移植问题。

赞(0)
未经允许不得转载:TI中文支持网 » CCS3.3移植工程到CCSV5,遇到的问题
分享到: 更多 (0)