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!

Generate .bit file with .elf files

Reply
Highlighted
Visitor
Posts: 3
Registered: ‎01-12-2018

Generate .bit file with .elf files

Hello everyone,

 

For our project, we have a Microblaze in a Kintex 7 custom design board. The design also include an AXI DDR3 interface. The bitstream in generated in Vivado 2017.3 and the hardware is exported to SDK as system.hdf and system.bit files.

 

In SDK, we have wrote our application, which is quite large and doesn't fit in the BRAM of the Microblaze. We are able to program the fpga with the bootloop.elf and system.bit file and are able to debug it on the hardware platform.

 

We know want to create a unique .bit file which contains our fpga bitstream, the bootloop.elf and the appli.elf files in order to configure the FPGA and loat the content of the Microblaze at startup. We don't have any flash, the .bit file is dumped from a PC, goes through an FX3 device and is pushed via Select SlaveMAP method to the FPGA.

 

Updatemem tool seems a good choice but it failed each time because the memory range is not correct (0x80000000:0x8001718B) according to the definition in the MMI file.

 

How can we create our .bit file ?

 

Best regards,

Scholar
Posts: 1,869
Registered: ‎03-22-2016

Re: Generate .bit file with .elf files

@c.fauvel  Bootgen (or Xilinx Tools/Create boot image) can create multiple partitions since 2014.4 I believe. Just add your FSBL, bit file and then all ELFs in sequence.

vitorian.com --- We do this for fun. Always give kudos. Accept as solution if your question was answered.
I will not answer to personal messages - use the forums instead.
Visitor
Posts: 3
Registered: ‎01-12-2018

Re: Generate .bit file with .elf files

@hbucher, Bootgen seems to be usable only for Zynq based SOC, we only have a Kintex 7 FPGA. The output format is a BIF file not a .BIT file. What is the meaning of FSBL ?

Scholar
Posts: 1,869
Registered: ‎03-22-2016

Re: Generate .bit file with .elf files

[ Edited ]

@c.fauvel FSBL = first stage boot loader. 

It is the ELF that is responsible for copying the executables in the boot media and placing them in the target memory.

Bootgen creates .BIT files. 

https://forums.xilinx.com/t5/Embedded-Processor-System-Design/microblaze-bootloader-reading-application-srec/td-p/767888

 

 

vitorian.com --- We do this for fun. Always give kudos. Accept as solution if your question was answered.
I will not answer to personal messages - use the forums instead.
Moderator
Posts: 1,022
Registered: ‎09-12-2007

Re: Generate .bit file with .elf files

Updatemem is used for populating the bram with the data from the elf or mem file. This won’t work for DDR. You will need to use the debugger to download the elf here.

You will need to use a flash if you want to do this without the debugger, or increase you bram to allow you application to fit here.