5 Replies Latest reply on Apr 7, 2017 8:55 AM by vsrs

    USBUART hangs when PC not get the data.

    info_1957421

      Hello,

         

      I want to put some debug Messages to the PC, but when the PC not connected the Program hangs in the 'while':

         

              while (USBUART_CDCIsReady() == 0u); // wait until buffer clear
              USBUART_PutString(txData);

         

      Any solution to get information that PC is ready to receive data?

         

      Regards,

         

      Michael