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.

DM385 串口2读写遇到问题



各位专家好:

       我们在使用DM385  IPNC3.5的uart2的时候遇到一些问题:

1.在应用程序中重新设置波特率,数据位,停止位,奇偶校验位等,然后写数据(write),用串口工具读取该串口的数据,发现数据有错误,并且,数据会一直不停的写。

2.如果不设置波特率,写数据,可以正确读出,但是数据也会不停的发送。

3.如果写完数据(write)之后,关闭串口(close),数据就不会一直发送。

4.在读取串口(read)的时候会遇到阻塞,read函数一直不返回,并且示波器能监测到tx脚一直在发送数据。

请各位专家看看可能是什么问题,非常感谢!