FPGA lawmaking not loading: 'unexpected error' ?

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

Moderator: robert.ghilduta

djrevmoon
Posts: 30
Joined: Fri Mar 01, 2013 4:37 am

FPGA code not loading: 'unexpected error' ?

The file is there, bladrf-cli works in both interative and batch mode, bladeRF is seen as device. Merely FPGA volition not load:

#bladeRF-cli -b -l ./hostedx40.rbf
Loading fpga...
Error: failed to load FPGA: An unexpected error occurred
Could not load fpga

Any hints?

djrevmoon
Posts: thirty
Joined: Friday Mar 01, 2013 iv:37 am

Re: FPGA code not loading: 'unexpected fault' ?

Post by djrevmoon »

Hi,

yes, its the correct fpga version. I rebuilt with debug but doesnt really help me much:

# bladeRF-cli
[DEBUG /root/sandbox/bladeRF/host/libraries/libbladeRF/src/backend/libusb.c:249] Found a bladeRF
[DEBUG /root/sandbox/bladeRF/host/libraries/libbladeRF/src/backend/libusb.c:315] Claimed all inferfaces successfully
[DEBUG /root/sandbox/bladeRF/host/libraries/libbladeRF/src/bladerf.c:132] bladerf_open: fw=v1.1 serial=0bb3137c20ae145a367357ddd61cb4ae trim=0xa755 fpga_size=xl
bladeRF> load fpga hostedx40.rbf
Loading fpga from hostedx40.rbf...
[DEBUG /root/sandbox/bladeRF/host/libraries/libbladeRF/src/backend/libusb.c:219] Change to alternating interface 0

Fault: An unexpected error occurred

bladeRF>

Potentially important fact: I'thousand running on a Parallels VM Ubuntu on a MacBook. Seeing as the last error message is from libusb, there might be something fishy with the USB3 support in VM'south??

drelectro
Posts: 8
Joined: Fri Mar 01, 2013 three:03 pm

Re: FPGA code not loading: 'unexpected error' ?

Post by drelectro »

I am also seeing the same behaviour on a native Mint install and then I doubtable this may not be a VM result:-

Code: Select all

                  [email protected] ~/ntc-build/gnuradio/bladeRF/host $ bladeRF-cli -l ../hdl/hostedx40.rbf  [DEBUG /home/mike/ntc-build/gnuradio/bladeRF/host/libraries/libbladeRF/src/backend/libusb.c:249] Plant a bladeRF [DEBUG /dwelling house/mike/ntc-build/gnuradio/bladeRF/host/libraries/libbladeRF/src/backend/libusb.c:315] Claimed all inferfaces successfully [DEBUG /home/mike/ntc-build/gnuradio/bladeRF/host/libraries/libbladeRF/src/bladerf.c:129] bladerf_open: fw=v1.1 serial=407d3f0895d72b8885ceaa771ce9086a trim=0x99f5 fpga_size=40 Loading fpga... [DEBUG /home/mike/ntc-build/gnuradio/bladeRF/host/libraries/libbladeRF/src/backend/libusb.c:219] Change to alternate interface 0 Error: failed to load FPGA: An unexpected mistake occurred Could non load fpga bladeRF>                                  
drelectro
Posts: 8
Joined: Fri Mar 01, 2013 three:03 pm

Re: FPGA code not loading: 'unexpected error' ?

Postal service by drelectro »

I now have it working :D

I re-built the FX3 FW from source, flashed that and it then flare-up into life.
I then tried re-flashing the latest.img downloaded from naund.com and approximate what ? that worked too.

Then I guess something must have gone wobbly during the update from V1.0 to V1.i

bpadalino
Posts: 303
Joined: Mon Mar 04, 2013 4:53 pm

Re: FPGA code not loading: 'unexpected fault' ?

Post by bpadalino »

djrevmoon wrote:Tonight I volition endeavour on a native ubuntu auto. Will study the results. Is there any way to get more debug info?

If you invoke the CLI equally such:

Y'all should get more information. We just change the logging machinery over the weekend to be more than granular. Y'all should come across a lot more than debug messages coming out.

Also, exist certain to check the Wiki regarding setup on Ubuntu - we've had a lot of reported success with that.

Let usa know how it goes.

djrevmoon
Posts: 30
Joined: Fri Mar 01, 2013 4:37 am

Re: FPGA lawmaking not loading: 'unexpected error' ?

Post by djrevmoon »

Hello,

I built the FX3 fw from source, just like previous poster, and flashed that succesfully, but it still wont accept any fpga code.
bladeRF-cli -i -v debug doesnt do much, merely cloned the git repo and built again. But no more info than previously:

# bladeRF-cli -b -fifty hostedx40.rbf
[DEBUG /root/sandbox/bladeRF/host/libraries/libbladeRF/src/backend/libusb.c:249] Constitute a bladeRF
[DEBUG /root/sandbox/bladeRF/host/libraries/libbladeRF/src/backend/libusb.c:315] Claimed all inferfaces successfully
[DEBUG /root/sandbox/bladeRF/host/libraries/libbladeRF/src/bladerf.c:132] bladerf_open: fw=v1.1 serial=0bb3137c20ae145a367357ddd61cb4ae trim=0xa755 fpga_size=40
Loading fpga...
[DEBUG /root/sandbox/bladeRF/host/libraries/libbladeRF/src/backend/libusb.c:219] Change to alternate interface 0
Error: failed to load FPGA: An unexpected error occurred
Could not load fpga
[DEBUG /root/sandbox/bladeRF/host/libraries/libbladeRF/src/backend/libusb.c:871] could non access peripheral
[DEBUG /root/sandbox/bladeRF/host/libraries/libbladeRF/src/backend/libusb.c:871] could non access peripheral

I'll endeavour on a native linux auto tonight and update here......

djrevmoon
Posts: 30
Joined: Fri Mar 01, 2013 4:37 am

Re: FPGA code not loading: 'unexpected error' ?

Mail service by djrevmoon »

Ok, so I tried on a native linux machine (merely it but had USB2.0) and I could flash the FPGA code.

I and then went back to my Ubuntu VM, and switched off USB3.0 support in Parallels. I was and then also as well able to load the FPGA code. Switch dorsum on USB3 support and no FPGA load possible. And then I tin can confirm this is a USB outcome.

At present struggling to become some usefull output from the device, but take gqrx running with information technology....

Thanks!!