[AVR单片机] Atmega16问题?

[复制链接]
 楼主| qazplm3218 发表于 2014-6-17 08:55 | 显示全部楼层 |阅读模式
加了15个左右1,6*16的字库,编译成功!

ROM 13% full. 2004 out of 16384 bytes used.
  RAM 992 bytes used (does not include stack usage).
Built with ICCAVR PRO V8.04.01
Process terminated with status 0 (0 minutes, 0 seconds)
0 errors, 0 warnings

但是在多加一个字库的代码,就显示:

Build: default in Test ---------------

iccavr.exe -LC:\iccv8avr\lib -o ..\Test\Test .objs\main.o .objs\lcd.o -cross_module_type_checking -g -e:0x4000 -ucrtatmega.o -bfunc_lit:0x54.0x4000 -dram_end:0x45f -bdata:0x60.0x45f -dhwstk_size:20 -beeprom:0.512 -fihx_coff -S2 -nb:13 -lcatmega
!E <library>(44): {linker} area 'noinit' not large enough. Need 0 bytes
lo 1120 hi 1119 size 0
!E <library>(44): {linker} area 'bss' not large enough. Need 0 bytes
lo 1120 hi 1119 size 0
Built with ICCAVR PRO V8.04.01
iccavr.exe: 'C:\iccv8avr\bin\ilinkavr.exe' returns error code -1
Process terminated with status -1 (0 minutes, 0 seconds)
2 errors, 0 warnings


不知道是什么原因,要怎么解决????





 楼主| qazplm3218 发表于 2014-6-17 08:57 | 显示全部楼层
16*16的字库
wangch_sh 发表于 2014-6-17 09:51 | 显示全部楼层
RAM空间溢出了?
 楼主| qazplm3218 发表于 2014-6-17 10:22 | 显示全部楼层
是啊,总共才20个16*16的字库,怎么就溢出了呢??
字库定义:const uchar HANZI1[]={};
我用的是AVR ICC8.04编辑器。。不知道有没有问题??
ningling_21 发表于 2014-6-17 11:03 | 显示全部楼层
RAM不够了,为何不把字库定义到ROM中呢
 楼主| qazplm3218 发表于 2014-6-17 11:20 | 显示全部楼层
怎么样才能把字库定义到ROM??
 楼主| qazplm3218 发表于 2014-6-17 11:36 | 显示全部楼层
__flash uchar HANZI1[]={};
字库定义到ROM,没问题
 楼主| qazplm3218 发表于 2014-6-17 14:03 | 显示全部楼层
字库定义:const uchar HANZI1[]={};
在PIC单片机上怎么都没问题的??PIC单片机的RAM容量也一样的啊
zhl100 发表于 2014-6-17 15:52 | 显示全部楼层
八层是iccavr工程设置问题   
堆栈设置大点
 楼主| qazplm3218 发表于 2014-6-17 16:10 | 显示全部楼层
那应该怎么设置呢??,请指教。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

26

主题

70

帖子

1

粉丝
快速回复 在线客服 返回列表 返回顶部

26

主题

70

帖子

1

粉丝
快速回复 在线客服 返回列表 返回顶部