Skip to content

MS OS 2.0 descriptor doesn't work when only enable CFG_TUD_VENDOR #3365

@rvosk

Description

@rvosk

Operating System

Windows 11

Commit SHA

the latest HEAD

Board

any board can reproduce this issue per my test, I tried stm32f103_bluepill and stm32f072disco

Firmware

examples/device/webusb_serial with attached patch to remove the cdc so that only CFG_TUD_VENDOR is enabled.

tinyusb.patch

What happened ?

Windows can't initialize the usb device properly, and UsbTreeView show "28" for the device. so winusb driver isn't installed for the usb device.

BTW: if we enable CDC or HID or MSC or something else with CFG_TUD_VENDOR at the same time, everything works. The issue is only seen when only CFG_TUD_VENDOR=1, others are disabled

How to reproduce ?

apply the tinyusb.patch
build the examples/device/webusb_serial
burn the fw to board and reset the board after done
connect the board to windows usb port with cable
check the usb device's Windows status via. the UsbTreeView, e.g whether it's properly initialized and whether its driver is winusb or not

Debug Log as txt file (LOG/CFG_TUSB_DEBUG=2)

I didn't enable DEBUG LOG, but will do if it's needed.

Screenshots

No response

I have checked existing issues, discussion and documentation

  • I confirm I have checked existing issues, discussion and documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions