lib_usb 3.1.1 problem?

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

lib_usb 3.1.1 problem?

Postby ejolson9 » Tue Mar 22, 2016 3:33 pm

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: 1756
Joined: Thu Jun 10, 2010 11:43 am

Postby mon2 » Tue Mar 22, 2016 3:43 pm

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: 768
Joined: Thu Dec 10, 2009 9:20 pm

Postby Ross » Tue Mar 22, 2016 6:26 pm

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

Postby ejolson9 » Wed Mar 23, 2016 11:20 pm

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

Postby data » Mon May 02, 2016 8:37 pm

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

Postby Ross » Fri Aug 26, 2016 11:09 am

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

Postby peter » Fri Aug 26, 2016 11:12 am

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

Who is online

Users browsing this forum: No registered users and 3 guests