This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: EB40A: Running one Function from RAM,rest in FLASH


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]