解决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
执行以上步骤,基本均可以解决,有兴趣交流可加