打印
[AVR单片机]

ICCAVR编译出错如何处理

[复制链接]
2089|1
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
lnww|  楼主 | 2012-3-8 13:52 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
我用ICCAVR编译AVR单片机程序  出现下面的提升错误  该如何处理
C:\iccv7avr\bin\imakew -f CZT_8F.mak
    iccavr -c -e -D__ICC_VERSION=722 -DATMega162  -l -g -MLongJump -MHasMul -MEnhanced  main.c
    iccavr -o CZT_8F -g -e:0x4000 -ucrtatmega.o -bfunc_lit:0x70.0x4000 -dram_end:0x4ff -bdata:0x100.0x4ff -dhwstk_size:30 -beeprom:0.512 -fihx_coff -S2 @CZT_8F.lk   -lcatmega
!E <library>(57): area 'text' not large enough
want size 14618
lo 3158 hi 16384 size 13227
!E main.o(3612): Code address 0:0x1e0 already contains a value
!E main.o(3612): Code address 0:0x1e1 already contains a value
!E main.o(3612): Code address 0:0x1e2 already contains a value
!E main.o(3612): Code address 0:0x1e3 already contains a value
!E main.o(3612): Code address 0:0x1e4 already contains a value
!E main.o(3612): Code address 0:0x1e5 already contains a value
!E main.o(3612): Code address 0:0x1e6 already contains a value
!E main.o(3612): Code address 0:0x1e7 already contains a value
!E main.o(3612): Code address 0:0x1e8 already contains a value
!E main.o(3612): Code address 0:0x1e9 already contains a value
C:\iccv7avr\bin\imakew.exe: Error code 1
Done: there are error(s). Exit code: 1. Thu Mar 08 13:17:32 2012
谢谢回复

相关帖子

沙发
lnww|  楼主 | 2012-3-11 12:17 | 只看该作者
已经解决
这是改原来别人的程序  许多相同的代码片段按顺序重复写。改成子程序的形式进行调用后就没有编译错误了

使用特权

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

本版积分规则

52

主题

104

帖子

1

粉丝