AnsweredAssumed Answered

example on receiving USB data

Question asked by Deamonata on Jul 9, 2015
Hi there,

I'm using the STM32f4 and I'm trying to get the USB drivers to work but I'm having some issues. Using the example for CDC Standalone in the STMCube files I've got the USB enumerating and transmitting a basic message, but I can't work out how to get it to recieve data. I assume I would use USBD_CDC_ReceivePacket(&USBD_Device); to start the receive but the example doesn't seem to ever access the buffer so I would appreciate some help. If anyone knows of a better example such as one that performs and echo back, that would be great, otherewise a few pointers would be useful.