2 Replies Latest reply on May 22, 2019 2:39 AM by AnkitaS_51

    How to send 400 bytes via USB UART

    NiVa_3988066

      I need to send ~400 bytes via USB UART, but the following code dosn't help. The processor handed at the "while(USBUART_CDCIsReady() == 0u);" statement.

       

      int i = 0;
      while( i < 2 * DATA_LENGTH)
      {
          while(USBUART_CDCIsReady() == 0u);
          USBUART_PutData((uint8*)&incomingByte[i/2], 64);
          i += 64;  
      }

       

      Note that the incomingByte is actually a uint16 array.