avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-gcc-list] atmega163/avrmega163 support missing?


From: ken
Subject: [avr-gcc-list] atmega163/avrmega163 support missing?
Date: Thu, 4 Oct 2001 22:52:47 -0700
User-agent: Mutt/1.2.5i

i am trying to get gcc/binutils going for a mega163 target. i have binutils 
2.11.2 and gcc 3.0.1 from gnu's site.

i'm starting off by attempting to build some very simple sample code, just to 
make sure that i have everything set up correctly, but it is failing.

in particular, this dies:
        avr-ld -o test test.o -m avrmega163

it complains that 
        avr-ld: unrecognised emulation mode: avrmega163
        Supported emulations: avr85xx avr1200 avr23xx avr44x4 avr4433 
avrmega603 avrmega103 avrmega161

huh?  i thought this was a supported part, but avr-ld pretty explicitly doesn't:

% avr-ld --version
GNU ld 2.11.2
Copyright 2001 Free Software Foundation, Inc.
This program is free software; you may redistribute it under the terms of
the GNU General Public License.  This program has absolutely no warranty.
  Supported emulations:
   avr85xx
   avr1200
   avr23xx
   avr44x4
   avr4433
   avrmega603
   avrmega103
   avrmega161


baffled, i found on the net, a binutils patch from last year that seemed to add 
support for the ATmega163 to as and bfs, and it looks like the current 
binutils-2.11.2 from june 2001 has these changes integrated. but there is no 
mention of avrmega163, which i guess is what ld would want, just ATmega163 for 
avr-as.

weirder still, libc seems to support this part (iom163.h). i'd imagine that it 
must have been built with an avr-as and avr-ld which did also (maybe i 
shouldn't assume that?).  i also tried -matmega163. no dice. 

i grepped through the binutils-2.11.2 source tree, and found a reference to 
ATmega163 in bfd/cpu-avr.c, and in gas/config/tc-avr.c.  but nothing in ld. 
sure enough, the avr-as has no trouble with an ".arch atmega163" in the source 
code. but avr-ld isn't so happy.

in any case,  this died also:
        avr-ld -o test test.o -m ATmega163

i then got the latest weekly snapshot of binutils... same problem. i'm 
obviously missing some bit of information. at this point, my only guess is that 
i have to use "-mavrmegaXXX or -mavr85xx" with avr-ld in order to link 
correctly for atmega163, but i'm not sure which to use.

sorry for the dumb question, folks, but: how should i link a file to make an 
"avrmega163" binary?

thanks!

-ken


Attachment: pgpDotpXT7ChB.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]