This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS/TM4C123GH6PM: UART6 UARTCharPutNonBlocking only transmit 16 bytes

Part Number: TM4C123GH6PM

Tool/software: Code Composer Studio

Hi,

I have successfully sent & received overt the UART6 but i have a problem that the UARTCharPutNonBlocking API only transmit 16 bytes, so how can i solve this?

Here copy for the send function

unsigned char DataTransmit[257];

void UARTSend(uint32_t dataLength)
{

for (i = 0; i < dataLength; i++)
{
// Write the next character to the UART.
UARTCharPutNonBlocking(UART6_BASE, DataTransmit[i]);
}

}

BR,

Hani

  • The UART has a FIFO of 16 characters. When you call the "non-blocking" function, it puts a character in the FIFO if there is room and returns 1. If there is not room in the FIFO it returns 0. For your simple example, just use UARTCharPut(). This function will wait until there is room in the FIFO and put it there before returning.