ExtIO.dll?

Discussions related to embedded firmware, driver, and user mode application software development
bpadalino
Posts: 303
Joined: Mon Mar 04, 2013 4:53 pm

Re: ExtIO.dll?

Post by bpadalino »

The current branch builds a dll and has a rudimentary CLI you can use. There are some reported issues with different xhci's in Windows - some work and some don't. One of our developers with a Renesas xhci had to upgrade to the latest drivers before it would work properly.

The wiki has notes on getting started building for Windows. Hearing feedback if it works/doesn't is always helpful.
SDR-Radio.com
Posts: 101
Joined: Thu Jul 25, 2013 3:28 am

Re: ExtIO.dll?

Post by SDR-Radio.com »

Thanks,

I'll see if I can get this compiled over the weekend - if so I'll buy the bladeRF.
dsalomon
Posts: 25
Joined: Fri Jul 19, 2013 4:56 pm

Re: ExtIO.dll?

Post by dsalomon »

i was able to do the windows build today. I'm using the 64-bit libusb. The Blade connects on USB2 and USB3 (but only on my ASMedia USB3 controller, NOT on my VIA USB3 controller). When I run the CLI, it tells me it's in legacy mode (expected). I'm stopped at trying to load the FX3 firmware - the flash fails with the following info:

E:\Temp\BladeRF_Win\BladeRF-CLI>bladerf-cli -f latest.img
[INFO] Using libusb version 1.0.16.10774
[INFO] Found a bladeRF
[ERROR] Failed to retrieve serial number
[INFO] Claimed all inferfaces successfully
********************************************************************************
* ENTERING LEGACY MODE, PLEASE UPGRADE TO THE LATEST FIRMWARE BY RUNNING:
* wget http://nuand.com/fx3/latest.img ; bladeRF-cli -f latest.img
********************************************************************************
Flashing firmware...
[INFO] Legacy change to interface 2
[INFO] Erasing 3 sectors starting @ sector 0
[ERROR] Failed to erase sector 0
[ERROR] Received erase failure status from FX3.
Error: failed to flash firmware: File or device I/O failure
Could not flash firmware

Any ideas?
dsalomon
Posts: 25
Joined: Fri Jul 19, 2013 4:56 pm

Re: ExtIO.dll?

Post by dsalomon »

Also tried it with the previous image (1.2.img), which also failed.
spcutler
Posts: 28
Joined: Fri Mar 01, 2013 3:12 am

Re: ExtIO.dll?

Post by spcutler »

dsalomon wrote:Any ideas?
I don't know, but I see exactly the same error. I have a thread going here, but I haven't found an answer yet.
dsalomon
Posts: 25
Joined: Fri Jul 19, 2013 4:56 pm

Re: ExtIO.dll?

Post by dsalomon »

Ahhh...thanks. I guess I could've searched before posting. Doh.
dsalomon
Posts: 25
Joined: Fri Jul 19, 2013 4:56 pm

Re: ExtIO.dll?

Post by dsalomon »

spcutler -

i was chatting with BzztPloink on the #bladerf IRC node, explaining this problem. He checked the source, and fixed it. You can either wait until he merges the change into the source and do a get, or just make the change to the source, as follows (this is what I did):

(7:56:54 PM) BzztPloink: http://pastebin.com/pKH5t8Mf
(7:57:10 PM) BzztPloink: in libusb.c replace the change_setting function with this

After making the change, recompile and it should work. I was just able to load the "latest.img" firmware file to the FX chip, then load the FPGA, then receive samples.

Woo hoo! :-)
LazyDodo
Posts: 30
Joined: Fri Mar 01, 2013 6:49 am

Re: ExtIO.dll?

Post by LazyDodo »

That paste expires in 23 hours, but by then with a bit of luck it got merged already.
syntroniks
Posts: 19
Joined: Fri Mar 01, 2013 9:28 am

Re: ExtIO.dll?

Post by syntroniks »

If there has been any development on the extio.dll front, I'd be happy to do some testing. After successfully building the bladerf platform for windows, I now have nothing to do with it!! (except for bladeRF-cli rx/tx but that is boring :P )
LazyDodo
Posts: 30
Joined: Fri Mar 01, 2013 6:49 am

Re: ExtIO.dll?

Post by LazyDodo »

I've been distracted lately, and plagued by usb controller issues on windows. I just got my SDR# code working (literally minutes ago) again with the official libs since those now offer windows support, I'll eventually get to extio support, but i wouldn't count on it anytime soon, same goes for the release of my sdr# code, it's just not good enough yet.
dsalomon
Posts: 25
Joined: Fri Jul 19, 2013 4:56 pm

Re: ExtIO.dll?

Post by dsalomon »

I've been out of town for almost a week, returning late tomorrow night. I haven't had time to play with what you previously sent me. Can I get an update with the same caveats as before?
LazyDodo
Posts: 30
Joined: Fri Mar 01, 2013 6:49 am

Re: ExtIO.dll?

Post by LazyDodo »

I have done no updates to the extio code i send you.
dsalomon
Posts: 25
Joined: Fri Jul 19, 2013 4:56 pm

Re: ExtIO.dll?

Post by dsalomon »

Sorry, got confused...forgot it was the Extio and not the SDR# code. Too many balls in the air.
syntroniks
Posts: 19
Joined: Fri Mar 01, 2013 9:28 am

Re: ExtIO.dll?

Post by syntroniks »

I am relatively well versed in C# development (3.5 and 4.0) so let me know if I can lend a hand. I do have a working windows library but have not investigated a bridge between the bladeRF and sdr#. Looks like you're doing that, I'm excited :D
UT4UDT
Posts: 1
Joined: Sun Sep 29, 2013 11:29 am

Re: ExtIO.dll?

Post by UT4UDT »

Hi all!
http://www.radio-astronomy.org/67ophjwe ... hi_res.pdf
From this doc:
"As we go forward, we will integrate our software with the Nuand code (our software is already freely 
available thru Sourceforge). Presently, they are using some software from GNU radio. We think that our 
software and expertise will prove to be valuable in a joint effort."
Maybe need ask about ...?
Post Reply