How to avoid RXFIFO overrun errors.

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How to avoid RXFIFO overrun errors.

2,108件の閲覧回数
surendradhobale
Contributor III

Hello, 

I am using imx6ul uc with Linux kernel 4.9. I have max14830 spi to UART expander.communication works fine with software flow control.but as other side input side doesn't support of software flow control. Also no support of hardware flow control.

Now option is only not use any flow control. How or what approach need to follow in the max310x driver in Linux. We don't want to loose any data.max baud 115200.

In this driver observed no any loss in transmission but observed Rx overrun errors at reception. Rx buffer is 128 bytes. 

Please provide suggestions.

Regards,

Surendra

ラベル(3)
0 件の賞賛
返信
1 返信

1,755件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Surendra

I am afraid there is no way to avoid data loss without flow control,

in general one can try using dedicated core for uart servicing (empty uart fifo

and filling some additional big buffer for incoming uart data)

https://www.cyberciti.biz/tips/setting-processor-affinity-certain-task-or-process.html 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛
返信