qmk/qmk_firmware

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

Open

#11.730 aperta il 30 gen 2021

Vedi su GitHub
 (1 commento) (0 reazioni) (0 assegnatari)C (43.867 fork)batch import
bughelp wanted

Metriche repository

Star
 (20.368 star)
Metriche merge PR
 (Merge medio 20g 9h) (27 PR mergiate in 30 g)

Descrizione

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

  • TKC GodSpeed75 is a keyboard PCB that utilizes the STM32F072 CPU running QMK and has a custom-designed USB hub based around the TI 8020B 2-port USB hub
  • This combination causes VIA to hang upon connection
  • The hub works correctly when used in conjunction with the TKC M0lly PCB, a board designed around the AT90USB1286 MCU
  • The GodSpeed75 works in VIA when connected directly via USB cable
  • The GodSpeed75 works correctly absent VIA support when connected via its USB hub; RGB etc works as expected Conclusion: There is an issue in the STM32 codebase causing an issue with VIA support in conjunction with that USB hub; likely exists in the USB enumeration code. There have been a few other similar STM32 issues related to sleep and wake states
  • We have eliminated QMK version as a factor - I have tested that this bug exists clear back to May 2020.

Additional Context

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

GodSpeed75 Bug Bounty.pdf

Guida contributor