AnsweredAssumed Answered

A general USB question

Question asked by Mr_M_from_G on Jun 28, 2016
Latest reply on Jun 29, 2016 by Mr_M_from_G
when using a UART I can feed the Tx buffer on my STM32 without caring if someone listens on the other side eg a PC. In any case the uC side will work the same way.
How is this with a USB device, CDC VCP stack, esp STs CubeMX solution? The device might not be enumerated ie not connected to a host at all or on the PC side the COM port is not open. Does anybody know, how this will affect software flow on the uC side? As much as I see here the interrupt (USB_LP_IRQHandler) is not triggered any more. How can I determine in my uC application that data will really be sent ie the device is enumerated and a COM port is open?

Thanks a lot