Hello,
I have successfully interfaced the max14830 chip with imx6ul over spi. I am able to transreceiver the data on one of the RS485 ( UART/ ttyMAX2 ) port. With Loopback everything works fine.
Now when I am trying to send the data ( like 200 bytes or more ) from other device to /dev/ttyMAX2 port ( UART expander port). Getting the RX overrun error and loss the few data.
I have tried with different baud rate like 9600 or 115200 bps.Still same issue.
What could be the causes for the RX overrun ? How to be resolve ?
Regards,
Surendra
Solved! Go to Solution.
Hi Surendra
reason may be operating system latencies if there is
much graphics or video. One can test without os using
attached baremetal uart test (please refer to Chapter 33
Configuring the UART Driver pdf document), full sdk can be obtained
created service request. In operating system one can try to use uart
flow control to avoid overruns.
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
To avoid the overrun issue, I used software flow control mechanism ( XON and XOFF).
If both side has the software flow control, the issue is not observed.
Hi Surendra
reason may be operating system latencies if there is
much graphics or video. One can test without os using
attached baremetal uart test (please refer to Chapter 33
Configuring the UART Driver pdf document), full sdk can be obtained
created service request. In operating system one can try to use uart
flow control to avoid overruns.
Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------