FX2: Device not accepting address (dmesg/usbmon output incl.)

Stephan Esterhuizen <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
I just finished a PCB design with the Cypress FX2LP (CY7C68013A-100AC).
When I plug the device into a linux box, I get "device not accepting
address" errors. 

Since this is such a simple interface: Power up FX2 and connect D+/D-/GND
to host controller, I suspect that the problem might be with my D- and D+
traces, but would like other people's input. Please see below for dmesg
and usbmon output.

I have a few questions:

1) I tried decoding the setup packets but it is not a 'standard device
request' but a 'class request', shouldn't it be the former or am I missing
something?

2) Is the fx2lp actually working? I suspect it is because according to
usbmon, the fx2lp responded to the first setup packet with:

e89de2c0 1532923663 C Ci:001:00 0 4 = 01050100

3) If the fx2lp is actually responding to usb requests, why is it not
accepting the address the host is trying to assign to it?

I have a slew of other fx2lp devices which all work, this is the first
one that is on a custom PCB. When examining D-/D+ on a scope, things look
fine.

Any insight will be greatly appreciated.

---------- dmesg -------------
Jun 13 13:29:15 toga2 kernel: usb 1-1: device not accepting address 15,
error -71 
Jun 13 13:29:15 toga2 kernel: usb 1-1: new full speed USB device using
uhci_hcd and address 16 
Jun 13 13:29:15 toga2 kernel: usb 1-1: uhci_result_common: failed with
status 440000 
Jun 13 13:29:15 toga2 kernel: usb 1-1: uhci_result_common: failed with
status 440000 
Jun 13 13:29:15 toga2 kernel: usb 1-1: device not accepting address 16,
error -71 
Jun 13 13:29:15 toga2 kernel: hub 1-0:1.0: state 7 ports 2 chg 0000 evt
0002 
------------------------------

---------- dmesg (high verbosity) -------------
Jun 16 09:49:18 toga2 kernel: usb 1-1: uhci_result_common: failed with status 440000
Jun 16 09:49:18 toga2 kernel: [f78f46c0] CTL QH link (378f4422) element (37dd5240)
Jun 16 09:49:18 toga2 kernel: urb_priv [e37b4330] urb [f77ce1c0] qh [f78f46c0] Dev=0 EP=0(IN) CTL Actlen=0
Jun 16 09:49:18 toga2 kernel:     1: [f7dd5240] link (37dd51b0) e0 Stalled CRC/Timeo Length=7 MaxLen=7 DT0 EndPt=0 Dev=0, PID=2d(SETUP) (buf=35e87d80)
Jun 16 09:49:18 toga2 kernel:     2: [f7dd51b0] link (37dd51e0) e3 SPD Active Length=0 MaxLen=3f DT1 EndPt=0 Dev=0, PID=69(IN) (buf=37a53e80)
Jun 16 09:49:18 toga2 kernel:     3: [f7dd51e0] link (37dd5270) e3 IOC Active Length=0 MaxLen=7ff DT1 EndPt=0 Dev=0, PID=e1(OUT) (buf=00000000)
Jun 16 09:49:18 toga2 kernel:   Dummy TD
Jun 16 09:49:18 toga2 kernel: [f7dd5270] link (37dd51b0) e0 Length=0
MaxLen=7ff DT0 EndPt=0 Dev=0, PID=e1(OUT) (buf=00000000)

------------------------------

--------- usbmon -------------
f7dd8840 1483781836 C Ii:001:01 0 2 = 0200
f7dd8840 1483781854 S Ii:001:01 -115 2 <
e89deac0 1483781878 S Ci:001:00 s a3 00 0000 0001 0004 4 <
e89deac0 1483781892 C Ci:001:00 0 4 = 01050100
e89deac0 1483781897 S Co:001:00 s 23 01 0010 0001 0000 0
e89deac0 1483781902 C Co:001:00 0 0
e89deac0 1483781909 S Ci:001:00 s a3 00 0000 0001 0004 4 <
e89deac0 1483781913 C Ci:001:00 0 4 = 01050000
e89deac0 1483813891 S Ci:001:00 s a3 00 0000 0001 0004 4 <
e89deac0 1483813900 C Ci:001:00 0 4 = 01050000
e89deac0 1483845835 S Ci:001:00 s a3 00 0000 0001 0004 4 <
e89deac0 1483845843 C Ci:001:00 0 4 = 01050000
e89deac0 1483877834 S Ci:001:00 s a3 00 0000 0001 0004 4 <
e89deac0 1483877841 C Ci:001:00 0 4 = 01050000
e89deac0 1483909898 S Ci:001:00 s a3 00 0000 0001 0004 4 <
e89deac0 1483909906 C Ci:001:00 0 4 = 01050000
e89deac0 1483909927 S Co:001:00 s 23 03 0004 0001 0000 0
e89deac0 1483909933 C Co:001:00 0 0
e89deac0 1483965835 S Ci:001:00 s a3 00 0000 0001 0004 4 <
e89deac0 1483966025 C Ci:001:00 0 4 = 00001000
e89deac0 1483966030 S Co:001:00 s 23 01 0014 0001 0000 0
e89deac0 1483966034 C Co:001:00 0 0
e89deac0 1483966038 S Co:001:00 s 23 01 0001 0001 0000 0
e89deac0 1483966042 C Co:001:00 0 0
e89deac0 1483966050 S Co:001:00 s 23 01 0001 0001 0000 0
e89deac0 1483966053 C Co:001:00 0 0

-------------------------

And as an example of what usbmon displays for another fx2 device that
works properly:

--------- usbmon (development FX2, device works properly) -------------
f7dd8840 1532923596 C Ii:001:01 0 2 = 0200
f7dd8840 1532923618 S Ii:001:01 -115 2 <
e89de2c0 1532923647 S Ci:001:00 s a3 00 0000 0001 0004 4 <
e89de2c0 1532923663 C Ci:001:00 0 4 = 01050100
e89de2c0 1532923667 S Co:001:00 s 23 01 0010 0001 0000 0
e89de2c0 1532923674 C Co:001:00 0 0
e89de2c0 1532923682 S Ci:001:00 s a3 00 0000 0001 0004 4 <
e89de2c0 1532923685 C Ci:001:00 0 4 = 01050000
e89de2c0 1532955586 S Ci:001:00 s a3 00 0000 0001 0004 4 <
e89de2c0 1532955595 C Ci:001:00 0 4 = 01050000
e89de2c0 1532987566 S Ci:001:00 s a3 00 0000 0001 0004 4 <
e89de2c0 1532987575 C Ci:001:00 0 4 = 01050000
e89de2c0 1533019585 S Ci:001:00 s a3 00 0000 0001 0004 4 <
e89de2c0 1533019593 C Ci:001:00 0 4 = 01050000
e89de2c0 1533051583 S Ci:001:00 s a3 00 0000 0001 0004 4 <
e89de2c0 1533051591 C Ci:001:00 0 4 = 01050000
e89de2c0 1533051613 S Co:001:00 s 23 03 0004 0001 0000 0
e89de2c0 1533051619 C Co:001:00 0 0
e89de2c0 1533107573 S Ci:001:00 s a3 00 0000 0001 0004 4 <
e89de2c0 1533107803 C Ci:001:00 0 4 = 03051000
e89de2c0 1533163585 S Co:001:00 s 23 01 0014 0001 0000 0
e89de2c0 1533163594 C Co:001:00 0 0
e89de2c0 1533163611 S Co:000:00 s 00 05 0030 0000 0000 0
e89de2c0 1533163690 C Co:000:00 0 0
e89de2c0 1533183595 S Ci:048:00 s 80 06 0100 0000 0008 8 <
e89de2c0 1533183701 C Ci:048:00 0 8 = 12010002 ffffff40
e89de2c0 1533183712 S Ci:048:00 s 80 06 0100 0000 0012 18 <
e89de2c0 1533183823 C Ci:048:00 0 18 = 12010002 ffffff40 bb0f0100 02010102
0601
e89de2c0 1533183844 S Ci:048:00 s 80 06 0200 0000 0009 9 <
e89de2c0 1533183948 C Ci:048:00 0 9 = 09023200 030100c0 00
e89de2c0 1533183957 S Ci:048:00 s 80 06 0200 0000 0032 50 <
e89de2c0 1533184072 C Ci:048:00 0 50 = 09023200 030100c0 00090400 0000ffff
ff030904 010001ff ffff0407 05020200
e89de2c0 1533184088 S Ci:048:00 s 80 06 0300 0000 00ff 255 <
e89de2c0 1533184200 C Ci:048:00 0 6 = 06030000 0904
---- snip -----


--------------------------
-- 


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
[email protected]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.