解决IAR FLASH 溢出问题,以及代码量缩减问题
使用过程中出现以下报错:
Error[e16]: Segment NEAR_ID (size: 0x15 align: 0) is too long for segment definition. At least 0xb more bytes needed. The problem occurred while processing the
segment placement command “-Z(CODE)TINY_ID,NEAR_ID=…X_INTVEC_SIZE-…X_FLASH_END”, where at the moment of placement the available memory
ranges were “CODE:ff6-fff”
解决方案:
第一步右键点击代码工程,再点击option

第二步点击option->General Options,选择好芯片型号,再点击large

第三步点击C/C++ compiler中的optimizations 选择high

执行以上步骤,基本均可以解决,有兴趣交流可加

本文介绍了解决IAR Flash溢出问题的方法,通过调整工程设置,包括选择正确的芯片型号、启用大内存模式及提高编译优化等级,有效解决了代码段溢出的问题。
298

被折叠的 条评论
为什么被折叠?



