Problem updating FPGA for SPI flash autoloading

Having issues with the site, hardware, source code, or any other issues?

Moderator: robert.ghilduta

Post Reply
ZodiacTiger
Posts: 2
Joined: Wed Jan 16, 2019 1:51 am

Problem updating FPGA for SPI flash autoloading

Post by ZodiacTiger » Thu Feb 27, 2020 9:22 pm

I had my bladeRF 2.0 set to autoload the FPGA from flash. Recently I decided to revert back to manual loading. I tried this on my macbook and an ubuntu laptop, but I've had no luck. I'm baffled by the error messages. Notice that a segfault occurs. Could my SPI flash be damaged?

Any help would be appreciated, thanks.

Ben

Code: Select all

zero5 bladerf-fpga-images$ bladeRF-cli -L X -v verbose
[VERBOSE @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/backend/usb/libusb.c:642] Using libusb version: 1.0.23.11397
[VERBOSE @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/backend/usb/libusb.c:519] Found a bladeRF (idx=0)
[DEBUG @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/backend/usb/libusb.c:191] Bus 020 Device 011: Nuand bladeRF 2.0, serial b7fbe141e78b476cb90c2cdac17c1a37
[VERBOSE @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/backend/usb/usb.c:106] Changing to USB alt setting 0
[VERBOSE @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/board/bladerf2/bladerf2.c:292] Read Firmware version: 2.3.2
[VERBOSE @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/board/bladerf2/bladerf2.c:299] Capability mask before FPGA load: 0x0000003f00000000
[VERBOSE @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/board/bladerf1/flash.c:399] Found SPI flash manufacturer: WINBOND.
[VERBOSE @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/board/bladerf1/flash.c:402] Found SPI flash device: W25Q32JV (32 Mbit).
[VERBOSE @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/board/bladerf1/flash.c:445] SPI flash total size = 32 Mbit
[VERBOSE @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/board/bladerf1/flash.c:446] SPI flash page size = 256 bytes
[VERBOSE @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/board/bladerf1/flash.c:447] SPI flash erase block size = 65536 bytes
[VERBOSE @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/board/bladerf1/flash.c:448] SPI flash number of pages = 16384
[VERBOSE @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/board/bladerf1/flash.c:449] SPI flash number of erase blocks = 64 pages
[VERBOSE @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/backend/usb/usb.c:106] Changing to USB alt setting 2
[DEBUG @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/backend/usb/usb.c:131] Reporting no FPGA present - BLADERF_FORCE_NO_FPGA_PRESENT is set.
[VERBOSE @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/backend/usb/usb.c:106] Changing to USB alt setting 3
[DEBUG @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/board/bladerf2/bladerf2.c:407] Skipping FPGA configuration and initialization - BLADERF_FORCE_NO_FPGA_PRESENT is set.
Erasing stored FPGA to disable autoloading...
Segmentation fault: 11

Code: Select all

zero5 bladerf-fpga-images$ bladeRF-cli -L hostedxA4.0.10.2.rbf -v verbose
[VERBOSE @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/backend/usb/libusb.c:642] Using libusb version: 1.0.23.11397
[VERBOSE @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/backend/usb/libusb.c:519] Found a bladeRF (idx=0)
[DEBUG @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/backend/usb/libusb.c:191] Bus 020 Device 011: Nuand bladeRF 2.0, serial b7fbe141e78b476cb90c2cdac17c1a37
[VERBOSE @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/backend/usb/usb.c:106] Changing to USB alt setting 0
[VERBOSE @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/board/bladerf2/bladerf2.c:292] Read Firmware version: 2.3.2
[VERBOSE @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/board/bladerf2/bladerf2.c:299] Capability mask before FPGA load: 0x0000003f00000000
[VERBOSE @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/board/bladerf1/flash.c:399] Found SPI flash manufacturer: WINBOND.
[VERBOSE @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/board/bladerf1/flash.c:402] Found SPI flash device: W25Q32JV (32 Mbit).
[VERBOSE @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/board/bladerf1/flash.c:445] SPI flash total size = 32 Mbit
[VERBOSE @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/board/bladerf1/flash.c:446] SPI flash page size = 256 bytes
[VERBOSE @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/board/bladerf1/flash.c:447] SPI flash erase block size = 65536 bytes
[VERBOSE @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/board/bladerf1/flash.c:448] SPI flash number of pages = 16384
[VERBOSE @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/board/bladerf1/flash.c:449] SPI flash number of erase blocks = 64 pages
[VERBOSE @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/backend/usb/usb.c:106] Changing to USB alt setting 2
[DEBUG @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/backend/usb/usb.c:131] Reporting no FPGA present - BLADERF_FORCE_NO_FPGA_PRESENT is set.
[VERBOSE @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/backend/usb/usb.c:106] Changing to USB alt setting 3
[DEBUG @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/board/bladerf2/bladerf2.c:407] Skipping FPGA configuration and initialization - BLADERF_FORCE_NO_FPGA_PRESENT is set.
Writing FPGA to flash for autoloading...
Segmentation fault: 11

Code: Select all

zero5 bladerf-fpga-images$ bladeRF-cli -l hostedxA4.0.10.2.rbf -v verbose
[VERBOSE @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/backend/usb/libusb.c:642] Using libusb version: 1.0.23.11397
[VERBOSE @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/backend/usb/libusb.c:519] Found a bladeRF (idx=0)
[DEBUG @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/backend/usb/libusb.c:191] Bus 020 Device 012: Nuand bladeRF 2.0, serial b7fbe141e78b476cb90c2cdac17c1a37
[VERBOSE @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/backend/usb/usb.c:106] Changing to USB alt setting 0
[VERBOSE @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/board/bladerf2/bladerf2.c:292] Read Firmware version: 2.3.2
[VERBOSE @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/board/bladerf2/bladerf2.c:299] Capability mask before FPGA load: 0x0000003f00000000
[VERBOSE @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/board/bladerf1/flash.c:399] Found SPI flash manufacturer: WINBOND.
[VERBOSE @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/board/bladerf1/flash.c:402] Found SPI flash device: W25Q32JV (32 Mbit).
[VERBOSE @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/board/bladerf1/flash.c:445] SPI flash total size = 32 Mbit
[VERBOSE @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/board/bladerf1/flash.c:446] SPI flash page size = 256 bytes
[VERBOSE @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/board/bladerf1/flash.c:447] SPI flash erase block size = 65536 bytes
[VERBOSE @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/board/bladerf1/flash.c:448] SPI flash number of pages = 16384
[VERBOSE @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/board/bladerf1/flash.c:449] SPI flash number of erase blocks = 64 pages
[VERBOSE @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/backend/usb/usb.c:106] Changing to USB alt setting 2
[DEBUG @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/backend/usb/usb.c:131] Reporting no FPGA present - BLADERF_FORCE_NO_FPGA_PRESENT is set.
[VERBOSE @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/backend/usb/usb.c:106] Changing to USB alt setting 3
[DEBUG @ /Users/zero5/rf/bladerf/host/libraries/libbladeRF/src/board/bladerf2/bladerf2.c:407] Skipping FPGA configuration and initialization - BLADERF_FORCE_NO_FPGA_PRESENT is set.
Loading fpga...
Segmentation fault: 11

robert.ghilduta
Posts: 73
Joined: Thu Feb 28, 2013 11:14 pm

Re: Problem updating FPGA for SPI flash autoloading

Post by robert.ghilduta » Tue Apr 28, 2020 11:07 pm

The segmentation fault is pretty weird... any chance you could try this on a Linux based machine?

Also, what version of libbladeRF are you using? If you're using macports or brew can you compile from scratch from the recent Github?

ZodiacTiger
Posts: 2
Joined: Wed Jan 16, 2019 1:51 am

Re: Problem updating FPGA for SPI flash autoloading

Post by ZodiacTiger » Thu May 07, 2020 8:08 pm

It does seem to be a strange issue. I've tried the process in every way on my 2015 Macbook Pro (using USB 3.0), A Linux VM image(Ubuntu 16.04), a 2017 Mac desktop(using USB 3.0), and lastly a 2011 Mac desktop. Inexplicably, using the 2011 Mac desktop with older version of libbladerf(2018), I was able to erase my FPGA and disable autoloading with no issues whatsoever. I assume its something in the newer libbladerf or libusb thats causing the behavior and seg fault.

I'm curious, have you tried to erase the FPGA & disable autoloading with the latest libbladerf?

Post Reply