dfu-util error get_status: LIBUSB_ERROR_INVALID_PARAM failure #3185
Unanswered
brianvanderbeek-philips
asked this question in
Q&A
Replies: 1 comment
-
|
It seems I have found the problem. By default Windows installs the hidusb.sys driver when advertising HID and when advertising DFU only no default driver is being installed. DFU requires the winusb.sys driver. With WCID it should be possible to indicate that Windows must use the winusb.sys driver for the DFU interface. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi all,
I am trying to enable HID + DFU on a ST32WB55 MCU using TinyUSB v0.18.0. I defined a device configuration [1] for HID and another device configuration [2] for DFU. HID is functional and I can send out key records, but when using lsusb or dfu-util on Windows both report a that the status cannot be read.
This is the lsusb log, which does correctly show the configuration: 20250724 lsusb log.txt
dfu-utils output:
So both lsusb or dfu-util return the same get_status error. When I run lsusb on other USB devices I do not get a get status error, altohugh for most it warns that some information will be missing).
It seems odd that dfu-util is able to claim the DFU interface, but for some reason it is not able to retrieve the status. In the TinyUSB log I also do not see a get status entry, so it seems that the libusb_control_transfer call must somehow be failing before initiating the transfer:
https://github.com/Stefan-Schmidt/dfu-util/blob/master/src/dfu.c#L204
I have been unable to identify what triggers this error on my device. I have been comparing my configuration with others, trying different configurations (e.g. remove HID, move the HID+DFU interface configuration in the same device configurations), but no luck.
Anyone got an idea what might cause this failure?
Beta Was this translation helpful? Give feedback.
All reactions