Document 201852

How to compile Z-Stack for CC2430 (possible this response is right for other IAR mcu compilers width
other tools)?
First you must forgive me. My English not very well?
Second:
You must install a iar trial evolution kits for MCS8051 v7.51 and zstack from ti. You can find it on
www.iar.com and on www.ti.com.
You must open a sample project from “xxx/Texas Instruments/ZStack-1.4.3-1.2.1/Project/Sample (xxx path to
installation dir of zstack).
I open SampleApp.from “xxx/Texas Instruments/ZStack-1.4.31.2.1/Project/Sample/SampleApp/CC2340/SampleApp.eww”
Configuration:
1. Right click on main project node 0).
0)
2.
3.
4.
5.
6.
7.
In “General Optons” -> TAB “Target” choose:
CPU Core “Plain” 1)
Code model “Banked” 2)
“Do not use extended stack” 3).
Data model “Large” 4).
Calling convention “XDATA stact reentrant” 5)
1)
2)
3)
4)
5)
8. In “Genera Options” -> TAB “Library Configuration” select “CLIB" 6)
6)
9. Now you must add library file (because a xlink dll have bag) 7). This library must be same as in 6).
7)
10. Now we change a “Code bank” configuration. “Bank offset:” change to 0x8000.
8)
11. No and now now I and now : we must change the config file to xlink (link script) file to
“lnk51ew_cc2430.xcl” “lnk51ew_cc2430b.xcl” 9)
9)
12. File lnk51ew_cc2430b.xcl we must edit (for cc 2340 width 64Kb flash an 32 you must change
lnk51ew_cc2430.xcl file). This file is in directory “xxx/8051/config” where xxx the iar installation dir.
Comment -D_IXDATA_START=0xF000
Add line with -D_IXDATA_START=0xE000. (in future you can change this because memory's address
before 0xe000 – 0xf000 are no volatile memory 10).
You must change address memory in line from –D_IXDATA_END=0xFD55 to –
D_IXDATA_END=0xFEFF 11)
10
)
11
)
In future my proposition is to copy a file “lnk51ew_cc2430b.xcl” to local project directory.
It all.