qmk/qmk_firmware

[Bug] PC doesn't recognize USB device with QMK version v0.17.x on STM32

Open

#17,644 建立於 2022年7月12日

在 GitHub 查看
 (0 留言) (2 反應) (0 負責人)C (43,867 fork)batch import
bughelp wanted

倉庫指標

Star
 (20,368 star)
PR 合併指標
 (平均合併 20天 9小時) (30 天內合併 27 個 PR)

描述

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.

kb-testdrive

貢獻者指南