atsamd: itsybitsy_m4/examples/usb_serial.rs is broken - older version works

usb_serial.rs in master seems to be broken (at least on the ItsyBitsy M4 Express) - that is: no debug output comes out of the UART and no ACM device is enumerated with lsusb

However, if i checkout https://github.com/atsamd-rs/atsamd/blob/15d084c99b5cfed81b71d2d6f29123f47c2baf6f/boards/itsybitsy_m4/examples/usb_serial.rs this version works fine: device is shown in lsusb, debug messages are dumped over the UART and can set the led colour over the ACM device etc.

I can see in the roadmap the UARTv2 may replace this, so this may be a won’t fix item, but raising anyway.

Using:

rustc --version 
rustc 1.53.0 (53cb7b09b 2021-06-17)

and ItsyBitsy M4 Express

Hope this helps

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 21 (20 by maintainers)

Most upvoted comments

So, using PAC v0.10 disabling CMCC does nothing…but on v0.11 the builtin led starts on color purple. Still not getting this thing to work, but at least now dmesg says something

[34097.439917] usb 1-5: new full-speed USB device number 55 using xhci_hcd
[34097.580892] usb 1-5: unable to get BOS descriptor or descriptor too short
[34097.581935] usb 1-5: unable to read config index 0 descriptor/start: -32
[34097.581942] usb 1-5: chopping to 0 config(s)
[34097.581946] usb 1-5: can't read configurations, error -32
[34097.703218] usb 1-5: new full-speed USB device number 56 using xhci_hcd
[34097.843893] usb 1-5: unable to get BOS descriptor or descriptor too short
[34097.844866] usb 1-5: unable to read config index 0 descriptor/start: -32
[34097.844869] usb 1-5: chopping to 0 config(s)
[34097.844870] usb 1-5: can't read configurations, error -32
[34097.844898] usb usb1-port5: attempt power cycle
[34098.246529] usb 1-5: new full-speed USB device number 57 using xhci_hcd
[34098.264400] usb 1-5: unable to get BOS descriptor or descriptor too short
[34098.265458] usb 1-5: unable to read config index 0 descriptor/start: -32
[34098.265465] usb 1-5: chopping to 0 config(s)
[34098.265469] usb 1-5: can't read configurations, error -32
[34098.386516] usb 1-5: new full-speed USB device number 58 using xhci_hcd
[34098.404465] usb 1-5: unable to get BOS descriptor or descriptor too short
[34098.405533] usb 1-5: unable to read config index 0 descriptor/start: -32
[34098.405541] usb 1-5: chopping to 0 config(s)
[34098.405545] usb 1-5: can't read configurations, error -32
[34098.405616] usb usb1-port5: unable to enumerate USB device

About de PAC: ICB is not in version 0.10, at least not in CorePeripherals. It is there on version 0.11 tho