在使用uart_read读取数据时,当读到数据之后,数据中一定要包含 /r/n 才会返回读到的字节个数,否则不会返回读到的字节个数。
这个问题怎么破?
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.
感谢回复!
我的读取接口为:
如下: ret = UART_read(gCLI.cfg.cliUartHandle, &MB_UART_RX[UART_RX_NUM] , 256);
这种情况下,只有读满256个字节,或者是收到回车换行,才会返回。
请问是自己写的代码还是TI demo程序? 是否能运行C:\ti\mmwave_sdk_03_05_00_04\packages\ti\drivers\uart\test\xwr16xx里的test例程?