Skip to content

USB HID device only detected after replugging #14627

@Qbicz

Description

@Qbicz

Describe the bug
Device uses USB HID class. It used to register to host and send HID data over USB without issues.
However, with Zephyr revision 19de7ec (Nordic NCS 812f5d5) device is not recognized after boot. You need to unplug and replug it to make USB HID work.

Sequence of USB callbacks that I receive:

- Device boot (cable connected from start)

USB_DC_CONNECTED,
USB_DC_SUSPEND,
USB_DC_RESUME,
USB_DC_RESET,
USB_DC_RESET,
USB_DC_RESET,
USB_DC_RESET,
USB_DC_CONFIGURED.

- Device is started, but not recognized by host.
- Unplug

USB_DC_SUSPEND,
USB_DC_DISCONNECTED,

- Replug
USB_DC_CONNECTED,
USB_DC_SUSPEND,
USB_DC_RESUME,
USB_DC_RESET,
USB_DC_RESET,
USB_DC_RESET,
USB_DC_RESET,
USB_DC_CONFIGURED.

- Now the device is found by USB host and reports can be sent.

Impact
Showstopper. Device should be operational right after boot.

Metadata

Metadata

Labels

area: USBUniversal Serial BusbugThe issue is a bug, or the PR is fixing a bugpriority: mediumMedium impact/importance bug

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions