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.

RTOS/CC1350: UART_read Driver for CC1350

Part Number: CC1350

Tool/software: TI-RTOS

Hi,

I am trying to get the UART driver to read/write in a CC1350 application. The driver doesn't seem to be behaving as documented.

I want to operate the UART driver in following mode:

read/write Data mode: UART_DATA_TEXT

read/write Mode: UART_MODE_BLOCKING

read return Mode: UART_RETURN_NEWLINE

So basically I'm unable to get the UART_RETURN_NEWLINE mode to work. I have created a uartRxTask that continuously blocks in UART_read(). The code is shown below:

static void UartRxFnx(UArg arg0, UArg arg1)
{
	while(1)
	{
		UART_read(hUart, uart_rx_buf, sizeof(uart_rx_buf));
	}
}

1. So i expect that the UART_Read() must return whenever the buffer is full or a newline character encountered.

2. It never returns for a newline character received. It only returns when the buffer is full.

Any help appreciated..

  • Hi Vivek,

    Unfortunately, UART_DATA_TEXT is not supported on the CC13xx/CC36xx family of devices (up to TI-RTOS version 2.20.01.08 - driver version 2.20.01.10).

    The CC13xx/CC26xx UART driver API mentions it in the Not Supported Section.

    You can find the documentation, in the default installation folder (the ti-rtos version might differ on your computer):

    C:\ti\tirtos_cc13xx_cc26xx_2_20_01_08\docs

    In the documentation overview html page you can click on TI-RTOS Drivers Runtime APIs (doxygen). The unsupported features are found in the UARTCC26XX.h doc.

    See also this forum thread:

    As an alternative, you can read and store each character one at a time and process the data once you detect a new line character.

    Regards,

    Michel

  • Thanks for your response Michel.

    I thought that would be the problem. The feature not being supported though I wasn't able to find it mentioned anywhere till your response.

    I have implemented my design by processing a single character at a time.

    Thanks for your help.

    Vivek