Uart Buffer Error

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Uart Buffer Error

跳至解决方案
1,359 次查看
josefgessler
Contributor I

Hello,

Sometimes I observe a strange behaviour on the UART in the Kinetis using MQX.

When I send a sign, the software (actually the Serial Interrupt in the MQX driver) receives what I sent 4 signs before.

I think that means the other signs are waiting in the FIFO until the next sign is sent.

I can easily reproduce this error when I open in IAR the registers view and let Display the UART registers.

What is happening here? Is there an hardware bug? And how could I solve it?

Thank you for your answers!

0 项奖励
回复
1 解答
1,185 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi Josef:

I think you need to check the UART FIFO Receive Watermark (UARTx_RWFIFO) register. This register provides the abillity to set a programmable threshold for notification of the need to remove data from the receiver FIFO/buffer. If you lower this value, it maybe solve this issue.

Regards

Daniel

在原帖中查看解决方案

0 项奖励
回复
1 回复
1,186 次查看
danielchen
NXP TechSupport
NXP TechSupport

Hi Josef:

I think you need to check the UART FIFO Receive Watermark (UARTx_RWFIFO) register. This register provides the abillity to set a programmable threshold for notification of the need to remove data from the receiver FIFO/buffer. If you lower this value, it maybe solve this issue.

Regards

Daniel

0 项奖励
回复