Uart Buffer Error

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

Uart Buffer Error

Jump to solution
466 Views
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 Kudos
1 Solution
292 Views
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

View solution in original post

0 Kudos
1 Reply
293 Views
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 Kudos