Serial device (ttyACM0) keeps reconnecting since v1.7
I can't get my serial device to work since v1.7. I'm running
$ uname -a
Linux 5.2.11-arch1-1-ARCH #1 SMP PREEMPT Thu Aug 29 08:09:36 UTC 2019 x86_64 GNU/Linux
I've attached an excerpt of dmesg
's output after plugging in the running card10 at the bottom of this issue.
The ttyACM device gets an immediate disconnect after being loaded, sometimes with a
[ 3669.174629] usb 9-5: can't set config #1, error -62
or
[ 3667.922690] usb 9-5: unable to read config index 0 descriptor/all
[ 3667.922697] usb 9-5: can't read configurations, error -62
error message sprinkled in.
Attaching the card10 in bootloader mode works fine. The problem does not exist with firmware version v1.6. The difference from the dmesg
logs seems to be the Product string:
Product: MAX32665 CDC-ACM
(v1.6)
vs
Product: CARD10 USB GADGET
(>=v1.7)
dmesg excerpt:
[ 3666.447041] usb 9-5: new full-speed USB device number 38 using ohci-pci
[ 3666.632687] usb 9-5: New USB device found, idVendor=0b6a, idProduct=003c, bcdDevice= 1.00
[ 3666.632694] usb 9-5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 3666.632697] usb 9-5: Product: CARD10 USB GADGET
[ 3666.632701] usb 9-5: Manufacturer: Maxim Integrated
[ 3666.634846] cdc_acm 9-5:1.0: ttyACM0: USB ACM device
[ 3666.687008] usb 9-5: USB disconnect, device number 38
[ 3667.103720] usb 9-5: new full-speed USB device number 39 using ohci-pci
[ 3667.287680] usb 9-5: New USB device found, idVendor=0b6a, idProduct=003c, bcdDevice= 1.00
[ 3667.287687] usb 9-5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 3667.287691] usb 9-5: Product: CARD10 USB GADGET
[ 3667.287694] usb 9-5: Manufacturer: Maxim Integrated
[ 3667.289829] cdc_acm 9-5:1.0: ttyACM0: USB ACM device
[ 3667.453801] usb 9-5: USB disconnect, device number 39
[ 3667.740373] usb 9-5: new full-speed USB device number 40 using ohci-pci
[ 3667.922690] usb 9-5: unable to read config index 0 descriptor/all
[ 3667.922697] usb 9-5: can't read configurations, error -62
[ 3668.350392] usb 9-5: new full-speed USB device number 41 using ohci-pci
[ 3668.534692] usb 9-5: New USB device found, idVendor=0b6a, idProduct=003c, bcdDevice= 1.00
[ 3668.534699] usb 9-5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 3668.534703] usb 9-5: Product: CARD10 USB GADGET
[ 3668.534706] usb 9-5: Manufacturer: Maxim Integrated
[ 3668.536864] cdc_acm 9-5:1.0: ttyACM0: USB ACM device
[ 3668.707161] usb 9-5: USB disconnect, device number 41
[ 3668.990387] usb 9-5: new full-speed USB device number 42 using ohci-pci
[ 3669.172693] usb 9-5: string descriptor 0 read error: -62
[ 3669.172702] usb 9-5: New USB device found, idVendor=0b6a, idProduct=003c, bcdDevice= 1.00
[ 3669.172707] usb 9-5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 3669.174629] usb 9-5: can't set config #1, error -62
[ 3669.174828] usb 9-5: USB disconnect, device number 42
[ 3669.600417] usb 9-5: new full-speed USB device number 43 using ohci-pci
[ 3673.950436] usb 9-5: new full-speed USB device number 44 using ohci-pci
[ 3674.139753] usb 9-5: New USB device found, idVendor=0b6a, idProduct=003c, bcdDevice= 1.00
[ 3674.139759] usb 9-5: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 3674.139763] usb 9-5: Product: CARD10 USB GADGET
[ 3674.139766] usb 9-5: Manufacturer: Maxim Integrated
[ 3674.141911] cdc_acm 9-5:1.0: ttyACM0: USB ACM device
[ 3674.183882] usb 9-5: USB disconnect, device number 44