lib_usb 3.1.1 problem?

Technical discussions related to any XMOS development kit or reference design. Eg XK-1A, sliceKIT, etc.
Post Reply
ejolson9
Member
Posts: 12
Joined: Mon Aug 10, 2015 8:55 pm

lib_usb 3.1.1 problem?

Post 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


User avatar
mon2
XCore Legend
Posts: 1913
Joined: Thu Jun 10, 2010 11:43 am
Contact:

Post 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.
User avatar
Ross
XCore Expert
Posts: 962
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post 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.
ejolson9
Member
Posts: 12
Joined: Mon Aug 10, 2015 8:55 pm

Post by ejolson9 »

Thanks, I missed that post in my original search.
User avatar
data
Active Member
Posts: 43
Joined: Wed Apr 06, 2011 8:02 pm

Post by data »

Any word on a release of 3.1.2?
User avatar
Ross
XCore Expert
Posts: 962
Joined: Thu Dec 10, 2009 9:20 pm
Location: Bristol, UK

Post by Ross »

Website was updated with lib_usb version 3.1.2 on 2016-05-19
peter
XCore Addict
Posts: 230
Joined: Wed Mar 10, 2010 12:46 pm

Post by peter »

3.1.2 was released to the xmos.com website on 2016-05-19.
Post Reply