Skip to main content
georgeclarkson5
Associate III
July 9, 2015
Question

example on receiving USB data

  • July 9, 2015
  • 0 replies
  • 382 views
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.
    This topic has been closed for replies.