From: Andrew Lunn <andrew@lunn.ch>
To: Champion J?r?me <Jerome.Champion@he-arc.ch>
Cc: ecos-discuss@sourceware.org
Subject: Re: [ECOS] Using flash memory on AT91eb55
Date: Thu, 13 Dec 2007 18:23:00 -0000 [thread overview]
Message-ID: <20071213154254.GA8694@lunn.ch> (raw)
In-Reply-To: <F7620004260C5D4DB836EDBF8CC6872D01393156@neptune.intra.eiaj.ch>
On Thu, Dec 13, 2007 at 04:24:09PM +0100, Champion J?r?me wrote:
> Hi,
> I'm make a software with the Linux Synthetic Target for some month.
> Now, I want to port it the the evaluation board AT91EB55.
> But when I compile it, I've got an error like : "the address 0x2040024 from a.out of the section .bss is not in the region ram".
> I've seen that it was an arry wich is too big and which certainly do not fit in the 256ko ram of the board.
> I would like to use the flash memory to store this array, but I don't how how to define it.
> Have you got any link or tips where to search ?
Are you using a RAM image or a ROM image?
A ROM image will run from ROM. All constant data should remain in the
flash. So maybe all you need to do is add a const keyword in the right
place.
If you have a RAM image, it is harder. What i would suggest is remove
the array from the sources and find another way to generate it as
binary data. You can then write this into flash at a well know
address. In your application just use the well known address as a
pointer.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
next prev parent reply other threads:[~2007-12-13 15:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-12-13 16:03 Champion Jérôme
2007-12-13 18:23 ` Andrew Lunn [this message]
2007-12-14 11:29 ` [ECOS] RE : " Champion Jérôme
2007-12-14 13:07 ` [ECOS] " Andrew Lunn
2007-12-14 16:41 ` hong zhang
2007-12-14 22:34 ` Andrew Lunn
2007-12-17 7:55 ` hong zhang
2007-12-17 8:06 ` Andrew Lunn
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=20071213154254.GA8694@lunn.ch \
--to=andrew@lunn.ch \
--cc=Jerome.Champion@he-arc.ch \
--cc=ecos-discuss@sourceware.org \
/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).