一、参考链接:
厉害了,我是链接,快点我
厉害了,我的哥,我也是参考链接,快快点宝宝
二、问题:
IAR For 8051 9.20.2点击低版本的IAR for 8051 7.40的Project时候,会出现以下问题。
三、现象:
Error[e16]: Segment ISTACK (size: 0xc0 align: 0) is too long for segment definition. At least 0x7 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:47-ff"
Reserved ranges relevant to this placement:
IDATA:8-1f VREG
IDATA:21-3f VREG
IDATA:40-41 XSP
IDATA:42-42 DATA_I
IDATA:43-44 DATA_Z
IDATA:45-46 IDATA_Z
IDATA:47-ff ISTACK
BIT:0-7 BREG
BIT:80-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
四、修改:
点击Project -> Option -> General Option -> Target Tab
修改 : Number of virtual registers, from 16 –> 8.