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

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

Re: [avr-gcc-list] [ANN] WinAVR 20060119 Released


From: Uwe Fechner
Subject: Re: [avr-gcc-list] [ANN] WinAVR 20060119 Released
Date: Fri, 20 Jan 2006 21:41:01 +0100
User-agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)

Martijn van Balen schrieb:

If I read the datsheet of the mega640/1280/1281/2560/2561 it seems
that all these devices are using 3 bytes on the stack for PC push/pop.
This would mean that I could use -mmcu=atmega1281 to generate code
for my mega2561. The only drawback would be that I need assembly to access
the upper half of the program flash, which I don't mind for now.

Question: I'm I correct ?

No, you are wrong. There was an old datasheet with this wrong information.
Only the 256k devices push three bytes on the stack.

There is no workaround so far to use winavr / gcc for the AT mega2561.

For more info look at:

http://www.kieltech.de/uweswiki/ATmega2560_5fsupport

Regards:

Uwe Fechner

(Any help to implement support support for the 256k devices is welcome.)




reply via email to

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