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

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

Re: [avr-gcc-list] Storing variables in external memory - suggestions


From: Parthasaradhi Nayani
Subject: Re: [avr-gcc-list] Storing variables in external memory - suggestions
Date: Sat, 23 May 2009 03:24:26 -0700 (PDT)

> --- On Fri, 5/22/09, David Kelly <address@hidden>
> wrote:
> > AVR Studio convention is that internal .eeprom starts
> at 0x00810000. So what I'd do if I were you and wanted the compiler to
> assign static memory addresses in an external eeprom would be:
> > 
> > #define    EEEXT
> > __attribute__((section(".eeexternal")))
> > 
> > am not certain 0x00a10000 is available.
> > 
> > LDFLAGS+=--section-start=.eeprom=00a10000
> > 

Hello David Kelly,
I tried as you mentioned and seems to work fine. One more question is, how to 
know the address ranges used by WinAVR? so one can use the unused ranges for 
external EEPROM, FLASH etc. Thank you.

Regards
Nayani P










reply via email to

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