来自:http://blog.sina.com.cn/weidebao1985
I. Installation & Setup in "CC2530ZDK Sensor Demo User’s Guide"
1. Install Z-Stack™ 2.3.1 for CC2530.
It is recommended to download and install the newest version of swrc126.zip (56.9MB) as it contains the ZStack-CC2530-2.3.1-1.4.0.exe (the "full" CC2530 Z-stack v.2.3.1 & Application Examples v.1.4.0), which gives you additional application examples to work with.
the download kitwebsite is: http://focus.ti.com.cn/cn/docs/toolsw/folders/print/z-stack.html
2. Install IAR Embedded Workbench for 8051.
Please consult Z-Stack’s release notes to see which version of IAR to use. (More info about IAR EW 8051 is found on IAR’s websites www.iar.com/ew8051).
3. Download the CC2530 Sensor Demo zip file (SWRC147B.zip)
The download kitwebsite is: “http://focus.ti.com/docs/toolsw/folders/print/cc2530zdk.html ”
and the zip as shown in below image:
Unzip this file into the following directory of the Z-Stack installation: ..\Projects\zstack\Samples\Projects\zstack\Samples
If Z-Stack was installed on the default path, the folder to copy the files into will be:
C:\Texas Instruments\ZStack-CC2530-2.3.1-1.4.0\Projects\zstack\Samples
II. Problems of need to say:
1、IAR ew8051 v7.51 or above;
2、the Stack is ZStack-CC2530-2.4.0-1.4.0;
2、When I try to build the project I get the following linker error :
III. Method to resolve:
1、You just need to add a new file to the project. In the OSAL group of files, addOSAL_Math.s51. You'll find this file here: C:\Texas Instruments\ZStack-CC2530-2.4.0-1.4.0\Components\osal\mcu\cc2530.
2、Rebuild the project and you should not get any errors.
注:本文是作者原创,转载须保证文章的完整性并标明出处(http://blog.sina.com.cn/weidebao1985)。尊重作者,支持原创!