IAR10.10.1编译8.1版本ZigBee工程时报错解决方法 :
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:39edd-39eff”
打开
D:\Projects\zstack\Tools\CC2530DB\f8w2530.xcl找到如下代码。
-D_RAM_CODE_FLASH_START=0x39EDD
-D_RAM_CODE_FLASH_END=(_RAM_CODE_FLASH_START+0x22)
根据提示将 0x22 改成0x27大小,重新Rebuild All。