AnsweredAssumed Answered

STM32F072 USBD_LL_Transmit problem

Question asked by tramsak.martin on Jul 1, 2016
Latest reply on Jul 2, 2016 by Chinzei.Tsuneo
I'm using STM32F072 MCU in USB Device mode. The USB enumerates nicely creating 1 interface and 2 bulk endpoints. One input and one output. Both with the maximum transfer size 64 bytes.

The problem occurs when I try to transfer more than 16 bytes of data. The transfer data is OK when I transfer less than 16 bytes but gibberish when I transfer more than 16 bytes in a single packet. I am analyzing the stream on a USB analyzer. 

I have opened the endpoints and I transfer data with USBD_LL_Transmit function. 

I am using HAL libraries

Any ideas what I am doing wrong ?

Outcomes