Free-Dap integration in cortex M55 based MCU #39
Replies: 8 comments 22 replies
-
|
Different OSes have different requirements for the descriptors. You can check with any reference implementation (for example https://github.com/ataradov/free-dap/blob/master/platform/samd11/usb_descriptors.c), they contain a descriptor that works with all. But note that there is a difference in a descriptor for FS and HS devices. What is your device exactly? Also, it is not the same descriptor that is used for keyboard and mice. And Linux may not actually care about the descriptor in this case. If you have not modified it at all, it is likely wrong, since it is rare for standard stacks to have this exact descriptor. |
Beta Was this translation helpful? Give feedback.
-
|
For HID version, it should not need any additional drivers, it should just be a standard HID device and Windows should know about it. What does your descriptor looks like? |
Beta Was this translation helpful? Give feedback.
-
|
HID report descriptor is sent as part of the HID implementation, it is not a part of any other descriptors. Host will ask for it and you need to respond with it. Host will do it automatically during enumeration. All HID implementations will have this descriptor. |
Beta Was this translation helpful? Give feedback.
-
|
What do you mean? It is failing during the device enumeration. This is where Windows would request the descriptor to know what the device is. This is how it knows if you plugged in a keyboard or a mouse and how many buttons that mouse has. In case of a DAP, the descriptor just says that it is a generic input/outout device. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
|
Your link leads nowhere. But if windows refuses to continue enumeration, it does not like something about your device or configuration descriptors. And the first thing I would try is change .bDeviceSubClass = 0x00, .bDeviceProtocol = 0x00. |
Beta Was this translation helpful? Give feedback.
-
|
It depends on what your hardware is configured for. The values in the configuration descriptor, HID report descriptor and the actual hardware configuration must match. HID devices don't need INF file, you just need to fix your descriptors. |
Beta Was this translation helpful? Give feedback.
-
|
Ok, then an actual USB log is needed. This looks fine. Does it still work under Linux? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I've integrated the free-dap code with my MCU SDK. I m able to achieve debugging (gdb) using hid interface with openocd in linux OS. But when I try doing the same with a windows host, I m facing issues with my hid.
I m using hid from tinyusb stack. I m suspecting from the descriptor. But with the same descriptor Linux is working fine.
Could you please help with this if there is a known issue with windows on this.
Thanks,
Ajjai
Beta Was this translation helpful? Give feedback.
All reactions