Re: SetAltInterface() error 31
Johny Gudlik <[email protected]>
| Newsgroups | gmane.comp.lib.libusb.devel.windows |
|---|---|
| Message-ID | <CADKz-bXkcqL=RQrEJ54N0mtfwTeRahste_v6pwsKBC1inCbSJg@mail.gmail.com> |
Hello, You're right. It is a firmware bug. If I disable some endpoint in USB configuration than mcu can't correctly set alternate settings. All endpoins must be enabled then all working just fine. Thank you, Milan 2014-05-05 7:32 GMT+02:00 Xiaofan Chen <[email protected]>: > On Sun, May 4, 2014 at 9:15 PM, Johny Gudlik <[email protected]> wrote: > > > > Hello, > > I have problem with USB on SAM3S2C (user board) configured as USB device > > Vendor Class (it is my first project with USB). I can't set alternate > > setting to 1 of the interface 0. Device is opened successfully, but I get > > error in function SetAltInterface() - 31 (0x1F) (ERROR_GEN_FAILURE A > > device attached to the system is not functioning). > > > > I'm using libusbK 3.0.7.0., Windows 7. > > USB: 2.0, Full speed > > > > What am I doing wrong? > > This could be a FW bug. Have you check your firmware codes to > see if you are handling the set alternative interface request > correctly? > > You can also use the debug version of libusbK to install the > check version of the driver and then use DebugView to > capture the debug information and post it to this mailing > list. > > Chk version of libusbK: > http://sourceforge.net/projects/libusbk/files/libusbK-release/3.0.7.0/ > You can download libusbK-3.0.7.0-bin-chk.7z. > > 1) Unzip the archive > 2) Run the chk version of the inf-wizard to replace the driver > with the device plug-in. > 3) Plug-out your device > 4) Run DebugView in admin mode and enable "Capture > Kernel" and "Enable Verbose Kernel Output". > 5) Plug-in your device and then run your program > http://technet.microsoft.com/en-us/sysinternals/bb896647.aspx > 6) Post the message from DebugView. > > > -- > Xiaofan > > > ------------------------------------------------------------------------------ > Is your legacy SCM system holding you back? Join Perforce May 7 to find > out: > • 3 signs your SCM is hindering your productivity > • Requirements for releasing software faster > • Expert tips and advice for migrating your SCM now > http://p.sf.net/sfu/perforce > _______________________________________________ > Libusb-win32-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel > ------------------------------------------------------------------------------ Is your legacy SCM system holding you back? Join Perforce May 7 to find out: • 3 signs your SCM is hindering your productivity • Requirements for releasing software faster • Expert tips and advice for migrating your SCM now http://p.sf.net/sfu/perforce _______________________________________________ Libusb-win32-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel