cc2531 smartrf flash programmer hex file content exceeds chips 256kB flash size

 edit the f8w2530.xcl,

uncomment these two lines:

-M(CODE)[(_CODEBANK_START+_FIRST_BANK_ADDR)-(_CODEBANK_END+_FIRST_BANK_ADDR)]*\

_NR_OF_BANKS+_FIRST_BANK_ADDR=0x8000

在project>=options>=linker>=format选择Debug information for C-SPY就可以了,如果要用SmartRF Flash programmer下载程序就要选在Other。

2010-09-09 18:42

如何配置IAR for 8051为CC2530产生HEX文件

这是从TI论坛里面得到的,如何配置 IAR FOR 8051 为CC2530 Z-STACK产生HEX文件。具体内容如下:

The following steps describe how to configure the IAR EW8051 to generate a hex file forCC2530 when using the banked code model for the Z-Stack by using theZ-stack project GenericApp as an example.

Environment: ZigBee Z-stack 2.2.0, CC2530, IAR EW 8051 7.51A

Step 1: Openthe Z-stack workspace with IAR and locate the linker filef8w2530.xcl.

The f8w2530.xcl file can be found in the Tools file groupin IAR.

Step 2:Include the linker file –M option by including the 3 lines as shown in thefigure below.

Lines to include:

-M(CODE)[(_CODEBANK_START+_FIRST_BANK_ADDR)(_CODEBANK_END+_FIRST_BANK_ADDR)]*\

_NR_OF_BANKS+_FIRST_BANK_ADDR=0x8000

-ww69=i

Note that for IAR 7.51A (and later versions) these 3lines can stay included also when generating debug files. This was not the casefor earlier versions.

The –M linker option is used to convert banked codememory layout used internally by the IAR C-SPY debugger to the physical memorylayout used in the Intel hex file.

Step 3: Openthe Project options and click the Linker tab


Step 4: Clickthe “Override default” option in the “Output file” box and rename theGenericApp.a51 to GenericApp.hex

Select the “Other” button in the “Format” box. Choose“Output format”: intel-extended

Step 5: It isimportant to check that the correct linker configuration file (*.xcl) is used.The linker file is selected in the “Linker” -> “Config” tab




Step 6: When the IAR project is built the hex file will be generated andplaced in the folder specified as output directory for executables. This isspecified in IAR EW 8051 under “Project” -> “Options” -> “GeneralOptions” -> “Output” in the “Executables” tab.

For the chosen Z-stack example this folder is:..\Projects\zstack\Samples\GenericApp\CC2530DB\CoordinatorEB\Exe

Step 7: Nowyou are done and the device can be programmed with this hex file for exampleusing the SmartRF Flash programmer tool

 

 

 

 


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值