qmk / qmk_firmware

Open-source keyboard firmware for Atmel AVR and Arm USB families
https://qmk.fm
GNU General Public License v2.0
17.8k stars 38.15k forks source link

Raw_hid corrupted or enumerated improperly on STM32F072 when used with a TI 8020B USB hub controller (bounty available) #11730

Open TerryMathews opened 3 years ago

TerryMathews commented 3 years ago

VIA freezes on a keyboard designed around the STM32F072 CPU (TKC GodSpeed75) when used in conjunction with the USB hub designed to fit it, our custom TI 8020B USB 3.0 hub.

Describe the Bug

Additional Context

There is a $500 bug bounty available, see attached. Approved in advance by @jackhumbert.

GodSpeed75 Bug Bounty.pdf

TerryMathews commented 3 years ago

After a lot of experimentation, I have determined that this problem is intertwined with the AMD Ryzen USB issues that have been getting more and more press (see: https://www.anandtech.com/show/16554/amd-set-to-roll-out-agesa-firmware-usb-fix-for-ryzen-coming-april)

I have determined that the problem does not occur when using a powered USB hub, at least with the one I have. I have ordered another to test with. I still believe that this issue also lies within the QMK code for STM32 as the behavior does not occur on AVR-based boards however this firmware update by AMD referenced in the attached article may resolve the issue as well.