This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Using flash memory on AT91eb55
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