Reply by sdarch May 18, 20062006-05-18
I'm new to Xilinx EDK 7.1 and want to get my own simple programs to work.

I have a development board from AVNET and I got their test programs to
work (flashing LEDs ..etc.). I am using the xilkernel on a PPC 405.

So next thing I do is use SDK to write a test hello world program. It
seems to compile. But then when I use XMD to download it to the board I
get a linker error.

So then I think, maybe the default linker script isn't good, so I use the
linker script from the test programs provided by AVNET.

So in SDK I go to build-> options and add "Wl, -T, Wl, C:\linkerscript" to
the extra linker options. Now my program won't compile. Finally, after some
trial and error I get "Wl,C:\linkerscript" to work. I dunno why the
documentation said to use "Wl, -T, Wl," maybe those are the
possibilities.

So now my porgram compiles. So I update bitstream under XPS. Everythign
seems good. But then when I try to download the program under XMD, I still
get an error. Somethign like this, section, .text:0xffff0000-0xffff0934
section, .boot0:0xffff2ee0-0xffff2ef0 section, .boot:0xfffffffc-0x00000000
ERROR:EDK - Program I-Side Section, .text:0xffff0000-0xffff0934 out of
Address Range

So obviously my linker scrip is messed up. And I have very little
knowledge of linker script language. I am guessing that my .text section
is too small, but why would that be too small? 

my text section looks like this:
text :
{
*(.text)
*(.text.*)
*(.gnu.linkonce.t*)
} > SDRAM_8Mx32_1 : program


Can you guys give me some pointers on how to go about fixing this issue?
Or atleast verify that it isn't a linker script problem. It's probably
some setting in XPS or SDK.