Page 1 of 1

lib_usb 3.1.1 problem?

Posted: Tue Mar 22, 2016 3:33 pm
by ejolson9
This is just a heads up if others run into similar issues. I recently got back to developing with xmos and am starting from the example code.

For AN00136 (2.1.2), it doesn't appear to work with lib_usb 3.1.1 . It does work with lib_usb 3.0.0. Note that the required lib in the documentation is version 3.1.0, but it is surprising that the latest version would not work.

The exact issue is that windows doesn't even recognize the device ( says something like the device has malfunctioned, vid/pid=0x0000).

edit: forgot to say this is on an XP-SKC-U16 development kit aka slicekit u16

Re: lib_usb 3.1.1 problem?

Posted: Tue Mar 22, 2016 3:43 pm
by mon2
Thanks for your post. Your observation appears to align with this post of similar raised issues:

http://www.xcore.com/forum/viewtopic.php?f=47&t=4386

Our testing of the USB kit went well but we performed our testing over a year so ago and likely with an older USB library release.

Re: lib_usb 3.1.1 problem?

Posted: Tue Mar 22, 2016 6:26 pm
by Ross
Thanks for the report, here is a fix (effects U-series only, introduced in 3.1.0)

Code: Select all

--- a/lib_usb/xudlib/XUD_Manager.xc
+++ b/lib_usb/xudlib/XUD_Manager.xc
@@ -685,7 +685,7 @@ static int XUD_Manager_loop(XUD_chan epChans0[], XUD_chan epChans[],  chanend ?c
 
 #endif
 
-#if (defined(ARCH_L) && !defined(ARCH_X200)) || defined(ARCH_G)
+#if (defined(ARCH_L) && !defined(ARCH_X200) && !defined(ARCH_S)) || defined(ARCH_G)
         /* For L/G series we wait for clock from phy then enable logic */
         unsigned UIFM_MODE = 2;
         XUD_UIFM_Enable(UIFM_MODE);

Will get 3.1.2 out as soon as we can.

Re: lib_usb 3.1.1 problem?

Posted: Wed Mar 23, 2016 11:20 pm
by ejolson9
Thanks, I missed that post in my original search.

Re: lib_usb 3.1.1 problem?

Posted: Mon May 02, 2016 8:37 pm
by data
Any word on a release of 3.1.2?

Re: lib_usb 3.1.1 problem?

Posted: Fri Aug 26, 2016 11:09 am
by Ross
Website was updated with lib_usb version 3.1.2 on 2016-05-19

Re: lib_usb 3.1.1 problem?

Posted: Fri Aug 26, 2016 11:12 am
by peter
3.1.2 was released to the xmos.com website on 2016-05-19.