加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

cc2531 smartrf flash programmer hex file content exceeds chi

发布时间:2020-12-15 17:36:25 所属栏目:百科 来源:网络整理
导读:?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就可以了,

?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:..ProjectszstackSamplesGenericAppCC2530DBCoordinatorEBExe

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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读