We have CC13xx Platform, with Arm 8.50 CPU.
Subject: Seeking Guidance on Eliciting and Handling RX UART Errors on CC13xx Platform
1. We need to check that our code handles correctly the following RX UART Errors:
"Framing Error"
"Parity Error"
"Buffer full Error"
Is there a way that you recommend to cause to these Errors?
We've utilized Docklight to send messages with varying baud rates, very long messages' lengths, and high rate of messages, but have yet to induce the desired errors -
Our system did not receive any RX UART Error.
2. When there is any of the above RX UART Errors, Is it advisable to call the following 2 TI functions, for "Recovery":
UART2_close();
UART2_open();
If not, what alternative approaches would you suggest?
3. Please note, Our UART Initialization code is:
void initPghModemUART()
{
// Initialize UART2 parameters
UART2_Params_init(&uartParams);
uartParams.baudRate = 38400;
uartParams.readMode = UART2_Mode_CALLBACK;
uartParams.writeMode = UART2_Mode_CALLBACK;
uartParams.readCallback = UART_PghModem_RxHandler;
uartParams.writeCallback = UART_PghModem_TxHandler;
uartParams.eventCallback = UART_PghModem_EventHandler;
uartParams.readReturnMode = UART2_ReadReturnMode_PARTIAL;
// Open the UART
uart2_inst = UART2_open(CONFIG_UART2_1, &uartParams);
// Enable receiver, inhibit low power mode
UART2_rxEnable(uart2_inst);
}