spi2.0: Port 2: Possible RX FIFO overrun

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

spi2.0: Port 2: Possible RX FIFO overrun

Jump to solution
1,609 Views
surendradhobale
Contributor III

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

Labels (2)
0 Kudos
1 Solution
1,219 Views
igorpadykov
NXP Employee
NXP Employee

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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

0 Kudos
2 Replies
1,219 Views
surendradhobale
Contributor III

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. 

0 Kudos
1,220 Views
igorpadykov
NXP Employee
NXP Employee

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!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos