06-23-2015 03:35 AM
I am using ISE14.7 tool. I have a mixed ISE,EDK project. I am going to make mcs file so I need to initialize BRAM contents of bit file. I run DATA2MEM command as is described in user manual:
data2mem -bm my.bmm -bd code.elf -bt my.bit -o b new.bit
However, it doesn't change the BRAM contents of new bit file.
I am wondering how I can insert elf file information to my bit file. It seems that neither ISE nor SDK can do it properly.
I would appreciate any help and advice.
06-23-2015 11:07 PM
there is a data2mem debugging guide that will be helpful in debugging this problem further.
did you get a chance to look at this? http://www.xilinx.com/Attachment/Xilinx_Answer_46945_Data2Mem_Usage_and_Debugging_Guide.pdf
06-24-2015 01:06 AM
One quick test to try is to check that the BMM memory location matches what you have in your ELF.
In your data2mem command you are not using a tag, so this will assume you are usng the first block found in the BMM file.
Note: you may just have one anyway, which is fine too.
So, lets assume that this address range goes from 0x00000000 to 0x00001fff. If you dissassemble your ELF file
Note: you can disassemble usng the command below (or open the linker script):
mb-objdump -S path/to/elf/file -d > dump.txt
Check the location where your application is placed in BRAM. this needs to match the range in your BMM file.
Hope this helps?
06-24-2015 03:08 AM
Do I have to use tag microblaze_0 ?
I didn't see any note in this regard in Data2Mem user guide. However, when I look into the SDK log file I see that it uses this tag. What is it used for?
06-24-2015 12:28 PM
09-15-2017 03:12 AM
Do you have solved your problem， I have the same question now.