Re: USB HID sample

Michael Hope

Hi Johannes.  I don't know if this is helpful, but I'm successfully using the HID code on the SAMD21.  Doesn't mean there's not a bug though :)

-- Michael

On Mon, 26 Mar 2018 at 20:09 Johannes Hutter <johannes@...> wrote:

Hello guys,

I tried to run the USB HID sample on a STM-based device and ran into some problems. I get a usage fault caused by a division by zero. This actually happens in the ST HAL, where a division by the MPS of the USB enpoint is done. The MPS is actually 0 when the sample does the USB write. Is there something missing in the sample? When turning the logging in the USB subsystem on, I can also see, that the Enpoints 0x00 and 0x80 are configured, but not the HID endpoint (on 0x83). the set_callback function is however called in the stm driver.

Would be great if someone could point me in the right direction.

Thanks and Best Regards,



Johannes Hutter | Embedded Software Engineer
Mail: johannes@...

Workaround GmbH (ProGlove)
Friedenstr. 4 | 81671 München

Managing Director: Thomas Kirchner
HRB: 216605 | AG München
USt.-IdNr.: DE298859320

Zephyr-users mailing list

Join to automatically receive all group messages.