EDAboard.com | EDAboard.eu | EDAboard.de | EDAboard.co.uk | RTV forum PL | NewsGroups PL

data2mem and rodata/data (Xilinx)

elektroda.net NewsGroups Forum Index - FPGA - data2mem and rodata/data (Xilinx)

n5ac
Guest

Tue Feb 23, 2010 9:40 pm   



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

Petter Gustad
Guest

Wed Feb 24, 2010 12:30 am   



"n5ac" <n5ac_at_n5ac.com> writes:

Quote:
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?

n5ac
Guest

Wed Feb 24, 2010 6:24 pm   



Quote:
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

elektroda.net NewsGroups Forum Index - FPGA - data2mem and rodata/data (Xilinx)

Arabic versionBulgarian versionCatalan versionCzech versionDanish versionGerman versionGreek versionEnglish versionSpanish versionFinnish versionFrench versionHindi versionCroatian versionIndonesian versionItalian versionHebrew versionJapanese versionKorean versionLithuanian versionLatvian versionDutch versionNorwegian versionPolish versionPortuguese versionRomanian versionRussian versionSlovak versionSlovenian versionSerbian versionSwedish versionTagalog versionUkrainian versionVietnamese versionChinese version
RTV map EDAboard.com map News map EDAboard.eu map EDAboard.de map EDAboard.co.uk map Opony