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
lib_usb 3.1.1 problem?
-
- Member
- Posts: 12
- Joined: Mon Aug 10, 2015 8:55 pm
-
- XCore Legend
- Posts: 1913
- Joined: Thu Jun 10, 2010 11:43 am
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.
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.
-
Verified
- XCore Legend
- Posts: 1149
- Joined: Thu Dec 10, 2009 9:20 pm
- Location: Bristol, UK
Thanks for the report, here is a fix (effects U-series only, introduced in 3.1.0)
Will get 3.1.2 out as soon as we can.
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);
-
- Member
- Posts: 12
- Joined: Mon Aug 10, 2015 8:55 pm
Thanks, I missed that post in my original search.
-
- Active Member
- Posts: 43
- Joined: Wed Apr 06, 2011 8:02 pm
Any word on a release of 3.1.2?
-
Verified
- XCore Legend
- Posts: 1149
- Joined: Thu Dec 10, 2009 9:20 pm
- Location: Bristol, UK
Website was updated with lib_usb version 3.1.2 on 2016-05-19
-
- XCore Addict
- Posts: 230
- Joined: Wed Mar 10, 2010 12:46 pm
3.1.2 was released to the xmos.com website on 2016-05-19.