Poor Newbie with linkcmds :-)
Cedric Aubert
cedric_aubert at yahoo.fr
Tue Aug 5 15:50:01 UTC 2003
Hi
All my BSP succesfully compile and hello_word to.
Now I have some trouble to have a coorect image for
my PROM.
I don't have any monitor on my board, so I had to
insert
some correct vector in my prom image.
My memory map is this one :
RAM : 0x00000008 to 0x00400000 // 4MB
ROM : 0x00800000 to 0x00A00000 // 2MB
But for a correct boot, from 0x00000000 to 0x00000008
is mapped to the adress from 0x00800000 to 0x00800008
So my board should can boot with a correct image.
I do this :
MEMORY
{
rom : ORIGIN = 0x0800000, LENGTH = 2M
ram : ORIGIN = 0x0000008, LENGTH = 4M
}
_VBR = 0x00000008;
__end_of_ram = 0x400000;
_copy_data_from_rom = 1;
_RamBase = DEFINED(_RamBase) ? _RamBase : 0x00000008;
_RamSize = DEFINED(_RamSize) ? _RamSize : 4M;
_HeapSize = DEFINED(_HeapSize) ? _HeapSize : 0x10000;
_StackSize = DEFINED(_StackSize) ? _StackSize :
0x1000;
SECTIONS
{
ram : {
. = .;
} >ram
.text : {
LONG(__end_of_ram)
LONG(start)
*(.text)
.
.
.
} >rom
.data : {
} >ram
.bss : {
} >ram
And I am disappointed because text section was at
0x80000008 in my image (don't what I want) and my
boot vector (0x2) is 0x00000008 or it should be
0x80000008.
I really mised somethink !!! :-)
If someone can help, thanks a lot
=====
AUBERT Cedric
SDEL Controle Commande
rue Nungesser & Coli
44860 St Aignan de Grand Lieu
E-mail : cedric_aubert at yahoo.fr
Http : http://www.controle-commande.sdel.fr/
__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
More information about the users
mailing list