打印
[程序源码]

ICC编译的问题,选ATtiny13 编译无法通过,选ATmage16 编译就通过

[复制链接]
1755|1
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
地方女大夫|  楼主 | 2013-8-17 17:20 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
在Project->Option->Target选项卡中选ATtiny13 编译无法通过,好像说是程序空间不够,但我看需要的空间只要948字节,为啥会通不过呢?而选ATmage16  编译就通过。

C:\iccv7avr\bin\imakew -f CHUANG.mak
    iccavr -o CHUANG -g -e:0x0400 -bfunc_lit:0x14.0x400 -dram_end:0x9f -bdata:0x60.0x9f -

dhwstk_size:30 -beeprom:0.128 -fihx_coff -S2 @CHUANG.lk   -lstudio
!E <library>(62): area 'text' not large enough
want size 948
lo 94 hi 1024 size 931
!E chuang.o(270): Code address 0:0x1c already contains a value
!E chuang.o(270): Code address 0:0x1d already contains a value
!E chuang.o(270): Code address 0:0x1e already contains a value
!E chuang.o(270): Code address 0:0x1f already contains a value
!E chuang.o(270): Code address 0:0x20 already contains a value
!E chuang.o(270): Code address 0:0x21 already contains a value
!E chuang.o(270): Code address 0:0x22 already contains a value
!E chuang.o(270): Code address 0:0x23 already contains a value
!E chuang.o(270): Code address 0:0x24 already contains a value
!E chuang.o(270): Code address 0:0x25 already contains a value
C:\iccv7avr\bin\imakew.exe: Error code 1
Done: there are error(s). Exit code: 1. Sat Aug 17 08:21:49 2013


ATmage16  编译就通过。
C:\iccv7avr\bin\imakew -f CHUANG.mak
    iccavr -c -e -D__ICC_VERSION=722 -DATMega16  -l -g -MLongJump -MHasMul -MEnhanced -Wf-

const_is_flash -DCONST=""  ..\..\..\DOCUME~1\Administrator\MYDOCU~1\chuang.c
    iccavr -o CHUANG -g -e:0x4000 -ucrtatmega.o -bfunc_lit:0x54.0x4000 -dram_end:0x45f -

bdata:0x60.0x45f -dhwstk_size:30 -beeprom:0.512 -fihx_coff -S2 @CHUANG.lk   -lstudio -lcatmega
Device 7% full.
Done. Sat Aug 17 12:57:16 2013

相关帖子

沙发
wangch_sh| | 2013-8-29 16:47 | 只看该作者
初始化问题吧。

使用特权

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

本版积分规则

3

主题

9

帖子

0

粉丝