FX3 flash error
Posted: Sat Jul 27, 2013 7:18 pm
I was trying to get bladeRF to work with the osmocom source block in gnuradio-companion, however something seems to have gone wrong and now whenever I attempt to flash the FX3 image i get a very generic error:
bladeRF> load fx3 bladeRF.img
Flashing firmware...
Error: An unexpected error occurred
Preceding this, I had put the following into the osmocom source block under the "device arguments" section:
bladerf=2,fpga='/apps/bladeRF/hdl/quartus/hostedx40.rbf',fw='/apps/bladeRF/fx3_firmware/bladeRF.img'
Then I executed the flow graph and it started loading the FPGA and FX3 images, then failed on the FX3 image with error -1 (I believe), and then my inability to load the firmware via any method appeared.
I can still load the FPGA image, and the bladerf-cli program still sees the device and returns:
bladeRF> probe
Path: /dev/bladerf2
Serial: 0x0000000000000000
Firmware: v0.3
FPGA: v0.0
Any help to fix this would be much appreciated. Thanks.
EDIT:
So, this is the error it currently gives when I run in gnuradio companion, although I can't guarantee this is the error I saw when it failed the first time and it started erroring on the firmware load:
gr-osmosdr v0.1.0-6-g93ad959d (0.1.1git) gnuradio v3.7.0-76-g752fe88b
built-in source types: file osmosdr fcd rtl rtl_tcp uhd hackrf bladerf
Loading FPGA bitstream /apps/bladeRF/hdl/quartus/hostedx40.rbf...
The FPGA bitstream has been successfully loaded.
Flashing firmware image /apps/bladeRF/fx3_firmware/bladeRF.img..., DO NOT INTERRUPT!
bladerf_flash_firmware has failed with -1
Using nuand LLC bladeRF #2 SN 0000000000000000 FW v0.3 FPGA v0.0
Failed to read samples: File or device I/O failure
bladeRF> load fx3 bladeRF.img
Flashing firmware...
Error: An unexpected error occurred
Preceding this, I had put the following into the osmocom source block under the "device arguments" section:
bladerf=2,fpga='/apps/bladeRF/hdl/quartus/hostedx40.rbf',fw='/apps/bladeRF/fx3_firmware/bladeRF.img'
Then I executed the flow graph and it started loading the FPGA and FX3 images, then failed on the FX3 image with error -1 (I believe), and then my inability to load the firmware via any method appeared.
I can still load the FPGA image, and the bladerf-cli program still sees the device and returns:
bladeRF> probe
Path: /dev/bladerf2
Serial: 0x0000000000000000
Firmware: v0.3
FPGA: v0.0
Any help to fix this would be much appreciated. Thanks.
EDIT:
So, this is the error it currently gives when I run in gnuradio companion, although I can't guarantee this is the error I saw when it failed the first time and it started erroring on the firmware load:
gr-osmosdr v0.1.0-6-g93ad959d (0.1.1git) gnuradio v3.7.0-76-g752fe88b
built-in source types: file osmosdr fcd rtl rtl_tcp uhd hackrf bladerf
Loading FPGA bitstream /apps/bladeRF/hdl/quartus/hostedx40.rbf...
The FPGA bitstream has been successfully loaded.
Flashing firmware image /apps/bladeRF/fx3_firmware/bladeRF.img..., DO NOT INTERRUPT!
bladerf_flash_firmware has failed with -1
Using nuand LLC bladeRF #2 SN 0000000000000000 FW v0.3 FPGA v0.0
Failed to read samples: File or device I/O failure