Yahoo Groups archive

AVR-Chat

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

Thread

program stack linker

program stack linker

2004-02-11 by Theo Maryonovich

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

Re: program stack linker

2004-02-11 by inpactmicro

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" <ted_marytl@s...> 
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.
Show quoted textHide quoted text
> 
> 
> Ted

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.