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: Parthasaradhi Nayani
Subject: RE: [avr-gcc-list] Mega2561 compilation problem
Date: Wed, 6 Jun 2007 07:27:52 -0700 (PDT)

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 from someone who knows.
Yahoo! Answers - Check it out.


8:00? 8:25? 8:40? Find a flick in no time
with theYahoo! Search movie showtime shortcut.
reply via email to

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