Z-Stack Home 1.2.1编译问题
本人用的IAR 8.20版本,DEVICE选择的是CC2530F256。XDATA默认设置的是0xEFF。linker默认设置是:$PROJ_DIR$\..\..\..\Tools\CC2530DB\f8w2530.xcl
编译出错如下:急求大神!
Error[e16]: Segment XDATA_I (size: 0x4c4 align: 0) is too long for segment definition. At least 0x1cf more bytes needed. The problem occurred while processing the segment placement command "-Z(XDATA)XDATA_Z,XDATA_I=_XDATA_START-_XDATA_END", where at the moment of placement the available memory ranges were "XDATA:1c0b-1eff"
Reserved ranges relevant to this placement:
XDATA:1-eff XSTACK
XDATA:f00-1eff XDATA_Z
BIT:0-7 BREG
BIT:80-87 SFR_AN
BIT:90-97 SFR_AN
BIT:a0-af SFR_AN
BIT:b8-c7 SFR_AN
BIT:e8-ef SFR_AN
BIT:f8-ff SFR_AN
Error while running Linker
Total number of errors: 1
Total number of warnings: 2
然后将XDATA设置为0x1FF,报错如下:
Error[e104]: Failed to fit all segments into specified ranges. Problem discovered in segment XDATA_N. Unable to place 2 block(s) (0xc02 byte(s) total) in 0xb31 byte(s) of memory. The problem occurred while processing the segment placement command "-P(XDATA)XDATA_N=_XDATA_START-_XDATA_END", where at the moment of
placement the available memory ranges were "XDATA:13cf-1eff"
Error while running Linker
Total number of errors: 1
Total number of warnings: 2
前前后后将stack设置来设置去,从来没有编译通过,请高人指点,谢谢!
应该是内存空间不足了。您是不是定义了大数组?
可以先看一下以前的帖子 http://www.deyisupport.com/question_answer/wireless_connectivity/f/45/t/16467.aspx
我自己没有定义大数组,原工程,原代码,没改动。还望继续指点,谢谢拉