3 Replies Latest reply on Oct 15, 2017 11:53 PM by hima

    uart stuck in while

    sagard_1819731

      Hi All,

       

      I am using UART for sending at commands.

       

      example as below:-

      UART_DEB_UartPutString("AT+UHTTP=0\r\n");

       

      sometimes its working but sometimes its getting stuck in a function UART_DEB_SpiUartWriteTxData and never comes out of it

       

      stuck in below while loop:-

      {

                  /* Wait until TX FIFO has space to put data element */

                  while (UART_DEB_SPI_UART_FIFO_SIZE == UART_DEB_GET_TX_FIFO_ENTRIES)

                  {

                  }

       

                  UART_DEB_TX_FIFO_WR_REG = txData;

              }

       

      Did anyone faced similar issue?please suggest.

       

      Thanks.