This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
RE: EB40A: Running one Function from RAM,rest in FLASH
- From: Gary Thomas <gary at mlbassoc dot com>
- To: vinay at hunolabs dot com
- Cc: eCos Discussion <ecos-discuss at ecos dot sourceware dot org>
- Date: 10 Dec 2003 13:38:24 -0700
- Subject: RE: [ECOS] EB40A: Running one Function from RAM,rest in FLASH
- Organization: MLB Associates
- References: <ECEHLOMBEGLLKDFCDAGAEECMCAAA.vinay@hunolabs.com>
Please copy the mailing list to your replies - that way everyone
benefits :-)
On Wed, 2003-12-10 at 13:33, Vinay.S wrote:
> hi gary,
> Thanks man.
> Actually just using the following
> __attribute__(SECTION("2ram.dummy")) worked for me.
> Can u please tell me what the above statement does? or atleast direct me to
> proper resources regarding the same.
Look at the linker file .../hal/arm/arch/current/src/arm.ld
The attribute tells the linker that the code for this particular
function goes in the "2ram.dummy" section, rather than .text.XXX
In turn, the linker will arrange that this code is then placed in
initialized data (RAM) at runtime.
> regards,
> Vinay
>
> -----Original Message-----
> From: ecos-discuss-owner@sources.redhat.com
> [mailto:ecos-discuss-owner@sources.redhat.com]On Behalf Of Gary Thomas
> Sent: Wednesday, December 10, 2003 1:37 AM
> To: vinay@hunolabs.com
> Cc: Ecos-Discuss
> Subject: Re: [ECOS] EB40A: Running one Function from RAM,rest in FLASH
>
>
> On Tue, 2003-12-09 at 13:04, Vinay.S wrote:
> > hi!
> > Can somebody help me out?
> > I have a variant of ATMEL EB40A board,running ECOS.I have a code in which
> > some functions need to run from RAM( due to timing constraints)and rest of
> > code runs from flash.
>
> Look at how we run the FLASH drivers (look in devs/flash/...) The low
> level drivers live in RAM even if the main code lives in FLASH
>
--
Gary Thomas <gary@mlbassoc.com>
MLB Associates
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss