Adafruit_TinyUSB_Arduino: [Bug] WebUSB device fails to enumerate
Since the restructured Core repositories (today), WebUSB devices fail to enumerate on Windows. I dumped the descriptor, but cannot see any obvious difference.
Everything appears to work fine on Linux. Windows works with the code before the Core repository was split out (yesterday).
I tried the webusb_rgb.ino
example with the same result. See the attached screenshot:
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 1
- Comments: 15 (15 by maintainers)
Commits related to this issue
- fix samd51 setup packet handling issue occur due to race condition https://github.com/adafruit/Adafruit_TinyUSB_Arduino/issues/37 — committed to hathach/tinyusb by hathach 5 years ago
I am worrying for your reset button now 😄. Thanks for testing it out and confirmation, this is a typical racing condition. The bug is there but it requires right timing between host requests to occur.
I pressed the reset button like 200 times now, and did not see an single failure. It appears to work all fine. I’ll try the other setups later if they work too. Thanks a lot!
Reverting this commit, makes it work again:
https://github.com/versioduo/Adafruit_TinyUSB_ArduinoCore/commit/87d4275798cea11c880a45115116cd7cc799d2c8