Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Re: program stack linker

2004-02-11 by volkmar.dierkes@web.de

Are you using both the Mega128? Did you switch off the Mega103 emulation
mode in the fuses? If not, the compiler will locate the stack in an
area where the Mega103 has no RAM!

HTH

Volkmar

inpactmicro <brendan.oflynn@nmrc.ie> schrieb am 11.02.2004, 14:20:54:
> exactly whats happening to me!
> i tried using codevision AND iCC as my C compiler but the same thing 
> is happening
> im using ICE JTAG to program
> 
> it simulates fine but emulates/runs bizarrly
> 
> if You find out whats wrong, let me know!!
> 
> some suggestions Ive been give are
> is the watchdog disabled 
> is it running too fast (im trying 20 MHz, but at lo voltage 8 is 
> recommended
> 
> stack being overwritten somewhere............
> 
> --- In AVR-Chat@yahoogroups.com, "Theo Maryonovich"  
> wrote:
> > Hello to all,
> > 
> > I am a bit new to the AVR world.  I recently purchased a STK-500 
> and 501 development kit with a mega128 and am using WinAVR for my C++ 
> compiler.  Having some trouble returning from function calls (like 
> not returning at all).  I am assuming I need to link to the program 
> stack somehow to allow this to happen.  Does anybody out there have 
> any insight on how I might accomplish this?  Thank you for your time.
> > 
> > 
> > Ted

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.