Sign in

username:

password:



Not a member?

Search Comp.Arch.FPGA



Search tips

fpga by Keywords

Altera | ASIC | CPLD | Cyclone | DCM | DDR | DSP | Ethernet | ISE | JTAG | Linux | LVDS | Microblaze | ML310 | Modelsim | NIOS | OPB | PCI | Quartus | RocketIO | SDRAM | Spartan | Spartan3 | SRAM | Stratix | Verilog | VHDL | Virtex | Virtex-4 | Virtex-II | Xilinx | XST

Ads

See Also

DSPEmbedded SystemsElectronics

Comp.Arch.FPGA | data2mem and rodata/data (Xilinx)

There are 3 messages in this thread.

You are currently looking at messages 0 to 3.

data2mem and rodata/data (Xilinx) - n5ac - 2010-02-23 15:40:00

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

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

Thanks,
Steve

	   
					
---------------------------------------		
Posted through http://www.FPGARelated.com



Re: data2mem and rodata/data (Xilinx) - 2010-02-23 18:30:00

"n5ac" <n...@n5ac.com> 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?

Re: data2mem and rodata/data (Xilinx) - n5ac - 2010-02-24 12:24:00

>> 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 filefor
>> 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 thelinker script but it didn't occur to me to place everything in .text.  Thisdid fix the problem. Unfortunately I did have to add the .bss section whichis very large because of the structures I have in memory so thissignificantly increases the size of my PROM image, but it did solve theproblem. 

Thanks!	   
					
---------------------------------------		
Posted through http://www.FPGARelated.com