2 Replies Latest reply on Nov 12, 2019 12:41 PM by LePo_1062026

    USBUART component: When continuously sending data to the host and the host port is connected but not open, the PSoC5 application will hang.


      I've developed code that uses the recommended while((USBUART_CDCIsReady()) == 0){} before sending new data to the host.

      All is working great if the host is connected and the port is open.  As soon as a close the host port, eventually the PSoC app code hangs on the while() statement shown above.


      Is there a proper way to detect if the port is open to accept new data?