UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor bmudhoo
Visitor
176 Views
Registered: ‎07-07-2018

How to add 2 ELF files in a bitstream ?

Hi,

I have a design with one MicroBlaze.
For some reason, I want to merge two ELF files within the bitstream.
My first ELF file (top1.elf) starts at @0x00000050 in BRAM
My second ELF file (top2.elf) starts at @0x00008000 in BRAM

I tried the following commands :
=> updatemem -bit top.bit -meminfo top.mmi -data top1.elf -proc system_i/microblaze_1 -out first_out.bit
=> updatemem -bit first_out.bit -meminfo top.mmi -data top2.elf -proc system_i/microblaze_1 -out top_out.bit

But unfortunately, it doesn't work !!

Any idea ?

Thanks.

 

2 Replies
Moderator
Moderator
117 Views
Registered: ‎10-06-2016

Re: How to add 2 ELF files in a bitstream ?

Hi @bmudhoo 

I don't think Updatemem does support to merge two ELF files within the bitstream. According to UG898 you can merge two ELF file to different instances, so you could maybe try to use use the same processor on both -proc properties? The other idea might be to create mem files and manually merge both and then use the merged mem file to generate the bitstream.

Regards


Ibai
Don’t forget to reply, kudo, and accept as solution.
0 Kudos
Adventurer
Adventurer
110 Views
Registered: ‎10-12-2018

Re: How to add 2 ELF files in a bitstream ?

Hi @bmudhoo 

What about merge elf first? Use gcc linker.

Please read this or this post.

Ps.: Can you describe why do you need this?

0 Kudos