IAR 编译错解决Error[e16]: Segment NEAR_Z (size: 0x16d align: 0) is too long for segment definition. At least 0x83 more bytes needed.

Error[e16]: Segment NEAR_Z (size: 0x16d align: 0) is too long for segment definition. At least 0x83 more bytes needed. 

The problem occurred while processing the segment placement command 

"-Z(DATA)NEAR_I,NEAR_Z,NEAR_N=_..X_SRAM_BASE-_..X_SRAM_END", where at the moment of placement the 

available memory ranges were "DATA:376-45f"

Reserved ranges relevant to this placement:

DATA:60-7f           CSTACK

DATA:80-9f           RSTACK

DATA:a0-45f          NEAR_I

Error while running Linker

 

主要原因是:RAM的使用容量超出芯片的RAM容量;

解决办法:优化代码

上一篇:【转】第5篇:Xilium CefGlue 关于 CLR Object 与 JS 交互类库封装报告:自动注册JS脚本+委托回调方法分析


下一篇:DOM4J方式解析XML文件