IAR for 8051 版本兼容解决办法

IAR for 8051 版本兼容解决办法


———————————————————————————————————————————————————

低版本向高版本移植

随着Z-Stack 3.0.1的推出IAR IDE的版本也不断更新,目前官方介绍Z-Stack 3.0协议栈需要IAR EW8051-10101以上版本。很多朋友在PC机安装两个不同的版本来支持ZStack-CC2530-2.5.1a和 Z-Stack 3.0.1不同版本的协议栈。今天给大家介绍解决兼容的办法。

第一步

安装IAR EW8051-10101以上版本后直接编译源码(安装方法本文不做介绍)
编译报错信息如下截图:
在这里插入图片描述

Error[e16]: Segment ISTACK (size: 0xc0 align: 0) is too long for segment definition. At least 0xe more bytes needed. The problem occurred while processing the segment placement command

“-Z(IDATA)ISTACK+_IDATA_STACK_SIZE#08-_IDATA_END”, where at the moment of placement the available memory ranges were “IDATA:4e-ff”

方法

  1. 右击->Options -> Number of virtual: == 将16改为8==
  2. 替换C:\Texas Instruments\ZStack-CC2530-2.5.1a\Projects\zstack\ZMain\TI2530DB下的chipcon_cstartup.s51文件
    文件下载
    在这里插入图片描述
  3. 再次点击 rebuild all 提示如下错误信息

第二步

在这里插入图片描述

Error[e16]: Segment RAM_CODE_FLASH (size: 0x27 align: 0) is too long for segment definition. At least 0x4 more bytes needed. The problem occurred
while processing the segment placement command “-Z(CODE)RAM_CODE_FLASH=_RAM_CODE_FLASH_START-_RAM_CODE_FLASH_END”, where at the moment of placement the
available memory ranges were “CODE:39ddd-39dff”

方法
根据上面说的,RAM_CODE_FLASH需要再扩大至少4个字节

  • 打开Tool-fw82530.xcl文件,将RAM_CODE_FLASH_END的值再增大至少0x4, 将0x22改为0x26
    如下:
-D_RAM_CODE_FLASH_START=0x39DDD
-D_RAM_CODE_FLASH_END=(_RAM_CODE_FLASH_START+0x26)

再次rebuild all即可消除错误

EW8051-10101 下载
提取码:7xwl

Error [e183]

Linking
Error[e183]: Static overlay map generation (-xo) is not supported for the MSP430 processor.
Error while running Linker

解決方法
In IAR EW430, go to Project -> Options -> Category: Linker -> Tab: List. Uncheck the Static Overlay Map checkbox.

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

「Thunder Studio」

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值