[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] Re: internal error: out of range error (Erik Christiansen
From: |
Dafni & Robert Berger |
Subject: |
[avr-gcc-list] Re: internal error: out of range error (Erik Christiansen) |
Date: |
Wed, 8 Sep 2004 07:00:41 +0300 |
Date: Mon, 6 Sep 2004 14:35:20 +1000
From: Erik Christiansen <address@hidden>
To: Dafni & Robert Berger <address@hidden>
Cc: address@hidden
Subject: Re: [avr-gcc-list] internal error: out of range error
Message-ID: <address@hidden>
Content-Type: text/plain; charset=us-ascii
MIME-Version: 1.0
Precedence: list
Message: 1
>Erik wote:
>Wait, this is untried, but what about:
>
>const char max7219_C_VER[] __attribute__ ((aligned (16), __progmem__))
>= "@(#) $Id: max7219.c,v 0.0 2004/01/25 18:58:09Dafni Exp $";
This gives:
F:/projects/undercvs/bergomat/src/max7219/max7219.c:82: warning: alignment
of 'max7219_C_VER' is greater than maximum ob
ject file alignment. Using 1
And still the out of range error (I've been in this road before)
------------------------------
>If you've based your script on one from the avr-gcc install, you could
>try __attribute__ ((section(".rel.rodata"))) or another
>/* Read-only sections, merged into text segment: */
>of your choosing, to see what happens.
By using:
const char max7219_C_VER[] __attribute__ ((section(".rel.rodata")))= "@(#)
$Id: max7219.c,v 0.0 2004/01/25 18:58:09Dafni Exp $";
I get the following:
---- Building libmax7219.a ----
Compiling F:\projects\undercvs\bergomat\src\max7219/max7219.c
avr-gcc -c
F:/projects/undercvs/bergomat/src/max7219/max7219.c -DGCC_VER_GEQ_330=1 -gdw
arf-2 -Wall -Wstrict-prototypes -
Wa,-ahlms=F:\projects\undercvs\bergomat/lst/max7219.lst -mmcu=atmega128 -DG
CC_VER_341 -D__AVR_GCC__ -g -O2 -DEXTMEM -
DSCH20030501 -DST_5510 -DARCHITECTURE_AVR128_UCOSII -D__DEBUG__ -IF:\proj
ects\undercvs\bergomat\src\max7219 -IF:/proj
ects/undercvs/bergomat/include -IF:/projects/undercvs/bergomat/config/chip -
IF:/projects/undercvs/bergomat/config/board
-IF:/projects/undercvs/bergomat/config/platform -o max7219.elf
F:/projects/undercvs/bergomat/src/max7219/max7219.c:73: warning:
'DispDigMsk' defined but not used
F:/projects/undercvs/bergomat/src/max7219/max7219.c:74: warning:
'DispSegTbl' defined but not used
F:/projects/undercvs/bergomat/src/max7219/max7219.c:75: warning:
'DispSegTblIx' defined but not used
C:\DOCUME~1\DAFNIW~1.000\LOCALS~1\Temp/ccuoaaaa.s: Assembler messages:
C:\DOCUME~1\DAFNIW~1.000\LOCALS~1\Temp/ccuoaaaa.s:19: Warning: setting
incorrect section type for .rel.rodata
C:\DOCUME~1\DAFNIW~1.000\LOCALS~1\Temp/ccuoaaaa.s:19: Warning: setting
incorrect section attributes for .rel.rodata
---- Building libmax7219.a ----
---- build library ----
avr-ld -r -TF:/projects/undercvs/bergomat/config/atmega128_341.xr
max7219.elf -o libmax7219.a
Exporting libmax7219.a
copy libmax7219.a \
F:\projects\undercvs\bergomat\lib > NUL:
End Exporting libmax7219.a
---- libmax7219.a complete ----
gmake[3]: Leaving directory
`F:/projects/undercvs/bergomat/src/max7219/objs/AVR128_UCOSII'
gmake[2]: Leaving directory `F:/projects/undercvs/bergomat/src/max7219'
---- Linking max7219_test.out ----
echo libboardinit.a libcomm.a libucos_ii.a libmax7219.a
libboardinit.a libcomm.a libucos_ii.a libmax7219.a
---- link executable -----
avr-gcc -TF:/projects/undercvs/bergomat/config/atmega128_341.x -Wl,-Map=ma
x7219_test.elf.map,--cref -mmcu=atmega128 -o
max7219_test.out
max7219_test.elf -LF:/projects/undercvs/bergomat/lib -lboardinit -lcomm -lu
cos_ii -lmax7219
f:/avrgcc.341/bin/../lib/gcc/avr/3.4.1/../../../../avr/lib/avr5/crtm128.o(.t
ext+0x0): In function `__vector_34':
: internal error: out of range error
---- copying max7219_test.out max7219_test.elf -----
1 file(s) copied.
So the same problem persists.
Regards,
Robert
- [avr-gcc-list] Re: internal error: out of range error (Erik Christiansen),
Dafni & Robert Berger <=