IAR 编译 ZStack-CC2530生成 HEX 文件完全配置

来源:互联网 发布:cloudstack基本网络 编辑:程序博客网 时间:2024/05/05 21:59

1.正确配置输出文件格式:菜单选择 Project-Options-Linker-Output-Format,选择 Other。右边的 Output 下拉框 选 intel-extended,Format variant下拉框选 None,Module-local 下拉框选 Include all
2.还是在菜单 Project-Options-Linker-Output 标签中,勾上 Override default 选项,把编辑框中的文件名的后缀改为 hex以上两步都是大多数人熟知的,下面这一步是针对大型程序编译下载所必须的,也是大部分写 zstack 教程的人所没有提到的。
3.找到 f8w2530.xcl 文件,并打开。(这个文件在”Projects/zstack/Tools/CC2530DB/”目录下,也可以通过 IAR 编 译环境的左侧Workspace 窗口点开 Tools 文件夹看到)在 f8w2530.xcl 文件中找到两行被注释掉的语句:
这里写图片描述
把这两行前面的”//”去掉,保存,重新编译,OK!
注:去掉这两行的”//”后在编译输出成 hex 格式时没有问题,但在 debug 模式下编译会提示警告:Warning[w69]: Address translation (-M, -b# or -b@)has no effect on the output format ‘debug’. The output file will begenerated but noaddress translation will be performed. 不过并不会影响debug 调试的使用。也许正是为了屏蔽掉此条警告,所以 TI 在发布 Zstack 时选择了默认为 debug 模式才注释掉了这两行指令,但在 编译 hex 时却又不提示任何警告和错误。

阅读全文
0 0