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.

Compiler/CC3220SF: UART Read Callback does not fire

Part Number: CC3220SF

Tool/software: TI C/C++ Compiler

I read several threads but still I'm not able to read from UART asynchronously.

UART_Handle uartHandle

void InitUART()
{
    UART_Params uartParams;

    UART_init();
    UART_Params_init(&uartParams);
    uartParams.writeDataMode = UART_DATA_TEXT;
    uartParams.readDataMode = UART_DATA_TEXT;
    uartParams.readReturnMode = UART_RETURN_NEWLINE;
    uartParams.readMode = UART_MODE_CALLBACK;
    uartParams.readEcho = UART_ECHO_OFF;
    uartParams.baudRate = 115200;
    uartParams.readCallback = ReadCallback;
    uartHandle = UART_open(UART_0, &uartParams);
}

void ReadCallback(UART_Handle handle, void *buf, size_t count)
{
    // do something - set breakpoint
}

Because I set the readDataMode as UART_DATA_TEXT and readReturnMode as UART_RETURN_NEWLINE the callback should fire whenever it receive a newline ('\n') char. But it doesn't.
I need to set something else?