STM32G0B and USB Custom HID
Hello guys!
I'm using USB custom HID on STM32G0B for an application alike the mouse demo on "STM32G0C1E-EV" HAL package. But instead a button sending the Report, a PC software sends a 64 bytes Report to get another 64 bytes as answer.
In fact, this same code worked flawless on STM32H750 but on G0, I'm always getting a "loopback" answer after "USBD_HID_SendReport()" function, with some garbage bytes. I'm suspicious of the "USB_WritePMA" function, as it put a byte pointer to word buffer...
Do you guys have any tip about this?
Thanks again!
