Sign In

Don't have a Xilinx account yet?

  • Choose to receive important news and product information
  • Gain access to special content
  • Personalize your web experience on Xilinx.com

Create Account

Username

Password

Forgot your password?
XClose Panel
Xilinx Home
Reply
Visitor
jinbangchen
Posts: 7
Registered: ‎09-20-2009
0
Accepted Solution

Is there any caution in setting "Generate Linker Script"?

  I am  doing an experiment  in microblaze  with a custom  board.  Now  i have fallen a problem.  If  I change  ".text"  from  ilmb_cntlr_dlmb_cntlr   to  DDR   in  the  "Generate Linker Script",  the output  of  the  programme  failed. But  If  I change  ".sbss"  and ".sdata" from  ilmb_cntlr_dlmb_cntlr   to  DDR   in  the  "Generate Linker Script"  ,with  ".text"   in the  ilmb_cntlr_dlmb_cntlr , the output  was successful.   I  am confused .   Is there   any  caution  in  setting  "Generate Linker Script"?    Could  it  be  that  my ddr  is not  correct.    But  in  the TestApp_Memory  project,  the  ddr passed.    Who  can  tell  me  how  can  I resolve  this  problem.      Thanks!

Contributor
n5ac
Posts: 61
Registered: ‎10-29-2008
0

Re: Is there any caution in setting "Generate Linker Script"?

I'm not sure I understand your entire problem, but let me give you some information that may help.  In general, the generate linker script will give you something that works.  You can select where things go in the dialog for creating the linker script when you do a generate -- this allows you to put what you want it where you want it.  BUT -- things will go where you want them when you are using the debugger, but not necessarily in production.

 

So you you say some of your program is in DRAM and some in BRAM and then test this using your project in the debugger and load the software using the SDK to test it, it will work fine.  But in production, you will have to create a boot loader that understands where everything is and how to get it there.  There are some tools to help you do this also depending on what flash you are using.

 

Does this help at all? 

 

Steve 

Visitor
jinbangchen
Posts: 7
Registered: ‎09-20-2009
0

Re: Is there any caution in setting "Generate Linker Script"?

By  creating  the boot loader,  the  problem  doesn't   occur!        Thanks!