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

worldsing 2013-07-30 09:55 原文

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容量;

解决办法:优化代码

推荐阅读