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.

cc3200 uart 只接收16字节,该怎么解决?

Other Parts Discussed in Thread: CC3200

请教大家, cc3200 uart  只接收16字节。  

UARTIntRegister(UARTA1_BASE, UARTIntHandler);

MAP_UARTFIFODisable(UARTA1_BASE);   //关闭串口FIFO

MAP_UARTIntEnable(UARTA1_BASE, UART_INT_RX);

中断函数处理:

if (status & UART_INT_RX) {

UARTIntClear(UARTA1_BASE, UART_INT_RX);

while (UARTCharsAvail(UARTA1_BASE)) {
cCharacter = UARTCharGet(UARTA1_BASE);
Report("=%d ", cCharacter);

}

}

测试时,另一端串口每次发送200个字节, 在中断函数中。 只能接收到16个字节

如果启用:

MAP_UARTIntEnable(UARTA1_BASE, UART_INT_RT);

可以接收到更多, 但是是无序,且丢失了数据。(另一端数据为:0-199)

请教,如何正确接收串口数据?