uart stuck in while

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

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.

0 Likes
10 Replies