Not sure if CDC_Transmit_FS() is the correct function to send data over USB using VPC.
Hi
I can not find out how to correctly use a Virtual Port Com over USB.
I used STM32CubeMx to configure the USB_OTG_FS and USB_DEVICE middleware. I selected the Class "Communication Device Class (Virtual Port Com).
I found the CDC_Transmit_FS() function to send data. It works, but I have a problem:
When calling this function twice short after each other, not all data is send. Do I have to check if transmission has ended before calling again? If so, which function does that?
I'm not sure that I use the correct function because when compiling I get the warning that this function is implicitely declared. So I mis the correct include file. I can get rid of the warning when including "usbd_cdc_if.h". But normally when using STM32CubeMx one does not have to include extra files to make things work. So I'm not sure I'm doing the right thing.
I can not find a simple USB VPC example that just sends one or more strings over the USB.
(I'm using STM32H743)
