Gentoo Archives: gentoo-user

From: R0b0t1 <r030t1@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] USB device (ATtiny86 w. mcronucleus bootloader) not recognized ?
Date: Thu, 17 Aug 2017 07:21:04
Message-Id: CAAD4mYh2ZzFtxAFw1JOJpeoSvSZpSyd94Nm-ty=uWjBN-FFH0A@mail.gmail.com
In Reply to: Re: [gentoo-user] USB device (ATtiny86 w. mcronucleus bootloader) not recognized ? by R0b0t1
1 On Wed, Aug 16, 2017 at 11:32 PM, R0b0t1 <r030t1@×××××.com> wrote:
2 > Hello again, I believe I have cause to bring this thread back to life.
3 >
4 > On Sun, Aug 6, 2017 at 11:50 AM, <tuxic@××××××.de> wrote:
5 >> When I plug in such a little board into my PC, demesg
6 >> reports:
7 >> [ 1429.834140] usb 7-4: new low-speed USB device number 15 using ohci-pci
8 >> [ 1429.965142] usb 7-4: device descriptor read/64, error -62
9 >> [ 1430.203151] usb 7-4: device descriptor read/64, error -62
10 >> [ 1430.438161] usb 7-4: new low-speed USB device number 16 using ohci-pci
11 >> [ 1430.569151] usb 7-4: device descriptor read/64, error -62
12 >> [ 1430.803174] usb 7-4: device descriptor read/64, error -62
13 >> [ 1431.038184] usb 7-4: new low-speed USB device number 17 using ohci-pci
14 >> [ 1431.456157] usb 7-4: device not accepting address 17, error -62
15 >> [ 1431.582204] usb 7-4: new low-speed USB device number 18 using ohci-pci
16 >> [ 1432.000209] usb 7-4: device not accepting address 18, error -62
17 >> [ 1432.000244] usb usb7-port4: unable to enumerate USB device
18 >>
19 >
20 > This is with a NUCLEO-L432KC, an STM32 development board:
21 >
22 > [1817074.986238] usb usb3-port14: unable to enumerate USB device
23 > [1817075.429167] usb 3-14: new low-speed USB device number 50 using xhci_hcd
24 > [1817075.586133] usb 3-14: device descriptor read/64, error -71
25 > [1817075.847136] usb 3-14: device descriptor read/64, error -71
26 > [1817076.110100] usb 3-14: new low-speed USB device number 51 using xhci_hcd
27 > [1817076.267102] usb 3-14: device descriptor read/64, error -71
28 > [1817076.527036] usb 3-14: device descriptor read/64, error -71
29 > [1817076.790003] usb 3-14: new low-speed USB device number 52 using xhci_hcd
30 > [1817076.790470] usb 3-14: Device not responding to setup address.
31 > [1817076.994569] usb 3-14: Device not responding to setup address.
32 > [1817077.201986] usb 3-14: device not accepting address 52, error -71
33 > [1817077.357969] usb 3-14: new low-speed USB device number 53 using xhci_hcd
34 > [1817077.358525] usb 3-14: Device not responding to setup address.
35 > [1817077.562503] usb 3-14: Device not responding to setup address.
36 > [1817077.769930] usb 3-14: device not accepting address 53, error -71
37 > [1817077.769959] usb usb3-port14: unable to enumerate USB device
38 > [1817080.134131] usb 3-5: USB disconnect, device number 29
39 >
40 > Admittedly, I cut apart a USB cable and am using socketed pin headers
41 > to attach it to the development board (I'd like to keep it looking
42 > nice). However, this same board properly identifies as a USB CDC
43 > device to Windows.
44 >
45 > There may be an issue with the kernel driver, Meino. I'm going to see
46 > how I should follow up on this. Can you test your ATtiny85 with
47 > Windows?
48 >
49
50 The fix was switching USB D+ and D-. My USB cable had them backwards
51 (green is supposed to be D+, but there is a popular StackExchange
52 answer with it reversed).
53
54 [1826600.135854] usb 3-14: New USB device found, idVendor=0483, idProduct=5740
55 [1826600.135855] usb 3-14: New USB device strings: Mfr=1, Product=2,
56 SerialNumber=3
57 [1826600.135856] usb 3-14: Product: STM32 Virtual ComPort
58 [1826600.135857] usb 3-14: Manufacturer: STMicroelectronics
59 [1826600.135857] usb 3-14: SerialNumber: 00000000001A
60 [1826600.136272] cdc_acm 3-14:1.0: ttyACM0: USB ACM device
61
62 Notice how it registers as a fullspeed device. Device detection relies
63 on how D+ and D- are used. It seems this isn't applicable to your
64 device then, but it's something to check.
65
66 What is strange is if this is wired improperly it shows up on some
67 Windows hardware. I need to check again.
68
69 R0b0t1.