Fix keyboard example
Hi, when executing the keyboard example on a RPI Zero, the USB_DT_DEBUG message handling was missing, leading to a program termination. This fix worked for me: https://gitlab.com/mike01/usb_raw_gadget_fork/-/commit/9717410f616d92bb6cc86b6a0dc18798330a9cf6
Additionally the HID descriptors are not copied in build_config (host complains about missing descriptors in "lsusb -v"), but that doesn't seem to disturb the functionality of the example.
Hi, thank you for reporting the issue!
Which host/OS did you use when you encountered the USB_DT_DEBUG issue? This is quite an unusual descriptor to be requested, so I'm curious.
An alternative and possibly better fix would be to return false to make the code stall the USB_DT_DEBUG request — our emulated keyboard does not provide any debug functionality after all.
Wrt the second issue: I assume you mean the HID report descriptor not being included into build_config. I think this is OK, I don't think real HID devices do that either: I see Report Descriptors: ** UNAVAILABLE ** for my real USB keyboard in lsusb -v. That descriptor is meant to be requested via HID_DT_REPORT.