2014-09-25 05:00 PM
I am using an STM32F427 processor and wish to implement a USB device CDC virtual serial port on the HS USB port. I am generating my initialization/driver code with CubeMX. I am having a hard time figuring out what needs to be implemented in the usbd_cdc_if.c file to get buffered full duplex data transfer. I do not want a USB/USART bridge, just communication via a virtual serial port to the embedded application.
Any CubeMX generated examples projects out there? I use the USB HS because the FS is preempted by the USART1 RTS/CTS pins. I need flow control to work in both directions, and would also like to know when the virtual COM port is opened or closed on the PC end. Is this done through CDC_Control_HS, or by monitoring the device status is some other way? There doesn't seem to be any written documentation on the USB device driver, or maybe there is but I don't know where to find it?2016-01-14 12:49 AM