Skip to content

PyPortal crash -- USB disconnects #1679

@jerryneedell

Description

@jerryneedell

With current Master

Adafruit CircuitPython 4.0.0-beta.5-17-gfce63b17c on 2019-03-21; Adafruit PyPortal with samd51j20

I have been running the openweather demo on a pyportal. After running for a few hours, it will suddenly drop the USB connection and the program appears to have stopped (not updates on screen. CIRCUITPY is no linger mounted and /dev/ttyACM0 is no longer accessible.

The screen just shows the last weather update -- no REPL messages

It recovers and runs normally after a hard RESET (press RESET button)

This has happened twice now - both times I tried using it since updating CP. I don't recall if I ran previous versions as long so it may not be a new issue.

dmesg report at the time of failure - same time as last screen update.

[Fri Mar 22 04:37:50 2019] usb 3-3.2.3: reset full-speed USB device number 19 using xhci_hcd
[Fri Mar 22 04:38:06 2019] usb 3-3.2.3: device descriptor read/64, error -110
[Fri Mar 22 04:38:21 2019] usb 3-3.2.3: device descriptor read/64, error -110
[Fri Mar 22 04:38:22 2019] usb 3-3.2.3: reset full-speed USB device number 19 using xhci_hcd
[Fri Mar 22 04:38:37 2019] usb 3-3.2.3: device descriptor read/64, error -110
[Fri Mar 22 04:38:53 2019] usb 3-3.2.3: device descriptor read/64, error -110
[Fri Mar 22 04:38:53 2019] usb 3-3.2.3: reset full-speed USB device number 19 using xhci_hcd
[Fri Mar 22 04:38:58 2019] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
[Fri Mar 22 04:39:04 2019] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
[Fri Mar 22 04:39:04 2019] usb 3-3.2.3: device not accepting address 19, error -62
[Fri Mar 22 04:39:04 2019] usb 3-3.2.3: reset full-speed USB device number 19 using xhci_hcd
[Fri Mar 22 04:39:09 2019] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
[Fri Mar 22 04:39:15 2019] xhci_hcd 0000:00:14.0: Timeout while waiting for setup device command
[Fri Mar 22 04:39:15 2019] usb 3-3.2.3: device not accepting address 19, error -62
[Fri Mar 22 04:39:15 2019] usb 3-3.2.3: USB disconnect, device number 19
[Fri Mar 22 04:39:15 2019] cdc_acm 3-3.2.3:1.0: ttyACM0: USB ACM device
[Fri Mar 22 04:39:15 2019] usb 3-3.2.3: new full-speed USB device number 26 using xhci_hcd

FWIW - I have also had a Metro_m4 running the "cheerlights" demo for longer than the pyportal ran and it is continuing to execute (it is not connected to USB)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions