Question
STM32F072 USBD_LL_Transmit problem
Posted on July 01, 2016 at 11:04
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 librariesAny ideas what I am doing wrong ? #stmf0 #hal #usb #usb #stm32f0