Added ram2 to the MEMORY in my target.ld:
MEMORY
{
ram : ORIGIN = 0x0000000, LENGTH = 0x800000
ram1 : ORIGIN = 0x0000000, LENGTH = 0x800000
ram2 : ORIGIN = 0x80000000, LENGTH = 0x800000
}
and my usb_buffs to my SECTIONS
SECTIONS
{
...
...
...
.fixed_vectors 0x20 : { . = .; KEEP (*(.fixed_vectors)) } > ram1
.usb_buff 0x80000000 : { . = .; KEEP (*(.usb_buff)) } > ram2
...
...
...
}
the attribute Gregoire mentioned to my C file:
uchar ECHO_ENDPOINT_BUFFER_1[1000] __attribute__((section(".usb_buff")));
uchar ECHO_ENDPOINT_BUFFER_2[1000] __attribute__((section(".usb_buff")));
uchar ECHO_ENDPOINT_RECV_BUFFER[1000] __attribute__((section(".usb_buff")));
and now my map file reads:
.usb_buff 0x80000000 0xbb8
0x80000000 . = .
*(.usb_buff)
.usb_buff 0x80000000 0xbb8 myFile.o
0x80000000 ECHO_ENDPOINT_BUFFER_1
0x800003e8 ECHO_ENDPOINT_BUFFER_2
0x800007d0 ECHO_ENDPOINT_RECV_BUFFER
Perfect...(before testing :)
Thanks
Leo
--- Gregoire ETIENNE <etiennegr@hotmail.com> wrote: > well, in you'r position,
I would declare that these buffer belong to a
custom section with the __attribute__ keyword
uchar ECHO_ENDPOINT_BUFFER_1[1000]
__attribute__((section(".zone_name")));
This will creat a section .zone_name with ECHO_ENDPOINT_BUFFER_1 in it
once the section appears in your map file, adapt your target.ld file to
simply place this section to the right address
Greg
----- Original Message -----
From: "Leo McManus" <leomcmanusir@yahoo.com>
To: "OpenWinCE Project" <openwince-list-request@lists.sourceforge.net>;
"EcosMailList EcosList" <ecos-discuss@sources.redhat.com>
Sent: Wednesday, April 14, 2004 5:14 PM
Subject: [ECOS] HELP with target.ld file syntax
Running eCos on ARM Integreator board with ARM720T processor.
I have 3 high speed USB OTG buffers which need to be above address
0x80000000
on an ARM Integrator board, so my USB chip and the ARM can share the memory.
uchar ECHO_ENDPOINT_BUFFER_1[1000];
uchar ECHO_ENDPOINT_BUFFER_2[1000];
uchar ECHO_ENDPOINT_RECV_BUFFER[1000];
I am after the syntax to relocate the buffers using my target.ld linker
file.
Thanks
Leo
=====
Mobile Belgium: +32 (0)495 89 59 65
Contact in France: +33 (0)476 275661
Registered Linux User Number 205935.
http://counter.li.org.
____________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
=====
Mobile Belgium: +32 (0)495 89 59 65
Contact in France: +33 (0)476 275661
Registered Linux User Number 205935.
http://counter.li.org.
____________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping"
your friends today! Download Messenger Now
http://uk.messenger.yahoo.com/download/index.html