Home
IAR IDE User Manual
Contents
1. 8 1 Write an address Use Chipcon Flash Programmer available from www chipcon com to write an IEEE address to CC2430 or see the next section Information about Chipcon Flash Programmer is available in Chipcon Flash Programmer User Manual It is possible to write the IEEE address as part of a C program IEEE ADDRESS SPACE is defined in the linker file To write an address to this segment include the code below in the C program change the address The IEEE address which the chip was delivered with is written on the development card root code const unsigned char IEEE ADDRESS 8 IEEE ADDRESS SPACE 0x00 0x01 0x02 0x03 0x04 0x05 0x06 0x07 If the chip already contains an address this address will be overwritten by inclusion of this example code 8 2 Read an address If the IEEE address is written to code as the example code in chapter 8 1 shows it can easily be read with use of the same variable If the address is stored in the chip it can be read with use of the example code shown below If interrupt is enabled remember to turn this off before calling the routine If the project is using code model near set flash size to 64 for both CC2430 F64 and CC2430 F 128 Not programmed when delivered 35 TEXAS INSTRUMENTS SWRUO38 Page 16 of 29 Chipcon Products CETITIVEL2430 C 02510 c bos Texas Instruments define CC2430 FLASH SIZE 32 define CC2430 FLASH SIZE 64 define CC2430_FLASH_ SIZE 128
2. if CC2430 FLASH SIZE 32 define IEEE ADDRESS ARRAY Ox7FF8 Zelif CC2430 FLASH SIZE 64 CC2430 FLASH SIZE 128 define IEEE ADDRESS ARRAY OxFFF8 endif near func void getlEEEAddress unsigned char a if CC2430 FLASH SIZE 128 unsigned char bank bank MEMCTR switch to bank 3 MEMCTR 0x30 endif a 0 unsigned char code a 1 unsigned char code a 2 unsigned char code a 3 unsigned char code IEEE ADDRESS ARRAY 0 IEEE ADDRESS ARRAY 1 IEEE ADDRESS ARRAY 2 IEEE ADDRESS ARRAY 3 IEEE ADDRESS ARRAY 4 IEEE ADDRESS ARRAY 5 a 4 unsigned char code a 5 unsigned char code a 6 unsigned char code IEEE ADDRESS ARRAY 6 a 7 unsigned char code IEEE ADDRESS ARRAY 7 if CC2430 FLASH SIZE 128 restore old bank settings MEMCTR bank endif ee Se OO ONL ON A ee Se unsigned char addr 8 int main void getlEEEAddress addr for 35 TEXAS INSTRUMENTS SWRUO38 Page 17 of 29 C hipcon Product CCTITU CD2430 002510 from Texas Instruments 9 Tutorial This chapter shows how to set up a new project for CC2430 in the IAR Workbench A project for CCxx10 can be set up in a similar fashion by replacing the CC2430 specific files with the corresponding files for the chip in question The setup which is shown here use settings used for common projects Both setup for project using
3. Simulator Figure 8 Address translation for Banked Code 35 TEXAS INSTRUMENTS SWRUO38 Page 13 of 29 C pn CETITIVCEL2430 C 52510 from Texas Instruments 6 Debugger The debugger is configured to match the specific chip with use of a definition file For CC2430 the configuration file is named CC2430 adf For the CCxx10 the file is named COxx10 ddf xx refers to either 11 or 25 To setup your project correctly see chapter 9 Some of the internal registers will disturb the state of the chip when they are read These registers will consequently not be shown with correct values in the register view window see Figure 9 They will always be shown with value 0x00 e g RFD ADCH ADCL ENDO x 0 M d u ud ur EIE Uo QN MO e rerrerre rf I ADCCFG Figure 9 Register Window 35 TEXAS INSTRUMENTS SWRU038 Page 14 of 29 C pe CONNMO CE2430 662510 from Texas Instruments 7 Absolute Placement of Code and Variables This chapter shows how to place code and variables at absolute addresses and the chapter is mainly intended for the CC2430 For an extended description please refer to the IAR user manual 7 1 Code The linker file for CC2430 F128 has defined one code space for each bank It is not required to use these definitions for banked code model The linker will distribute the code automatically int f BANK1 return 1 pragma location BANK1 int g return 2 j near
4. Ink51ew_cc2430 xcl and Ink51ew_cc2430b xcl They both reflect the physical aspects of CC2430 Lnk51ew cc2430b xcl is for CC2430 F128 and banked code model Ink51ew_cc2430 xcl is for use with non banked code and can be edited to reflect any chip model 5 1 XData RAM The linker file is by default set up to use 4k of XData RAM The XData RAM memory map in Figure 3 is reflected in the linker file OxFFFF OxFFOC IData OxFEFF Lose data in PM2 PM3 OxFD58 O OxFD57 Retain data in all PM OxFOOC OxEFFF Lose data in PM2 PM3 OxEOOC Figure 3 XData RAM Memory CC2430 has 8k XData RAM memory but only 4k is preserved during Power Mode 2 and Power Mode 3 Figure 3 shows how XData is organized To place variables in the memory space which is not retained will have to be explicitly located in that memory segment see chapter 7 1 Note If your application is not using PM2 PMS you can change the linker file to use the full XData memory Change the line below in Ink51ew cc2430 b xcl From D IXDATA START FOOO The internal xdata is 4k To D IXDATA START EO00 _ using low power RAM as normal RAM 35 TEXAS INSTRUMENTS SWRUO38 Page 8 of 29 C pe CETITIVCEL2430 C E2510 from Texas Instruments 5 2 Code When using Near Code Model a maximum of 64k bank 0 and 1 Figure 4 of code memory is available 16 bits is used for address When using Banked Code Model for CC2430 F128 128k is available Lnk51ew_cc2
5. c Chipcon Products from Texas Instruments CETITIVEL2430 L 62510 5 2 2 Banked code model In Banked Code Model things get a bit trickier Figure 6 shows the address space Note In Linker View the address space is not continuous To explicitly locate code in each bank see chapter 7 1 CX1FFFF Bank 3 Cx1800C Cx17FFF Bank 2 Cx1000C Cx3FFFF Bank 3 Cx3800C CxCFFFF Bank 1 Cx0800C Cx2FFFF Bank 2 Cx2800C Cx3F FFF Bank 3 Cx3800C Cx37FFF Bank 0 Cx3000C Cx2F FFF Bank 2 Cx2800C can ay ea ay CxO7FFF Bank 0 Cx0000C Cx1FFFF Bank 1 Cx1800C CX27F FF Bank 0 Cx2000C Cx1F FFF Bank 1 Cx1800C CxO FFF Bank 0 Cx0000C M cuc Bank O Cx1000C CxCFFFF Bank O NJ Cx0BO00C CxO7FFF Bank 0 Cx0000C Physical View Linker View Debugger View Figure 6 Banked Code Memory Debugger View is upside down in the IAR Disassembly Window in relation to Figure 6 Bank 0 in Debugger View is a copy of Bank 0 and should not be taken into account 35 TEXAS INSTRUMENTS SWRUO38 Page 11 of 29 hae ai ph CLTIT LL2430 662510 from Texas Instruments 5 23 Create HEX file Because of the non continuous address space when using banked code model the HEX file generated will not be usable with the Chipcon Flash Programmer To map this
6. default SINCERE TOOLKIT_DIR confighnk 51 ew_co2430 xcl Debugger Third Party Driver Chipcon Override default program entry HUM hMaenitar Entmlabel program start Analog Devices C Defined by application slabs Search paths one per line simulator TOOLKIT DIRSALIBA Haw binary image File Symbol Segment Align D d d caen Figure 18 Linker 35 TEXAS INSTRUMENTS SWRUO38 Page 24 of 29 El um ad rie CUTITIV0EL2430 662510 from Texas Instruments 9 2 4 Debugger Use Chipcon as debugger and check that the Device Description file is set to CC2430 ddf The daf file is located in Embedded Workbench 4 05 X8051 config derivatives XChipcon Options for node Testi X A Factory Settings General Options C C Compiler setup Extra Options Plugins Assembler Custom Build Driver Iw Run to Build Actions Chipcon ka main De bugger Third Party Driver Chipcon Setup macros ROM Monitar Use macro file Analog Devices E Silabs E Simulator Device Description File vw Overide default TOOLKIT_DIR config derivatives Chipcon 0C2430 dat B ceca Figure 19 Debugger 35 TEXAS INSTRUMENTS SWRUO38 Page 25 of 29 C Ghincon Product COTITO CC2430 002510 from Texas Instruments 9 3 Include source files To create a new source file choose File gt New gt File TAR Embedded Workbench IDE File Edit wiew Project Sim
7. specifications applicable at the time of sale in accordance with Tl s standard warranty Testing and other quality control techniques are used to the extent TI deems necessary to support this warranty Except where mandated by government requirements testing of all parameters of each product is not necessarily performed Tl assumes no liability for applications assistance or customer product design Customers are responsible for their products and applications using TI components To minimize the risks associated with customer products and applications customers should provide adequate design and operating safeguards TI does not warrant or represent that any license either express or implied is granted under any TI patent right copyright mask work right or other TI intellectual property right relating to any combination machine or process in which TI products or services are used Information published by TI regarding third party products or services does not constitute a license from TI to use such products or services or a warranty or endorsement thereof Use of such information may require a license from a third party under the patents or other intellectual property of the third party or a license from TI under the patents or other intellectual property of TI Reproduction of information in TI data books or data sheets is permissible only if reproduction is without alteration and is accompanied by all associated warranties conditions lim
8. 430 xcl is set up to reflect CC2430 F128 and CC2430 F64 both has 64 k flash for non banked code To reflect CC2430 F32 edit the file as described below as well as in the linker file With use of this linker file maximum code size is 64K Ink51ew cc2430 xcl contains this fragment D CODE ENDzOxFFFF Last address for code CC2430 F64 and CC2430 F 128 D CODE END2Ox7FFF Last address for code CC2430 F32 D NEAR CODE END OxFFFF Last address for near code CC2430 F64 and CC2430 F128 D NEAR CODE END2zOxT7FFF Last address for near code CC2430 F32 For use of CC2430 F32 interchange the lines that are commented out Bank 3 Bank 2 Bank 1 Bank 0 Figure 4 Code banking 35 TEXAS INSTRUMENTS SWRUO38 Page 9 of 29 C pn CETITIVEL2430 C 52510 from Texas Instruments 5 2 1 Near code model For unbanked code the address space is continuous and straight forward to use see Figure 5 The Physical View is showing the address space as it is observed physically in the CC2430 F64 and CC2430 F128 The Linker View is showing how the linker map addresses to physical address and Debugger view is showing where in the Disassembly Window the code can be found CxFFFF CxFFFF CxCFFFF CX0000 0 LY CX0000 O OOS o LLL Cx00000 Physical View Linker View Debugger View Figure 5 Near Code Memory 35 TEXAS INSTRUMENTS SWRUO38 Page 10 of 29
9. AS INSTRUMENTS SWRUO38 Page 19 of 29 C pe CETITIVEEL2430 C 52510 from Texas Instruments Chapter 9 2 1 describes all settings that need to be changed for CC2430 for code model near This also applies to CCxx10 Chapter 9 2 2 describes the settings that differ from code model near to code model banked This does not apply to CCxx10 9 2 1 General Options Code Model Near Applies also to CCxx10 Options for node ieee EesE x Category General Options C C Compiler Target Data Pointer Arithmetic Unit Code Bank Output Library E Assembler DP Derivative information Custom Build Prd Acis Derivative CC2430 E EIE CPU core Plain Debugger Third Party Driver Chipean Code model Do not use extended stack FOM Monitor Near c Extended stack at 0 002000 Analog Devices z Data model Calling convention Silab Simulator Large KDATA stack reentrant Location for constants and stings Number of virtual registers a f RAM memory C ROM mapped as data C CODE memory Figure 13 Target Code Model Near In the Derivative information box select the CC2430 i51 file located in folder Embedded Workbench 4 05 8051 config derivatives Chipcon Use H to select the file Set up rest of the settings on the Target settings as Figure 13 shows 35 TEXAS INSTRUMENTS SWRUO38 Page 20 of 29 C Ghivcon Products COTITI DC2430 002510 from Texas Instruments U
10. C m mi re CUTITIV0EL2430 C C25 10 from Texas Instruments IAR IDE User Manual Rev 1 2 TEXAS INSTRUMENTS SWRUO38 Page 1 of 29 pp CETITIVCEL2430 C 52510 from Texas Instruments Table of contents 1 INIRODUCTION cc 3 2 MEIN LOIN m E 3 3 INSTALLATION c 4 3 CHPOONCCITIO CC2510 EXTENSIONS n retten rper Rav and xe Ep e Qo neo NNA Rad o S bn n etos e 4 3 1 1 donus M Tq HL t X X 4 3 1 2 Chipcon Library Files Seen RON Cee OORT eT A eRe a ETAT TT eee Tp 4 3 2 CHPCON CC 2430 EXTENSIONS asns epi vedete udubiS uL EA dus M EC Ec EDEF SUN OH Md I E PDS C COMEDIT 5 3 2 1 Configuration CK aera em meee eee eet ui IM Mure E E Ea REE TEE EE TEE EE DEEE RE EEEE R RE OENE a UU 5 3 2 2 Chipcon Library Files S Scams ee at chee RE EDEN MM MED MEME DIEM ALIM D D MM DD EU Me EEE EEE N sees M NU ME 5 4 CCIIUCC2SIU LINKER FILE scsscsccsccsscnsnscssnccaccscussecstecesacosneussestewscneseasnesesewevecssseseiawesdevosseese 6 4 1 ADATA ia PTT 6 4 2 2p 7 4 2 1 Create U0 DTP 7 5 L8 G SIL 4 0398 FILE Pm 8 5 PAR uU Re qom Q 8 s Bop c 9 5 2 1 Nearcode model sirarne ee a a a e e e a a
11. TRL D 2 IAR Embedded Workbench IDE File Edit View Project Simulator Tools Window Help b e Ei i Add Files Add Group S Import File List Debug Edit Configurations Remove A Testi Create Mew Project Add Existing Project Options ALT F Source Code Control Make FF Compile CTRICEE Rebuild All Clean Batch build F8 Stop Build Debug CTRL D Make amp Restart Debugger Figure 23 Start debugger Use of the debugger is described in the IAR user manual 35 TEXAS INSTRUMENTS SWRUO38 Page 28 of 29 Tlcriveen predwets ng CO11O CC2430 002510 10 Document history Revision Date Description Changes 2006 02 16 Added CC2510 and CC1110 Changed layout 1 2 2006 01 18 Removed link to configuration files on web 2005 12 15 Initial release 35 TEXAS INSTRUMENTS SWRUO38 Page 29 of 29 IMPORTANT NOTICE Texas Instruments Incorporated and its subsidiaries Tl reserve the right to make corrections modifications enhancements improvements and other changes to its products and services at any time and to discontinue any product or service without notice Customers should obtain the latest relevant information before placing orders and should verify that such information is current and complete All products are sold subject to Tl s terms and conditions of sale supplied at the time of order acknowledgment TI warrants performance of its hardware products to the
12. address space into one continuous address range include the line below into the xcl file or insert it in the IAR IDE as shown in Figure 8 If this line is included the C Spy debugger cannot be used To generate the file setup the Project Options as shown in Figure 7 Options for node appEx ccz430 x Category Factory Settings General Options C C Compiler Output Extra Output Hdefine Diagnostics List Config Prace t Assembler Custom Build Build Actions Secondary output File Debugger Third Party Driver C Debug information for C SFY Chipeon i With runtime control modules ROM Monitar IM with I O emulation modules ple Jeice F Buffered terminal output Silabs Allow C SPr specific extra output file Simulator Other J Output format intel estended Format variant Mone Module local symbols Include all Figure 7 HEX file generation 35 TEXAS INSTRUMENTS SWRUO38 Page 12 of 29 p opes CUTITIV0EL2430 C 62510 from Texas Instruments Options for node appEx ccz43U0 a X Category Factory Settings General Options C C Compiler define Diagnostics List Config Processing Extra Options Assembler Custom Build v Use command line options Build Actions Command line options fone per line Debugger M CODE CODEBANE START FIRST BANK ADDRE CODE Third Party Driver Lhipcan HUMM Marnibar Analog Devices Silab
13. de Bank Output Library C_4 t Dernvative informatian Custom Build Buld Antion Derivative CC2430 EET CPU core Plain Debugger Third Party Driver Chipcon Lode model Do not use extended stack FOM Monitor Banked c Extended stack at 0 002000 Analog Devices Data model Calling convention Silab Simulator Large KDATA stack reentrant Location for constants and stings Number of virtual registers a m BAM ilie UM mapped as data C CODE memory Figure 16 Target Code Model Banked The settings in Figure 17 are only available when Code Model Banked is active Options for node Testi E x Category General Options E C Compiler j Target Data Pointer Arithmetic Unit Code Bank Output Library C_4 Assembler x Build Register address Jax uid Achons Linker Benatar 08000 Debugger Third Party Driver Bank end JOxFFFF Chipeon AO M Monitor Analog Devices Figure 17 Code Bank 35 TEXAS INSTRUMENTS SWRUO38 Page 23 of 29 p opes CUTITIV0EL2430 C 62510 from Texas Instruments 9 2 3 Linker Choose correct linker file see chapter 4 as Linker command file Code Model Ink51ew cc2430 xcl Ink51ew cc2430b xcl Table 4 Linker files Options for node Testi i j x EL Factor Settings General Options C C Compiler Output Extra Output Hdefine Diagnostics List Contig Proce t Assembler Linker command file Custom Build v Override
14. func int main void int a g int b f return O j Both f and g will be placed in code segment named BANK1 The main routine will be placed in BANK 1 by default To place main or some other routines in bank 0 use the keyword near func as indicated in the listing above The linker file for CC2430 F128 defines BANK1 BANK2 and BANKS Note There is no banking for the CCxx10 as they only have 32 kB code memory size 7 2 Variables Absolute placement of variables is described below no init int myArray 128 PMO XDATA no init int mylnteger OxEO00 PMO XDAT is defined in the linker file This is the address space from OxEOO00 to OxEFFF It is necessary to explicitly define variables to be located in this area if variables are placed by default they will be located in address range OxFO000 to OxFD57 35 TEXAS INSTRUMENTS SWRUO38 Page 15 of 29 C pe CUTITIV0EL2430 C E2510 from Texas Instruments 8 CC2430 IEEE address When delivered in a kit each CC2430 has an IEEE address stored in code memory The segment is defined to be the last eight byte on the last flash page Table 3 gives the address Chip Code model Physical IAR Linker Address Address CC2430 F32 Ox07FF8 Ox07FF8 CC2430 F64 OxOFFF8 OxOFFF8 CC2430 F128 OxOFFF8 OxOFFF8 CC2430 F128 Ox1FFF8 Ox3FFF8 Table 3 IEEE address space The linker file defines a segment for the IEEE address named IEEE ADDRESS SPACE
15. hardware breakpoints To free this breakpoint include the file below in the project e Chipcon cexit s51 To use banked code model the following files have to be included in the project they will overwrite the files that are included by default in the IAR library e Chipcon cstartup s51 e Chipcon banked code support s51 Note Add TOOLKIT_DIR SRC LIB to Options gt Assembler gt Additional include directives 35 TEXAS INSTRUMENTS SWRUO38 Page 5 of 29 C pe CUTITIV0EL2430 C625 10 from Texas Instruments 4 CC1110 CC2510 Linker File There is one linker file for the CC2510 and one for CC1110 4 1 XData RAM The linker files set up 4k of XData RAM The range from OxFDAA OxFEFF is used to store register values during power mode PM 2 and 3 Hence any data stored here before entering PM 2 3 will be lost If PM 2 3 is not used the entire range from OxFO000 OxFEFF can be used safely The XData RAM memory map in Figure 3 is reflected in the linker file OxFFFF OxFFOO OxFEFF IData Lose data in PM2 3 OxFDAA OxFDA9 Retain data in all PM OxF000 Figure 1 XData RAM Memory Figure 3 shows how XData is organized To place variables in the memory space which is not retained will have to be explicitly located in that memory segment see chapter 7 1 Note If your application is not using PM2 PM3 you can change the linker file to use the full XData memory Change the line be
16. itations and notices Reproduction of this information with alteration is an unfair and deceptive business practice Tl is not responsible or liable for such altered documentation Resale of TI products or services with statements different from or beyond the parameters stated by TI for that product or service voids all express and any implied warranties for the associated TI product or service and is an unfair and deceptive business practice TI is not responsible or liable for any such statements Following are URLs where you can obtain information on other Texas Instruments products and application solutions Products Applications Amplifiers amplifier ti com Audio www ti com audio Data Converters dataconverter ti com Automotive www ti com automotive DSP dsp ti com Broadband www ti com broadband Interface interface ti com Digital Control www ti com digitalcontrol Logic logic ti com Military www ti com military Power Mgmt power ti com Optical Networking www ti com opticalnetwork Microcontrollers microcontroller ti com Security www ti com security Telephony www ti com telephony Video amp Imaging www ti com video Wireless www ti com wireless Mailing Address Texas Instruments Post Office Box 655303 Dallas Texas 75265 Copyright 2006 Texas Instruments Incorporated
17. library cexit will by default occupy one of the four hardware breakpoints To free this breakpoint include the file below in the project e Chipcon cexit s51 Note Add TOOLKIT_DIR SRC LIB to Options gt Assembler gt Additional include directives 35 TEXAS INSTRUMENTS SWRUO38 Page 4 of 29 Chipcon Products CETITIVEEL2430 C 52510 c bos Texas Instruments 3 2 Chipcon CC2430 Extensions 3 2 1 Configuration Files CC2430 has five configuration files associated These files are installed with IAR Workbench The configuration files are located according to Table 2 Filename Locaion Descripion CC2430 i51 C Program Files IAR Systems Embedded Setup some parts of an 4 058051 config derivatives Wchipcon CC2430 ddf C Program Files IAR Systems Embedded Describe each register Workbench used in the debugger 4 05 8051 config derivatives chipcon Workbench 4 05 8051 config CC2430 Ink51ew cc2430b xcl C Program Files IAR Systems Embedded Set up the linker to reflect Workbench 4 05 8051 config CC2430 with banked code model Workbench 4 05 8051 inc Table 2 Configuration files 3 2 2 Chipcon Library Files Some of the functions in the library included with IAR Workbench cannot be used with CC2430 The files which are described here are part of the Chipcon library and can be downloaded from www chipcon com In the IAR standard library cexit will by default occupy one of the four
18. low in Ink51ew_cc1110 xcl or Ink5b1ew cc2510 xcl From D IXDATA END FDA9 To D IXDATA END FEFF 35 TEXAS INSTRUMENTS SWRUO38 Page 6 of 29 C peon Product 6C1110 CC2430 CC2510 from Texas Instruments 4 2 Code The CCxx10 has 32 kB of code memory This is reflected in the linker file the following way D_CODE_START 0x0000 D_CODE_END 0x7FFF 32KB code 4 2 1 Create HEX file To generate a hex file that can be downloaded to the CCxx10 by the Chipcon Flash Programmer setup the Project Options as shown in Figure 7 Options for node appEx ccz430 x Category Factory Settings General Options C C Compiler Output Extra Output Hdefine Diagnostics List Config Prace t Assembler Custom Build Build Actions Secondary output file Debugger Third Party Driver C Debug information for C SFY Chipcon jv Wwith runtime eantralimadules FUM Maonitor jv vith o emulation modules Analog Devices Slabs Simulator Buffered terminal output Allow SPy specific extra output file Other 3 Output Format intel estended Format variant None Module local symbols Include all Figure 2 HEX file generation 35 TEXAS INSTRUMENTS SWRUO38 Page 7 of 29 C metti cer CETITIVCEL2430 C E2510 from Texas Instruments 5 CC2430Linker File CC2430 is delivered in three different versions CC2430 F32 CC2430 F64 and CC2430 F128 There are two linker files for CC2430
19. n a a eat 10 dod d HIDE GOUE IOJEI as RE Rea EE E MIA Iu M M dE E Il 5 2 3 Credle SPP TTC a E A E e HH ance teconn tee 12 6 DEBUGGER sirnani aa 14 7 ABSOLUTE PLACEMENT OF CODE AND VARIABLES eee e eee eee eere e eene ten 15 7 1 COD cede ee 15 72 N ESSE ERNEUT m 15 8 COT ASO IEEE ADDRESS ter 16 8 1 IO Rs I ADDERE S Sorire r AN Era A AEEA N EEEE iam ENEA EE SEA EA 16 8 2 REDAN ADD stn cen ts te ssa AE A E AA AET ATAN 16 9 TUTOR a E 18 9 1 CPEATL ANEN PPO IMs eem 18 9 2 PTN a A Te eo A ne 19 9 2 1 General Options Code Model Near Applies also to CCxx10 sse eene enne eene nnne enn 20 9 2 2 General Options Code Model Banked Does not apply to CCxx10 sss eene eene 23 9 2 3 TOW TCHH 24 D MEE o RNC 25 9 3 CLOD OUR CE TIL uena E AA A A AATA N 26 9 4 COMPIL AND LINE sic E Aa AES E AN AA E ERE 27 9 5 BEDUG aaa A EA EAA A ENA 28 10 DOCUMENT HISTORY cesedi estt etes munus neds ences AAA EAEN da sr EEAS Ei 29 X3 TEXAS INSTRUMENTS SWRU038 Page 2 of 29 C pe CETITIVEL2430 C 02510 from Texas Instruments 1 Introduction This manual is written to clarify some aspects that have to be taken into consideration when working with CC2430 CC2510 or CC 1110 together with the IAR Workbench The CC2431 is in most of the aspect
20. near code model and banked code model is presented The tutorial shows only screen shots from settings which need to be changed 9 1 Create a new project To quickly create a CC2430 application Chipcon recommends that the user begins by creating a software project From the Project menu choose Create New Project IAR Embedded Workbench IDE File Edit View Project Tools Window Help EE m ii Add Files dd Group Workspace Import File List Edit Gonkigurations Files Remove Create Mew Project Add Existing Project Options ALTE Source Code Control k Make FY iampile CTRL FY Rebuild all alean Batch build Fa Stop Build Debug CTRL D Make amp Restart Debugger Figure 10 Create New Project Choose Empty project and press OK 35 TEXAS INSTRUMENTS SWRUO38 Page 18 of 29 C Ghincon Product COTITO DD2430 002510 from Texas Instruments Create New Project Tool chain a05 M Project templates E E asm E C Description Creates an empty project Cancel Figure 11 Choose Project Type E m kto p My Docu ments hy LEN Min l m Las File name resti ra Aol w Save as type Project Files e amp wp Cancel My M elu ork P Figure 12 Save Project Give the new project a name and press Save 9 2 Options To set up the project for use with CC2430 choose Options from the Project menu 35 TEX
21. s described in this manual equal to CC 2430 and will not be mentioned explicit CC2431 is only delivered with a flash size of 128 kB Every configuration file available for CC2430 is also available for CC2431 2 Definitions CC2430 F32 CC2430 with 32KB FLASH CC2430 F64 CC2430 with 64KB FLASH CC2430 F128 CC2430 with 128KB FLASH CCxx10 Refers to either CC2510 or the CC1110 LL 35 TEXAS INSTRUMENTS SWRUO38 Page 3 of 29 C pe CUTITIV0EL2430 C E2510 from Texas Instruments 3 installation Install the IAR Embedded Workbench as described in the IAR User Manual 3 1 Chipcon CC1110 CC2510 Extensions 3 1 1 Configuration Files C2510 CC1110 has 4 configuration files associated For CC2510 these files are installed with IAR Workbench for CC1110 they can be downloaded from our web site The configuration files should be located according to Table 2 Filename Location Description CCxx10 i51 C Program Files IAR Systems Embedded Setup some parts of an Workbench 4 05 8051 config derivatives chipcon IAR Project COxx10 ddf C Program Files IAR Systems Embedded Describe each register Workbench 4 05 8051 config derivatives chipcon used in the debugger cl Workbench 4 05 8051 config CCxx10 Workbench 4 05 8051 inc Table 1 Configuration files 3 1 2 Chipcon Library Files The files which are described here are part of the Chipcon library and can be downloaded from www chipcon com In the IAR standard
22. se one data pointer It s important to set DPTR select to Set using XOR AND even if only one DPTR is in use Options for node Testi X Category General Uptions C C Compiler Target Data Pointer Arithmetic LInit Code Bank Output Library C_4 Assembler Custom Build Number of DOPTA 1 Build Actions Hae Per Linker Select register E Deb ed 24 bit Third Party Driver C Toggle using INE Chipcon Set using K R AND FAOM Monitar Analog Devices f Shadowed Mask 000 Silabs C Separate Simulator Configure Figure 14 Data Pointer 35 TEXAS INSTRUMENTS SWRUO38 Page 21 of 29 C hivcon Products CC1110 CC2430 CC2510 from Texas Instruments Change XDATA stack size to 0x1FF Options for node Test1 General Options L C Compiler Assembler Custom Build Build Actions Linker Debugger Third Party Driver Chipcorn HUM hMaenitar Analog Devices Silabs Simulator Extended Figure 15 Stack Heap settings TEXAS INSTRUMENTS SWRUO38 Page 22 of 29 C pen CETITIVEL2430 C 02510 from Texas Instruments 9 2 2 General Options Code Model Banked Does not apply to CCxx10 Note Remember to include Chipcon_cstartup s51 and Chipcon banked code support s51 chapter 3 2 2 when using code model banked Options for node Testi i f x Category General Options LL Compiler Assembler Target Data Pointer Arithmetic Unit Co
23. ulator Tools Window Help Mew CTRL M Open j Workspace Close pnt I Figure 20 Create new source file Edit the file and save it into your project directory To add this or another file to your project choose Project gt Add files Locate correct file and click Open LAR Embedded Workbench IDE File Edit View Project Simulator Tools Window Help Add Files Add Group Import File List Edit Configurations Remove A Testi Create Mew Project Figure 21 Add files to project 3X5 TEXAS INSTRUMENTS SWRU038 Page 26 of 29 C hipcon Product CETIIO C62430 062510 from Texas Instruments 9 4 Compile and Link To compile and link you project choose Make from the Project menu or press F7 YF LAR Embedded Workbench IDE File Edit View Project Simulator Tools Window Help e i ii Add Files Y Add Group War ks pace Import File List Debug Edit Configurations Remove E Testi Create Mew Project Add Existing Project Options ALT F Source Code Control ERL HEF Compile Rebuild All Clean Batch build Fa Stop Build Debug CTRL O Make amp Restart Debugger Figure 22 Compile and Link 35 TEXAS INSTRUMENTS SWRUO38 Page 27 of 29 C hiecon Product CC1110 CC2430 CC2510 from Texas Instruments 9 5 Debug Start the debugger with Debug from the Project menu or press C
Download Pdf Manuals
Related Search
Related Contents
MANUEL D`INSTRUCTIONS @ ー1 取扱説明書 Samsung SyncMaster コテライザー オートミニ 91 取扱説明書 OM, R52 S, R52E, 2004-01, EN, DE, FR, ES, IT, NL Gama Snack CP 40 Manual de Instalación, Uso y Mantenimiento. 全国ネットワーク拠点 - 株式会社JM なおしや又兵衛 User Manual 取扱説明書 - アルファックス・コイズミ Copyright © All rights reserved.
Failed to retrieve file