USBH_MIDI : Failing to get device descriptor with some devices.
The problem is at line 163 from USBH_MIDI.cpp: (Init)
rcode = pUsb->getDevDescr( 0, 0, sizeof(USB_DEVICE_DESCRIPTOR), (uint8_t*)buf );
With some devices work fine, and with others doesn't.
(return 0 when successful ; 8 when error )
Looking deep, the problem come from:
Line 206 from USB.cpp
rcode = dispatchPkt(tokSETUP, ep, nak_limit); // Dispatch packet
Any tips?
I can get device descriptor of any devices without using USBH_MIDI (without creating USBH_MIDI class)
I can get device descriptor from my PenDrive, and return that isn't a MIDI Device.
I can't get device descriptor from my Mouse by example, returning the RCODE equal 8.
My Zoom G3 works fine. My Nux MG300 doesn't.