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

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

RE: [avr-gcc-list] Mega2561 compilation problem


From: Eric Weddington
Subject: RE: [avr-gcc-list] Mega2561 compilation problem
Date: Wed, 06 Jun 2007 11:18:34 -0600

What versions of the compiler are you using, for both AtmanAVR and WinAVR?

I'm sure that the WinAVR package has more up-to-date patches to the compiler
than AtmanAVR...

Eric 

> -----Original Message-----
> From: 
> address@hidden 
> [mailto:address@hidden
> org] On Behalf Of Parthasaradhi Nayani
> Sent: Wednesday, June 06, 2007 8:28 AM
> To: Stu Bell; address@hidden
> Subject: RE: [avr-gcc-list] Mega2561 compilation problem
> 
> Hello Stu Bell,
> Thanks for your suggestions, but the code compiled using 
> atman AVR is the same code we compiled using WinAvr. 
> Surprisingly the code compiled using WinAvr resets the 
> controller whereas code from Atman does not. We are not using 
> any special SP initialization etc. We are using the default 
> startup files of WinAvr. Thank you.
> 
> Regards
> Nayani
> 
> 
> Stu Bell <address@hidden> wrote:
> 
>       Your usage of stack will go up with the 2561, since a 
> subroutine return address is now 3 bytes instead of 2.  Be 
> sure that you properly account for that in any stack 
> initialization that you do, and in all code that may use RAM.
>       Best regards, 
>       Stu Bell 
>       DataPlay (DPHI, Inc.) 
>       
> ________________________________
> 
>       From: 
> address@hidden 
> [mailto:address@hidden 
> On Behalf Of Parthasaradhi Nayani
>       Sent: Wednesday, June 06, 2007 6:07 AM
>       To: address@hidden
>       Subject: [avr-gcc-list] Mega2561 compilation problem
>        
>       Hello all,
>       We were using a Mega128 in one of our boards and we had 
> to shift to Mega2561 as the requirement for program memory 
> increased with advanced functional demands. We used Atman AVR 
> demo and the code worked without a hitch. However when we use 
> new (latest) WinAvr, the controller is resetting at one point 
> or the other. We are using many sprintf_P functions to save 
> RAM memory. Any clues, suggestions in helping us solve the 
> problem will be highly appreciated. Thank you.
>       
>       Regards
>       Nayani P
>         
>       
> ________________________________
> 
>       Be a better Heartthrob. Get better relationship answers 
> <http://us.rd.yahoo.com/evt=48255/*http:/answers.yahoo.com/dir
> /_ylc=X3oDMTI5MGx2aThyBF9TAzIxMTU1MDAzNTIEX3MDMzk2NTQ1MTAzBHNl
> YwNCQUJwaWxsYXJfTklfMzYwBHNsawNQcm9kdWN0X3F1ZXN0aW9uX3BhZ2U-?l
> ink=list&sid=396545433> from someone who knows.
>       Yahoo! Answers - Check it out. 
> 
> 
> ________________________________
> 
> 8:00? 8:25? 8:40? Find a flick 
> <http://tools.search.yahoo.com/shortcuts/?fr=oni_on_mail&#news
> >  in no time
> with theYahoo! Search movie showtime shortcut. 
> <http://tools.search.yahoo.com/shortcuts/?fr=oni_on_mail&#news> 
> 





reply via email to

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