tinyusb icon indicating copy to clipboard operation
tinyusb copied to clipboard

tud_hid_report() can't send report after hot pluged

Open LYC584520 opened this issue 4 years ago • 1 comments

Operating System

Windows 10

Board

STM32F405

Firmware

examples/device/hid_generic_inout F405RG1.zip

What happened ?

I tested tinyUSB example on a STM32F405 board with OTG_HS full speed port. It works fine the first time plugged in, when i hot pluged, tud_hid_report() can't send report decause of failure of tud_hid_ready().

How to reproduce ?

Increase the sending interval.

Debug Log

No response

Screenshots

Screenshots

LYC584520 avatar Nov 18 '21 07:11 LYC584520

Please provide details on

  • How to Reproduce must have Exact steps in chronological order, details should be specific e.g if you use a command/script to test with, please post it as well.
  • Also which exact board of stm32f405

the firmware code is preferably compiled like one in example folder and re-viewable for people to comment on. The easiest way is

  • Fork this repo, checkout a new branch
  • Add your-own-example based on stock one
  • Push and post it here.

hathach avatar Nov 22 '21 10:11 hathach