Gentoo Archives: gentoo-user

From: Stefan Mark <mark@××××××××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] USB device (ATtiny86 w. mcronucleus bootloader) not recognized ?
Date: Mon, 07 Aug 2017 09:21:37
Message-Id: 20170807112105.645686db@vdhh-linux
In Reply to: [gentoo-user] USB device (ATtiny86 w. mcronucleus bootloader) not recognized ? by tuxic@posteo.de
1 On Sun, 6 Aug 2017 18:50:07 +0200
2 tuxic@××××××.de wrote:
3
4 > Hi,
5 >
6 > sorry, this will become a little longish...
7 >
8 > Background: To program an ATMEL ATtiny85 via USB
9 > without a dedicated USB chip there is a bootloader
10 > called "micornucleys", which bitbangs the USB protocoll.
11 > This mechanism is used in Digistupms Digispark ATTtiny
12 > developmnent board (http://digistump.com/products/1).
13 >
14 > So far so ....nice?
15 >
16 > When I plug in such a little board into my PC, demesg
17 > reports:
18 > [ 1429.834140] usb 7-4: new low-speed USB device number 15 using
19 > ohci-pci [ 1429.965142] usb 7-4: device descriptor read/64, error -62
20 > [ 1430.203151] usb 7-4: device descriptor read/64, error -62
21 > [ 1430.438161] usb 7-4: new low-speed USB device number 16 using
22 > ohci-pci [ 1430.569151] usb 7-4: device descriptor read/64, error -62
23 > [ 1430.803174] usb 7-4: device descriptor read/64, error -62
24 > [ 1431.038184] usb 7-4: new low-speed USB device number 17 using
25 > ohci-pci [ 1431.456157] usb 7-4: device not accepting address 17,
26 > error -62 [ 1431.582204] usb 7-4: new low-speed USB device number 18
27 > using ohci-pci [ 1432.000209] usb 7-4: device not accepting address
28 > 18, error -62 [ 1432.000244] usb usb7-port4: unable to enumerate USB
29 > device
30 >
31 > or similiar. lsusb does not show anything related at all.
32 >
33 That usually happens when the improvised USB is not good enough. Try a
34 different port, maybe put a USB Hub between. Check if the resistors and
35 diodes for the level shifting are the right ones (measure the
36 resistors, especially if you are not using 5% types). If that does not
37 work, try a different diode/resistor combination (For example, usbasp
38 uses 5v6 zener and 68/2k2 resistor, littlewire 3v6 zener and 27/1k2
39 resistor. I have seen others too. I had at least one which never
40 worked with my laptop).
41
42 > As recommended on related pages on the internet, I installed
43 > dedicated udev rules to show the needed ttyACM device. But
44 > since the kernel itsself fails to accept the device, the best
45 > udev rules will not work.
46 >
47 > My first thought was: The micronucleus bootloaed is missing or
48 > is defective...
49 >
50 > But plugging in the board into my Android tablet (the tablet runs
51 > Lollipop and is nothing special at all beside being rooted) via
52 > an OTG cable and using lsusb after that, it shows
53 > Bus 001 Device 003 ID 16d0:0753 MCS Digistump DigiSpark
54 Some ports are more forgiving than others. These soft-usb-thingies tend
55 to be a bit rough, especially the level conversion seems to be a bit
56 icky :)
57 I have a usbasp which works always and everywhere i tested it just
58 perfectly. One of my littlewires is a bit wonky (it sometimes looses
59 connection and needs a few tries until it works again). Another one
60 works fine, but not on every device.

Replies