[Bug] PC doesn't recognize USB device with QMK version v0.17.x on STM32
#17,644 opened on Jul 12, 2022
Repository metrics
- Stars
- (20,368 stars)
- PR merge metrics
- (Avg merge 20d 9h) (27 merged PRs in 30d)
Description
Describe the Bug
PC doesn't recognize USB device when flashing with QMK tag version 0.17.x. But it works with QMK tag version 0.16.9.
System Information
Keyboard: Handwired STM32F407VG
Revision (if applicable): -
Operating system: Windows 11 Home
qmk doctor output:
[sirap@siraphob-tp qmk_firmware]$ qmk doctor
Ψ QMK Doctor is checking your environment.
Ψ CLI version: 1.1.0
Ψ QMK home: C:/Users/sirap/qmk_firmware
Ψ Detected Windows 10 (10.0.22000).
Ψ Git branch: v0.17.5
Ψ Repo version: 0.17.5
⚠ Git has unstashed/uncommitted changes.
Ψ All dependencies are installed.
Ψ Found arm-none-eabi-gcc version 10.1.0
Ψ Found avr-gcc version 8.5.0
Ψ Found avrdude version 6.4
Ψ Found dfu-util version 0.11
Ψ Found dfu-programmer version 0.7.2
⚠ Submodule lib/chibios is not up to date!
Would you like to clone the submodules? [Y/n] Y
Ψ QMK is ready to go, but minor problems were found
Any keyboard related software installed?
- AutoHotKey (Windows)
- Karabiner (macOS)
- Other:
Additional Context
Flashing comparison between 0.16.9 and 0.17.5
When flash a keyboard with firmware tag 0.16.9, the PC is able to recognize the keyboard. Here's the output from QMK toolbox.
// Begin flashing ...
Flash complete
STM32 DFU device disconnected (WinUSB): STMicroelectronics STM32 BOOTLOADER (0483:DF11:2200)
HID console connected: Siraphobk TestdriveBoard (FEED:4819:0001)
USB device connected (HidUsb): (Standard system devices) USB Input Device (FEED:4819:0001)
USB device connected (HidUsb): (Standard system devices) USB Input Device (FEED:4819:0001)
USB device connected (usbccgp): (Standard USB Host Controller) USB Composite Device (FEED:4819:0001)
USB device connected (HidUsb): (Standard system devices) USB Input Device (FEED:4819:0001)
However, when flash with firmware tag 0.17.5, the PC isn't able to recognize the keyboard anymore. Here's the output from QMK toolbox.
// Begin flashing ...
Flash complete
STM32 DFU device disconnected (WinUSB): STMicroelectronics STM32 BOOTLOADER (0483:DF11:2200)
I tried replugging the board, the PC was able to recognize only ST-Link and its mass storage device but the keyboard's VID:PID didn't show up.
USB device disconnected (usbccgp): (Standard USB Host Controller) USB Composite Device (0483:374B:0100)
USB device disconnected (WinUSB): STMicroelectronics ST-Link Debug (0483:374B:0100)
USB device disconnected (USBSTOR): Compatible USB storage device USB Mass Storage Device (0483:374B:0100)
USB device disconnected (usbser): STMicroelectronics STMicroelectronics STLink Virtual COM Port (COM5) (0483:374B:0100)
USB device connected (usbccgp): (Standard USB Host Controller) USB Composite Device (0483:374B:0100)
USB device connected (WinUSB): STMicroelectronics ST-Link Debug (0483:374B:0100)
USB device connected (USBSTOR): Compatible USB storage device USB Mass Storage Device (0483:374B:0100)
USB device connected (usbser): STMicroelectronics STMicroelectronics STLink Virtual COM Port (COM5) (0483:374B:0100)
Source files
The following link is the source files that I used for compiling and flashing the keyboard.