Issues loading .bit file on FPGA

dedicated to the FPGA topics for all Red Pitaya programmers
juretrn
Posts: 110
Joined: Tue Nov 16, 2021 11:38 am

Re: Issues loading .bit file on FPGA

Post by juretrn » Mon Sep 04, 2023 8:37 am

Which Red Pitaya do you have? And for which model did you build the FPGA image?

After trying some things, I found that I get an I/O error if I use an incorrect image.
Fo example, if you made an image for Zynq 7010, but your model is a Zynq 7020, then the loading fails.

User avatar
redpitaya
Site Admin
Posts: 912
Joined: Wed Mar 26, 2014 7:04 pm

Re: Issues loading .bit file on FPGA

Post by redpitaya » Mon Sep 04, 2023 12:24 pm

Juretr, please correct me if I am wrong, but from the command, Juretr sent loads an FPGA file that ends with .bit.bin, but Mattias, you are loading just a .bin file.

juretrn
Posts: 110
Joined: Tue Nov 16, 2021 11:38 am

Re: Issues loading .bit file on FPGA

Post by juretrn » Mon Sep 04, 2023 1:35 pm

The fpgautil doesn't care about file endings. It just tries to get the contents of the specified file into the FPGA device. It's just that the files created by our FPGA Makefile get this ending because of how we create them. In general, bit and .bin are very similar, except for the header IIRC.

Mattias
Posts: 4
Joined: Sun Aug 06, 2023 7:44 pm

Re: Issues loading .bit file on FPGA

Post by Mattias » Mon Sep 04, 2023 8:41 pm

Hello,
I use the 7010. In Vivado it is set that both the *.bit and the *.bin file should be built. I can successfully load the *.bit file in the old version with "cat *.bit > /dev/xdevcfg. But I can't load the *.bin file from the same build under OS 2.0 with fpgautil ....
Do I have to set the flags for the FPGA manager beforehand?
What does "Error: Overlay already exists in the live tree" mean?
Thank you for your help,
Mattias

juretrn
Posts: 110
Joined: Tue Nov 16, 2021 11:38 am

Re: Issues loading .bit file on FPGA

Post by juretrn » Tue Sep 05, 2023 8:10 am

I see. Then the problem is that your build is probably too old. Because the OS 2.00 uses a different mechanism to load the design, the project must also be compiled slightly differently.
The bin file is generated using the Xilinx "bootgen" tool. Bootgen is a part of Xilinx SDK 2019.1, so you will have to install that if you don't have it.
If SDK is installed, but bootgen is not found, you must add it to PATH:

Code: Select all

.  /path/to/SDK/2019.1/settings64.sh
This tool accepts .bif files and outputs a .bin file that is compatible with fpgautil.
The .bif file must contain the following:

Code: Select all

all:{path/to/file.bit}
Then, bootgen must be called:

Code: Select all

bootgen -image path/to/file.bif -arch zynq -process_bitstream bin
This outputs a file named {original name of bit file}.bin .

This process is already handled within our FPGA Makefile, so perhaps you can adapt your project to be built using that.

Post Reply
jadalnie klasyczne ekskluzywne meble wypoczynkowe do salonu ekskluzywne meble tapicerowane ekskluzywne meble do sypialni ekskluzywne meble włoskie

Who is online

Users browsing this forum: No registered users and 33 guests