[Top][All Lists]

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

Re: [avr-gcc-list] Big end little end thingie

From: Anton Erasmus
Subject: Re: [avr-gcc-list] Big end little end thingie
Date: Thu, 10 Jan 2002 10:05:57 +0200

Date sent:              Wed, 9 Jan 2002 20:51:14 -0500 (EST)
From:                   RogerB <address@hidden>
To:                     AVR GCC List <address@hidden>
Subject:                [avr-gcc-list]  Big end little end thingie

>  When I build a srec or ihex file on my linux box
> with avr-gcc it seems to produce bigend files but if
> I make one with avr studio it's the other way. The
> file will start as E0C0 on the linux and C0E0 with avr
> studio. I can only program the chips from my linux box
> so I don't know what the rom image looks like.
>  I'm using avr-gcc version 3.0.2 and uisp version
>  20011025 and to build a file I do it this way
> avr-gcc -O0 -Wall -mmcu=at90s2313 -c demo.c -o demo.o
> avr-gcc -mmcu=at90s2313 -o demo.elf demo.o
> avr-objcopy -O ihex demo.elf demo1.hex
>  Am I missing somethig the list file from
> avrstudio shows the first instruction to be a jump

> be  14 0000 C0E0                  ldi r28,lo8(__stack - 0)


Atmel stuffed up their S-Record generation and interptretation. If 
you want to use any of atmels software u either Intel Hex or 
binary. There used to be a hack in avr-gcc to enable it to generate 
the incorrect atmel version of S-Records.


avr-gcc-list at http://avr1.org

reply via email to

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