USB classes through ST Nucleo F401RE

18 May 2015

I'd like to use MBED Library for USBHID through ST NucleoF401RE. My code is quite simple: /media/uploads/tof_massilia/main.cpp

I'm using software "SimpleHIDWrite" to send/receive raw data to/from Nucleo F401RE: /media/uploads/tof_massilia/untitled.png

But I'm facing issue through my code; I sent 8 incremental bytes, but the first four received bytes are not capture by HID (cf below picture). More the length of received bytes is always 0x20 whatever the report size (8, 64, ...). It seems that USBHAL::endpointReadResult (from USBHAL_STM32F4.cpp) called by USBDevice::readEPB procedure always reports 0x20 bytes received.

I verified that the 8 bytes are well sent to the Nucleo using an USB spy (Lecroy Voyager M3i): /media/uploads/tof_massilia/untitled1.png

Does anyone has meet issue using USB with ST Nucleo F4xx??