You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For some reason, the onboard hub detects brief USB device disconnects. It emits the port connection change each time it does. By the time the status is read the connection state is 1 again. This triggers TinyUSB to reset the port and start enumeration:
However, because connection is 1 again, it never detaches the old device on the port. This leaks device numbers and generally device state. The device itself won't respond because it's been reset and given a new, different device number.
Debug Log as txt file (LOG/CFG_TUSB_DEBUG=2)
This is just selective logging of the status change bits and status report for the port.
Serial console setup
[1:] USBH Device Attach
Hub Status Change = 0x08
HUB connection change addr = 5 port = 3
BITS change 0001 status 0301
HUB ccccc addr = 5 port = 3
[1:] USBH Device Attach
lun 1 is not writable
lun 1 is not writable
lun 1 is not writable
lun 1 is not writable
Hub Status Change = 0x08
HUB connection change addr = 5 port = 3
BITS change 0001 status 0301
HUB ccccc addr = 5 port = 3
[1:] USBH Device Attach
Hub Status Change = 0x08
HUB connection change addr = 5 port = 3
BITS change 0001 status 0301
HUB ccccc addr = 5 port = 3
[1:] USBH Device Attach
XR_*=1
Hub Status Change = 0x08
HUB connection change addr = 5 port = 3
BITS change 0001 status 0301
HUB ccccc addr = 5 port = 3
[1:] USBH Device Attach
XR_*=1
Screenshots
No response
I have checked existing issues, dicussion and documentation
I confirm I have checked existing issues, dicussion and documentation.
The text was updated successfully, but these errors were encountered:
Operating System
Linux
Board
Fruit Jam
Firmware
CircuitPython using TinyUSB commit: 60e6d53
What happened ?
An assertion occurred when TinyUSB ran out of device numbers.
How to reproduce ?
Plug in the LS mouse from the Adafruit shop: https://www.adafruit.com/product/2025 into the Fruit Jam.
For some reason, the onboard hub detects brief USB device disconnects. It emits the port connection change each time it does. By the time the status is read the connection state is 1 again. This triggers TinyUSB to reset the port and start enumeration:
tinyusb/src/host/hub.c
Lines 432 to 446 in 865e348
However, because connection is 1 again, it never detaches the old device on the port. This leaks device numbers and generally device state. The device itself won't respond because it's been reset and given a new, different device number.
Debug Log as txt file (LOG/CFG_TUSB_DEBUG=2)
This is just selective logging of the status change bits and status report for the port.
Screenshots
No response
I have checked existing issues, dicussion and documentation
The text was updated successfully, but these errors were encountered: