This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
linking a program for download to at91sam7x-resident redboot
- From: Robert Brusa <bob dot brusa at gmail dot com>
- To: MailingList:ecos-discuss <ecos-discuss at ecos dot sourceware dot org>;
- Date: Fri, 20 Mar 2009 16:00:36 +0100
- Subject: [ECOS] linking a program for download to at91sam7x-resident redboot
- Reply-to: Bob dot Brusa at gmail dot com
Hi
I have configured, linked and downloaded redboot into my at91sam7x board.
Its a minimum redboot, supporting only ser0 and ser1 for direct download
into flash.
Then I wanted to change my little hello-program by linking it in such a
way to go above redboot in the flash. Actually I placed it at 0x00120000 -
far above redboot - by editing the ecos-provided target.ld-file. The
memory-statement in this file now reads like this:
MEMORY
{
ram : ORIGIN = 0x00200000, LENGTH = 0x20000
rom : ORIGIN = 0x00120000, LENGTH = 0x80000
}
However, when running the linker, it produces errors and reports vectors
etc. to be out of rom range. Correct, but I think I do not need these
vectors here. What else do I have to change in the loader file (or
elswhere) to get a linked program to be downloadable to/with redboot where
it will be launched by a cor. redboot command (or a script later on)?
Thanks for help.
Robert
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss