Unable to load FPGA image

Having issues with the site, hardware, source code, or any other issues?
Post Reply
anderson.reloaded
Posts: 1
Joined: Thu Nov 21, 2024 10:52 pm

Unable to load FPGA image

Post by anderson.reloaded »

Hi Folks,

I am relatively new to the ecosystem of bladeRF SDR setup. Currently using the latest git version of bladeRF on Ubuntu 24.04 LTS.
Have been trying to load FPGA image for bladerf 2.0 A4 using the command 'bladerf-cli'
[VERBOSE @ host/libraries/libbladeRF/src/backend/usb/libusb.c:642] Using libusb version: 1.0.27.11882
[VERBOSE @ host/libraries/libbladeRF/src/backend/usb/libusb.c:519] Found a bladeRF (idx=1)
[DEBUG @ host/libraries/libbladeRF/src/backend/usb/libusb.c:189] Bus 001 Device 005: Nuand bladeRF 2.0, serial xxx
[VERBOSE @ host/libraries/libbladeRF/src/backend/usb/libusb.c:581] USB port reset succeeded for bladeRF xxx
[VERBOSE @ host/libraries/libbladeRF/src/backend/usb/usb.c:106] Changing to USB alt setting 0
[VERBOSE @ host/libraries/libbladeRF/src/board/bladerf2/bladerf2.c:293] Read Firmware version: 2.4.0-git-a3d5c55f
[VERBOSE @ host/libraries/libbladeRF/src/board/bladerf2/bladerf2.c:299] Capability mask before FPGA load: 0x0000007f00000000
[VERBOSE @ host/libraries/libbladeRF/src/board/bladerf1/flash.c:401] Found SPI flash manufacturer: WINBOND.
[VERBOSE @ host/libraries/libbladeRF/src/board/bladerf1/flash.c:404] Found SPI flash device: W25Q32JV (32 Mbit).
[VERBOSE @ host/libraries/libbladeRF/src/board/bladerf1/flash.c:452] SPI flash total size = 32 Mbit
[VERBOSE @ host/libraries/libbladeRF/src/board/bladerf1/flash.c:453] SPI flash page size = 256 bytes
[VERBOSE @ host/libraries/libbladeRF/src/board/bladerf1/flash.c:454] SPI flash erase block size = 65536 bytes
[VERBOSE @ host/libraries/libbladeRF/src/board/bladerf1/flash.c:455] SPI flash number of pages = 16384
[VERBOSE @ host/libraries/libbladeRF/src/board/bladerf1/flash.c:456] SPI flash number of erase blocks = 64 pages
[VERBOSE @ host/libraries/libbladeRF/src/backend/usb/usb.c:106] Changing to USB alt setting 2
[VERBOSE @ host/libraries/libbladeRF/src/backend/usb/usb.c:106] Changing to USB alt setting 3
[DEBUG @ host/libraries/libbladeRF/src/board/bladerf2/bladerf2.c:447] Loading FPGA from: /usr/share/Nuand/bladeRF/hostedxA4.rbf
[VERBOSE @ host/libraries/libbladeRF/src/backend/usb/usb.c:106] Changing to USB alt setting 3
[DEBUG @ host/libraries/libbladeRF/src/backend/usb/libusb.c:950] lusb_control_transfer failed: status = -7
[DEBUG @ host/libraries/libbladeRF/src/backend/usb/usb.c:430] Failed to initiate FPGA programming: Operation timed out
[ERROR @ host/libraries/libbladeRF/src/board/bladerf2/bladerf2.c:457] bladerf2_open: dev->backend->load_fpga(dev, buf, buf_size) failed: Operation timed out
[VERBOSE @ host/libraries/libbladeRF/src/device_calibration.c:248] Freeing gain calibration table
[VERBOSE @ host/libraries/libbladeRF/src/device_calibration.c:248] Freeing gain calibration table
[VERBOSE @ host/libraries/libbladeRF/src/device_calibration.c:248] Freeing gain calibration table
[VERBOSE @ host/libraries/libbladeRF/src/device_calibration.c:248] Freeing gain calibration table
Failed to open device (first available): Operation timed out
dianshi
Posts: 5
Joined: Sat Jul 20, 2024 3:03 pm
Contact:

Re: Unable to load FPGA image

Post by dianshi »

What commands do you run can you share? And where did you got the firmware for BladeRF A4?

Code: Select all

bladeRF-cli --lib-version
will show you the libbladerf version
anderson.reloaded
Posts: 1
Joined: Thu Nov 21, 2024 10:52 pm

Re: Unable to load FPGA image

Post by anderson.reloaded »

Hi Dianshi,

Thank you for responding. The output of the command 'bladeRF-cli --lib-version' is '2.5.1-git-fe3304d7'
The firmware is the latest version downloaded from nuand website bladeRF_fw_v2.4.0.img
Using 'bladeRF-cli -v verbose -i' command for interacting with the board.

Cheers
dianshi
Posts: 5
Joined: Sat Jul 20, 2024 3:03 pm
Contact:

Re: Unable to load FPGA image

Post by dianshi »

Hi, I don't recognize firmware name here is list and link https://www.nuand.com/fpga_images/ to FPGA images.

What command do you use to load firmware?
anderson.reloaded
Posts: 1
Joined: Thu Nov 21, 2024 10:52 pm

Re: Unable to load FPGA image

Post by anderson.reloaded »

Before loading the FPGA bit stream, I have successfully updated the firmware with the latest image
as mentioned in my previous response using 'bladeRF-cli -f'.

Subsequently, the FPGA image available from the nuand website ''hostedxA4.rbf" is being attempted to load, which is failing.
dianshi
Posts: 5
Joined: Sat Jul 20, 2024 3:03 pm
Contact:

Re: Unable to load FPGA image

Post by dianshi »

Hi, I dont see anywhere mentioned command "bladerRF-cli -f" used.

From logs the in first message I see its reports library version 2.4.0. While command that you sharing shows 2.5.0, have you compiled the libraries by your own?

I have Ubuntu 22.04 LTS and using default commands and latest firmware.
Post Reply