我们有 CC13xx 平台以及 Arm 8.50 CPU。
主题: 寻求有关在 CC13xx 平台上引发和处理 RX UART 错误的指导
1. 我们需要检查我们的代码是否正确处理以下 RX UART 错误:
"帧错误"
"奇偶校验错误"
"缓冲区已满错误"
您是否建议通过某种方法导致这些错误?
我们利用 Docklight 以不同的波特率、非常长的消息长度和高的消息率发送消息、但尚未产生期望的错误-
我们的系统未接收到任何 RX UART 错误。
2. 当出现上述任何 RX UART 错误时, 建议调用以下2个 TI 函数进行"恢复":
UART2_CLOSE();
UART2_OPEN();
如果没有、您会建议哪些替代方法?
3. 请注意, 我们的 UART 初始化代码为:
空 initPghModemUART()
{
//初始化 UART2参数
UART2_Params_init (&uartParams);
uartParams.baudrate = 38400;
uartParams.readMode = UART2_Mode_callback;
uartParams.writeMode = UART2_Mode_callback;
uartParams.readCallback = UART_P52 Modem_Rx;
uartParams.writeCallback = UART_P52 Modem_Tx;
uartParams.eventCallback = UART_P52 Modem_Event;
uartParams.readReturnMode = UART2_ReadReturnMode_partial;
//打开 UART
uart2_insts = UART2_open (CONFIG_UART2_1、&uartParams);
//启用接收器,禁止低功耗模式
uart2_rxEnable (uart2_insts);
}