avr-libc-dev
[Top][All Lists]
Advanced

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

Re: [avr-libc-dev] FDEV_SETUP_STREAM problem on ATMega8


From: Joerg Wunsch
Subject: Re: [avr-libc-dev] FDEV_SETUP_STREAM problem on ATMega8
Date: Sat, 7 Jul 2007 08:23:19 +0200
User-agent: Mutt/1.5.11

As Joerg Wunsch wrote:

> > > avr-gcc -mmcu=atmega8 jsp.c -o jsp.hex

> > That's odd considering your command line above cannot compile a C
> > file directly to a hex file. GCC compiles to object code (.o), then
> > linked to an ELF file (.elf), then converted to a hex file (.hex)
> > via avr-objcopy.

> I think you nailed it down with this, Eric.

p.s.: In theory, it's possible to instruct the linker to emit an intel
hex file itself:

avr-gcc -mmcu=atmega8 -Wl,--oformat=ihex jsp.c -o jsp.hex

but somehow, the resulting hex file doesn't work.  Something obviously
goes wrong when using that route even though it is supposed to work.

-- 
cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)




reply via email to

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