请教如何设置 IAR中的NEAR_I Segment 的大小?
我是用IAR For AVR 5.11B版,在链接时出现以下错误提示:
Error[e16]: Segment NEAR_I (size: 0xdb0c align: 0) is too long for segment definition. At least 0xcb4c more bytes needed. The problem
occurred while processing the segment placement command
"-Z(DATA)NEAR_I,NEAR_Z=_..X_SRAM_BASE-_..X_SRAM_END,_..X_EXT_SRAM_BASE:+_..X_EXT_SRAM_SIZE", where at the
moment of placement the available memory ranges were "DATA:140-10ff,DATA:10ff--1"
Reserved ranges relevant to this placement:
DATA:100-11f CSTACK
DATA:120-13f RSTACK
DATA:140-10ff NEAR_I
请问是否有人知道如何解决此问题?
我刚开始学用IAR,很多都不知该如何设置,查help感觉又没有Keil之类写的清楚,(可能是我查的方法不对),请高手指教!
另:
请问:如何把数据保存在ROM区,而不占用RAM空间?
将数据定义在ROM是用__flash,注意是:两个“_”;
现在的问题是:如何设置 NEAR_I 大小?