avr-libc-dev
[Top][All Lists]
Advanced

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

Re: [avr-libc-dev] FAQ addition?


From: E. Weddington
Subject: Re: [avr-libc-dev] FAQ addition?
Date: Mon, 25 Nov 2002 11:45:18 -0700

On 25 Nov 2002 at 10:34, Theodore A. Roth wrote:

> 
> 
> On Mon, 25 Nov 2002, E. Weddington wrote:
> 
> :) I've seen this question floating around a lot and I don't have a
> good :) answer for it because I don't use it: :) :) How do you setup a
> project to use external RAM? :) :) I was wondering if someone else
> knew a good answer and would be :) willing to contribute to the FAQ.
> 
> It actually rather trivial:
> 
>     MCUCR = _BV (SRE);          /* Enable External SRAM/XMEM */
> 
> The only gotcha is that you need to set it up early on in the startup
> procedure.

Would one have to put it in an init section?

And so one does not have to monkey around with link scripts and such 
to add external RAM support?
 
> One example would be wanting to put the stack in xmem (although is
> suboptimal performance wise). You would need to enable xmem before
> setting up the stack pointer (SP).
> 

And would one have to manually set up the stack pointer? How is that 
done?

> Any other examples?
> 
> I'll write something up for this later today.
> 

Thanks.




reply via email to

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