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 02-23-2010, 09:40 PM
n5ac
Guest
 
Posts: n/a
Default data2mem and rodata/data (Xilinx)

I have just constructed a bootloader for a Xilinx FPGA. I am trying to get
my main application converted to MCS using the flow described in XAPP482
(run data2mem and then xapp482.exe). The issue I'm having is that data2mem
seems to ignore .rodata and .data sections in the .elf file, leaving me
with uninitialized memory after a boot.

Is there a way to get data2mem to include these sections or is there
another way to read the ELF file and get it combined with an MCS file for
burning in the PROM that includes these sections?

Thanks,
Steve



---------------------------------------
Posted through http://www.FPGARelated.com
Reply With Quote
  #2 (permalink)  
Old 02-24-2010, 12:30 AM
Petter Gustad
Guest
 
Posts: n/a
Default Re: data2mem and rodata/data (Xilinx)

"n5ac" <[email protected]> writes:

> Is there a way to get data2mem to include these sections or is there
> another way to read the ELF file and get it combined with an MCS file for
> burning in the PROM that includes these sections?


It's been a while since I used the Xilinx tools, but in general you
should be able to modify the linker script to put your .rodata into
..text or .css (or whatever data2mem will include).

Petter

--
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?
Reply With Quote
  #3 (permalink)  
Old 02-24-2010, 06:24 PM
n5ac
Guest
 
Posts: n/a
Default Re: data2mem and rodata/data (Xilinx)

>> Is there a way to get data2mem to include these sections or is there
>> another way to read the ELF file and get it combined with an MCS fil

for
>> burning in the PROM that includes these sections?

>
>It's been a while since I used the Xilinx tools, but in general you
>should be able to modify the linker script to put your .rodata into
>.text or .css (or whatever data2mem will include).
>
>Petter


Petter -- not sure why I didn't think of this! I had been working with th
linker script but it didn't occur to me to place everything in .text. Thi
did fix the problem. Unfortunately I did have to add the .bss section whic
is very large because of the structures I have in memory so thi
significantly increases the size of my PROM image, but it did solve th
problem.

Thanks!

---------------------------------------
Posted through http://www.FPGARelated.com
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
Data2Mem ? BlockRAM ? Init BMM and MEM de4 FPGA 10 02-23-2010 09:40 PM
Data2Mem with CRC for Virtex FPGAs John D. Davis FPGA 6 10-14-2008 10:11 AM
data2mem crash Sylvain Munaut FPGA 1 03-09-2007 11:28 AM
Data2Mem usage - help required Robert FPGA 5 10-19-2005 07:51 AM
DATA2MEM, how do I get the ELF file? Lin MuIin FPGA 2 03-20-2005 12:05 PM


All times are GMT +1. The time now is 08:34 AM.


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