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 17:34:04 -0700
User-agent: Mozilla Thunderbird 0.7.3 (Windows/20040803)

Per Arnold Blåsmo wrote:



E. Weddington wrote:

Per Arnold Blåsmo wrote:


00000030 <.do_copy_data_loop>:
 30:    05 90           lpm    r0, Z+
32: 0d 92 st X+, r0 <------This is where it crashes X=0x00fe


Ok. Shot in the dark:
- Is this the *first* address that it is using? i.e. is this the first time through the loop?
- Does your device have that opcode variant?

No, it is not the first time trough the loop. I goes trough the loop approx. 150-160 times before it crashes.
What opcode variant?

I was referring to whether it could execute a ST X+,R type instruction. Obviously it can if it's going through the loop 150-160 times.

IIRC, you're using a simulator/AVR Studio correct? That could very well be an issue. Have you tried this on a real device yet?

Of course, it's difficult to diagnose this while in the dark. :-/

Eric


reply via email to

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