From: "Michael Anburaj" <embeddedeng@hotmail.com>
To: vinay@hunolabs.com, ecos-discuss@sources.redhat.com
Subject: RE: [ECOS] EB40A: Running one Function from RAM,rest in FLASH
Date: Wed, 10 Dec 2003 16:24:00 -0000 [thread overview]
Message-ID: <Law15-F77kgvHssgKgl00024096@hotmail.com> (raw)
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
next reply other threads:[~2003-12-10 16:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-12-10 16:24 Michael Anburaj [this message]
[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 3:09 Vinay.S
2003-12-09 19:58 Vinay.S
2003-12-09 20:06 ` Gary Thomas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Law15-F77kgvHssgKgl00024096@hotmail.com \
--to=embeddedeng@hotmail.com \
--cc=ecos-discuss@sources.redhat.com \
--cc=vinay@hunolabs.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).