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

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

Re: [avr-gcc-list] New prosessor goes into stack violation!


From: Ben L. Titzer
Subject: Re: [avr-gcc-list] New prosessor goes into stack violation!
Date: Fri, 7 Jan 2005 10:46:04 -0800

Perhaps the size of the initialized data section is larger than the available RAM left over after allocating a stack? What is the value of the SP register at this point?

-B

On Jan 7, 2005, at 9:22 AM, E. Weddington wrote:

Per Arnold Blåsmo wrote:

Hi you gurus :-)

I need some help her to get the code for AT90SC3232CS running.
As some of you might have seen, I have tried to make avr-libc work for the secureAVR chip AT90SC3232CS.

My compiler chain works, and I am abel to make a small "hello world" app. work. But when running a larger app, the program crashes in the startup code.

It starts the __do_copy_data routine and enter the .do_copy_data_loop. But after a number of iterations it crashes and says "stack violation". I am not sure that is the correct error, because on the emulator it light up "illegal address".

It happens when the operation 'ST X+, R0' executes and X=0x00fe.


Could this address be in the interrupt vector table for the device?

Perhaps your header file did not properly account for all the vectors or all the correct defintions?

Eric

_______________________________________________
avr-gcc-list mailing list
address@hidden
http://www.avr1.org/mailman/listinfo/avr-gcc-list


========================================================
I was born not knowing and have had only a little time to change that here and there.
--Richard Feynman



reply via email to

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