cancel
Showing results for 
Search instead for 
Did you mean: 

example on receiving USB data

georgeclarkson5
Associate II
Posted on July 09, 2015 at 12:12

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.
0 REPLIES 0