在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
|