When looking in device manager, change the view to by connection and see if there is a hub and usb host controller as a parent and grandparents to your device. If yes, you have installed your driver on a usb enumerated device. If not, you have created a root enumerated device and usb commands don’t work on it.
d
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of Tim Roberts
Sent: Tuesday, June 4, 2013 9:36 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] new to usb and wdf
xxxxx@gmail.com wrote:
i debugged with driver in step 4…, it fails as
WdfUsbTargetDeviceSelectConfig fails with 0xc000000d
That’s STATUS_INVALID_PARAMETER. How much have you modified the sample driver? Assuming you really do have the OSR FX2 learning kit, you should be able to compile the sample driver without changes and have it load and run.
Have you already described how you installed this driver? If you used “devcon install”, then that is your problem, and we can advise you on how to fix it.
when i plugin the device, osr usb fx 2 is visible in device manager as
Computer Name -> Sample Device -> WDF Sample driver for osr usb fx2
learning kit
is that a problem, it should be in usb device stack…
i think i need some changes in inf file.
No, you don’t. In Device Manager, things are listed by their function, not by device type. The difference can be subtle, but look at the display. The USB section is entitled “Universal Serial Bus controllers”. That section is designed to show only the USB host controller and its hubs. It is NOT intended to show all USB devices.
Instead, USB devices should be shown in a category that describes what they DO. USB cameras appear in “Imaging devices”. USB keyboards appear under “Keyboards”. USB speakers appear under “Sound, video and game controllers”.
The OSR learning kit does not fit any pre-defined category, so they made up their own. That’s absolutely the correct thing to do.
–
Tim Roberts, xxxxx@probo.com
Providenza & Boekelheide, Inc.
NTDEV is sponsored by OSR
OSR is HIRING!! See http://www.osr.com/careers
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer