There are 3 messages in this thread.
You are currently looking at messages 0 to 3.
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
"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?
>> 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