|
单片机:ATmega64
编程软件:IAV for AVR
出现的问题:
Building configuration: Lcd & Key control board V1 - Debug
Updating build tree...
Linking
Error[e16]: Segment NEAR_I (size: 0x115c align: 0) is too long for segment definition. At least 0x19c 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
Total number of errors: 1
Total number of warnings: 0
我各个c文件单独编译都没问题
分析:我这个程序是LCD菜单程序,所以用的取模数组比较多,占了很大的内存,看到网上有说修改下图“修改软件参数1”,我就进行了修改,可是改来该去还是有错误,之后又看到说字模数组定义加const,加上去之后发现还是没有消除错误,请大神们帮个忙分析一下,如何修改才能使字模数组存到flash中啊
|
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有帐号?注册
x
阿莫论坛20周年了!感谢大家的支持与爱护!!
知道什么是神吗?其实神本来也是人,只不过神做了人做不到的事情 所以才成了神。 (头文字D, 杜汶泽)
|