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

CC2500EMK: 使用示例程序无法编译

Part Number:CC2500EMKOther Parts Discussed in Thread:CC2500, MSP430F2274, MSP430F5529, SIMPLICITI

在下载了CC2500页面中的示例代码后使用CCS编译,但是会出现以下报错

"D:\\ccs\\utils\\bin\\gmake" -k all 
Building target: "eZ430-RF2500_WSM.out"
Invoking: MSP430 Linker
"D:/ccs/tools/compiler/ti-cgt-msp430_20.2.4.LTS/bin/cl430" –cmd_file="C:/Users/WBL/Desktop/eZ430-RF2500 Wireless Sensor Monitor/Embedded/CCS/eZ430-RF2500_WSM/../Code/Configuration/smpl_nwk_config.dat" –cmd_file="C:/Users/WBL/Desktop/eZ430-RF2500 Wireless Sensor Monitor/Embedded/CCS/eZ430-RF2500_WSM/../Code/Configuration/smpl_config_ED.dat"  -vmsp -g -O3 –opt_for_speed=0 –define=__MSP430F2274__ –define=MRFI_CC2500 –diag_warning=225 –printf_support=minimal -z -m"eZ430-RF2500_WSM.map" –stack_size=80 –heap_size=80 –warn_sections -i"D:/ccs/ccs_base/msp430/include" -i"D:/ccs/tools/compiler/ti-cgt-msp430_20.2.4.LTS/lib" -i"D:/ccs/tools/compiler/ti-cgt-msp430_20.2.4.LTS/include" –reread_libs –xml_link_info="eZ430-RF2500_WSM_linkInfo.xml" –rom_model -o "eZ430-RF2500_WSM.out" "./Applications/main_ED.obj" "./Applications/vlo_rand.obj" "./Components/bsp/bsp.obj" "./Components/mrfi/mrfi.obj" "./Components/nwk/nwk.obj" "./Components/nwk/nwk_QMgmt.obj" "./Components/nwk/nwk_api.obj" "./Components/nwk/nwk_frame.obj" "./Components/nwk/nwk_globals.obj" "./Components/nwk_applications/nwk_freq.obj" "./Components/nwk_applications/nwk_ioctl.obj" "./Components/nwk_applications/nwk_join.obj" "./Components/nwk_applications/nwk_link.obj" "./Components/nwk_applications/nwk_mgmt.obj" "./Components/nwk_applications/nwk_ping.obj" "./Components/nwk_applications/nwk_security.obj" "../lnk_msp430f2274.cmd"  -lrts430.lib<Linking>
error: cannot find file "rts430.lib"
"../lnk_msp430f2274.cmd", line 81: warning: Linker command file has no sections
   of type=VECT_INIT, but does contain .intXX sections.  This file may be out
   of date.  Generating interrupt pointers for all .intXX sections.  The
   default handler provided in the RTS will be used if no other handler is
   found.  It is recommend that you update your linker command file to the
   latest version.
warning: creating output section ".data" without a SECTIONS specification
warning: entry-point symbol "_c_int00" undefined
 
 undefined              first referenced          
  symbol                    in file               
 ———              —————-          
 __TI_decompress_lzss                             
 __TI_decompress_none                             
 __TI_int00                                       
 __TI_int01                                       
 __TI_int02                                       
 __TI_int04                                       
 __TI_int06                                       
 __TI_int07                                       
 __TI_int08                                       
 __TI_int10                                       
 __TI_int11                                       
 __TI_int12                                       
 __TI_int13                                       
 __TI_int14                                       
 __TI_zero_init                                   
 __mspabi_divi          ./Components/mrfi/mrfi.obj
 __mspabi_func_epilog_2 ./Components/mrfi/mrfi.obj
 __mspabi_func_epilog_3 ./Components/mrfi/mrfi.obj
 __mspabi_func_epilog_4 ./Components/nwk/nwk.obj  
 __mspabi_func_epilog_5 ./Components/nwk/nwk.obj  
 __mspabi_mpyi          ./Components/bsp/bsp.obj  
 __mspabi_srli_4        ./Components/mrfi/mrfi.obj
 memcmp                 ./Components/nwk/nwk.obj  
 memcpy                 ./Components/mrfi/mrfi.obj
 memmove                ./Components/nwk/nwk.obj  
 memset                 ./Components/mrfi/mrfi.obj
 
error: unresolved symbols remain
warning: no suitable entry-point found; setting to 0
error: errors encountered during linking; "eZ430-RF2500_WSM.out" not built
 
>> Compilation failure
makefile:159: recipe for target 'eZ430-RF2500_WSM.out' failed
gmake: *** [eZ430-RF2500_WSM.out] Error 1
gmake: Target 'all' not remade because of errors.

**** Build Finished ****

所以想请问一下是什么原因呢

Kevin Qiu1:

这款产品比较老了,应该使用CCSv4,看下readme中的说明

Notes for CCS=============The file macros.ini in Embedded/CCS/eZ430-RF2500_WSM is used to solve portability issues.When you import the project into CCS, macros.ini automatically adds a macro defining the project's root directory. For more details on how macros.ini workswith CCS, see the following TI wiki page: processors.wiki.ti.com/…/Portable_Projects_in_CCSv4_for_C2000

Previous versions required the eZ430_WSM_ROOT to be defined manually. This is no longer necessary.

Steps to successfully build the CCS project:

1) Launch CCS and open a workspace

2) Once created, the eZ430-RF2500_WSM project should be imported into the workspace: a. Select "Project > Import Existing CCS/CCE Eclipse Project" b. Navigate to your workspace and click OK c. Make sure the eZ430-RF2500_WSM project is selected and click Finish

这里有一份用户指南,你可以看一下https://www.ti.com.cn/cn/lit/ug/zhcu025e/zhcu025e.pdf?ts=1622705431234&ref_url=https%253A%252F%252Fwww.ti.com.cn%252Fsitesearch%252Fcn%252Fdocs%252Funiversalsearch.tsp%253FlangPref%253Dzh-CN%2526searchTerm%253DeZ430-RF2500%2526nr%253D1799

,

user6601413:

好的,谢谢您。

同时因为我在使用MSP430F5529的launchpad,请问一下我从哪里可以找到5529lp驱动CC2500的示例代码呢?今天尝试着按照其他芯片的代码编写程序,但是都没有办法正常运行

,

Kevin Qiu1:

CC2500没有直接用于MSP430F5529的驱动,需要自己移植

或者看下这里的其他msp430产品驱动,然后移植https://www.ti.com.cn/tool/cn/SIMPLICITI

,

user6601413:

不好意思还得再问您一下,就是我是否只需修改对应的spi接口就可以如其他的msp430芯片一样直接操作CC2500呢?

Kevin Qiu1 说:

需要自己移植

或者看下这里的其他msp430产品驱动,然后移植https://www.ti.com.cn/tool/cn/SIMPLICITI

,

Kevin Qiu1:

找到一个MSP430F5529 SimpliciTI 端口,可在此处下载http://software-dl.ti.com/msp430/msp430_public_sw/mcu/msp430/SimpliciTI_RF_Stack/1_x_x_5/index_FDS.html

赞(0)
未经允许不得转载:TI中文支持网 » CC2500EMK: 使用示例程序无法编译
分享到: 更多 (0)

© 2025 TI中文支持网   网站地图 鲁ICP备2022002796号-1