打印
[AVR单片机]

Atmega16问题?

[复制链接]
2433|9
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
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编辑器。。不知道有没有问题??

使用特权

评论回复
5
ningling_21| | 2014-6-17 11:03 | 只看该作者
RAM不够了,为何不把字库定义到ROM中呢

使用特权

评论回复
6
qazplm3218|  楼主 | 2014-6-17 11:20 | 只看该作者
怎么样才能把字库定义到ROM??

使用特权

评论回复
7
qazplm3218|  楼主 | 2014-6-17 11:36 | 只看该作者
__flash uchar HANZI1[]={};
字库定义到ROM,没问题

使用特权

评论回复
8
qazplm3218|  楼主 | 2014-6-17 14:03 | 只看该作者
字库定义:const uchar HANZI1[]={};
在PIC单片机上怎么都没问题的??PIC单片机的RAM容量也一样的啊

使用特权

评论回复
9
zhl100| | 2014-6-17 15:52 | 只看该作者
八层是iccavr工程设置问题   
堆栈设置大点

使用特权

评论回复
10
qazplm3218|  楼主 | 2014-6-17 16:10 | 只看该作者
那应该怎么设置呢??,请指教。。

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

26

主题

70

帖子

1

粉丝