03-17-2010 07:33 AM
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!
Solved! Go to Solution.
03-17-2010 11:59 AM
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?