FPGA Central - World's 1st FPGA / CPLD Portal

FPGA Central

World's 1st FPGA Portal

 

Go Back   FPGA Groups > NewsGroup > FPGA

FPGA comp.arch.fpga newsgroup (usenet)

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-19-2007, 01:36 AM
Bathala
Guest
 
Posts: n/a
Default mb-g++ linker script problem 8.2i

Specification
EDK version:8.2i
FPGA Board: Virtex II Pro



I've tried generating a linker script to map the input object files
(.text, .rodata, .sdata2, .data , .sdata, .sbss, .bss ) on to RAM
(DDR_256MB_32MX64) and used the linker symbol _TEXT_START_ADDR to
modify the starting address of my program. However, these instructions
are when using mb-gcc compiler.



A very simple program has been written to display a simple output
using xil_printf() which works on the default memory settings but not
when the linker script is used to map object files to RAM.



Are there any suggestions on to how this can be done?



Priyantha

Reply With Quote
  #2 (permalink)  
Old 11-19-2007, 02:14 AM
Alan Nishioka
Guest
 
Posts: n/a
Default Re: mb-g++ linker script problem 8.2i

On Nov 18, 5:36 pm, Bathala <[email protected]> wrote:
> I've tried generating a linker script to map the input object files
> (.text, .rodata, .sdata2, .data , .sdata, .sbss, .bss ) on to RAM
> (DDR_256MB_32MX64) and used the linker symbol _TEXT_START_ADDR to
> modify the starting address of my program. However, these instructions
> are when using mb-gcc compiler.


If you just want to run from RAM and aren't trying to do anything
weird (like put text in ROM, some data in fast RAM and other data in
slow RAM on alternate Tuesdays), just use the default linker script
and set the Program Start Address, Stack and Heap size. This puts
text followed by data followed by stack followed by heap in one big
block starting from the given start address.

These options are set with right click on Applications tab/Project,
then select Set Compiler Options... Uncheck Use Custom Linker Script.

Remember, you can't load external RAM from an fpga boot prom. You
must load it with XMD or your own loader.

If you are doing something weird, someone else is going to have to
help you.

Alan Nishioka
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Bootloader Linker Script Help Marco FPGA 0 08-26-2005 09:23 AM
linker script!!! [email protected] FPGA 2 06-13-2005 11:46 PM
linker script [email protected] FPGA 1 06-08-2005 11:02 PM
linker script Tom FPGA 1 11-13-2003 05:26 PM


All times are GMT +1. The time now is 08:40 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0
Copyright 2008 @ FPGA Central. All rights reserved