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.

CC2541 串口通信读取数据不完整 问题



串口初始化时指定回调函数,但是当用串口调试工具由pc向开发板发送数据时,开发板使用
Hal_UART_RxBufLen(port);
HalUARTRead(port,pt,rcvbytes);
读取的数据有丢失。而且我观察到的现象是,回调函数好像是触发了两次。

难道是pc发送的数据写入开发板缓冲区时比较慢嘛?或者缓冲区大小问题?

有遇到过的吗?


谢谢!