* [ECOS] EB40A: Running one Function from RAM,rest in FLASH
@ 2003-12-10 3:09 Vinay.S
0 siblings, 0 replies; 5+ messages in thread
From: Vinay.S @ 2003-12-10 3:09 UTC (permalink / raw)
To: Ecos-Discuss
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.
regards,
Vinay
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [ECOS] EB40A: Running one Function from RAM,rest in FLASH
[not found] <ECEHLOMBEGLLKDFCDAGAEECMCAAA.vinay@hunolabs.com>
@ 2003-12-10 20:38 ` Gary Thomas
0 siblings, 0 replies; 5+ messages in thread
From: Gary Thomas @ 2003-12-10 20:38 UTC (permalink / raw)
To: vinay; +Cc: eCos Discussion
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [ECOS] EB40A: Running one Function from RAM,rest in FLASH
@ 2003-12-10 16:24 Michael Anburaj
0 siblings, 0 replies; 5+ messages in thread
From: Michael Anburaj @ 2003-12-10 16:24 UTC (permalink / raw)
To: vinay, ecos-discuss
Hi Vinay,
You have two options here.
1. You build & link the RAM resident code for the RAM address space & locate
it in Flash (can be done using the linker script). And at run time you
should move this code from Flash to RAM. ItÂs very simple in GCC & the same
is possible under ADS/SDT tool-chains too, using the scatter map (which is a
linker script).
2. Build the RAM resident modules as position independent code (PIC) Â
possible with GCC & ADS/SDT tool-chains. Malloc space in RAM region & copy
the code from flash to RAM & use function pointers to access these function.
Email me if you need more clarity on this.
Cheers,
-Mike.
>From: "Vinay.S" <vinay@hunolabs.com>
>Reply-To: <vinay@hunolabs.com>
>To: "Ecos-Discuss" <ecos-discuss@sources.redhat.com>
>Subject: [ECOS] EB40A: Running one Function from RAM,rest in FLASH
>Date: Wed, 10 Dec 2003 00:57:29 +0530
>
>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.
>
>regards,
>Vinay
>
>
>
>--
>Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
>and search the list archive: http://sources.redhat.com/ml/ecos-discuss
>
_________________________________________________________________
Tired of slow downloads and busy signals? Get a high-speed Internet
connection! Comparison-shop your local high-speed providers here.
https://broadband.msn.com
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [ECOS] EB40A: Running one Function from RAM,rest in FLASH
2003-12-09 19:58 Vinay.S
@ 2003-12-09 20:06 ` Gary Thomas
0 siblings, 0 replies; 5+ messages in thread
From: Gary Thomas @ 2003-12-09 20:06 UTC (permalink / raw)
To: vinay; +Cc: Ecos-Discuss
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* [ECOS] EB40A: Running one Function from RAM,rest in FLASH
@ 2003-12-09 19:58 Vinay.S
2003-12-09 20:06 ` Gary Thomas
0 siblings, 1 reply; 5+ messages in thread
From: Vinay.S @ 2003-12-09 19:58 UTC (permalink / raw)
To: Ecos-Discuss
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.
regards,
Vinay
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2003-12-10 20:38 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-10 3:09 [ECOS] EB40A: Running one Function from RAM,rest in FLASH Vinay.S
[not found] <ECEHLOMBEGLLKDFCDAGAEECMCAAA.vinay@hunolabs.com>
2003-12-10 20:38 ` Gary Thomas
-- strict thread matches above, loose matches on Subject: below --
2003-12-10 16:24 Michael Anburaj
2003-12-09 19:58 Vinay.S
2003-12-09 20:06 ` Gary Thomas
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).