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: E. Weddington
Subject: Re: [avr-gcc-list] New prosessor goes into stack violation!
Date: Fri, 07 Jan 2005 10:22:42 -0700
User-agent: Mozilla Thunderbird 0.7.3 (Windows/20040803)

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


reply via email to

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