MQX 4.1 UART/serial driver missing characters from host when used in Polled Mode

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

MQX 4.1 UART/serial driver missing characters from host when used in Polled Mode

跳至解决方案
1,116 次查看
ashokhs
Contributor II

Hi All,

I have used the UART4 to connect to the UART from host with the following settings:

Data Bits = 8; Stop Bit = 1; Parity = None; BAUD Rate = 115200.

And I'm using the BSP driver for polled mode. But occasionally I don't get some characters or some times I get more characters than what I expect to get.

Please let me know if there are any known issues here or any common pit falls which need to be taken care.

Thanks & regards,

Ashok

0 项奖励
1 解答
667 次查看
ashokhs
Contributor II

Hi All..

Thanks for the help.

Finally the issue was solved when we went for a lower baud rate of 9600 instead of 115200 bps. We still don't know why it is not working in 115200 but for now we are continuing as it is as we don't have much time to investigate this. We will come back to debug this once we have some time free.

Regards,

Ashok

在原帖中查看解决方案

0 项奖励
4 回复数
668 次查看
ashokhs
Contributor II

Hi All..

Thanks for the help.

Finally the issue was solved when we went for a lower baud rate of 9600 instead of 115200 bps. We still don't know why it is not working in 115200 but for now we are continuing as it is as we don't have much time to investigate this. We will come back to debug this once we have some time free.

Regards,

Ashok

0 项奖励
667 次查看
yb
Contributor IV
667 次查看
ashokhs
Contributor II

The uart was opened using fopen with "IO_SERIAL_TRANSLATION | IO_SERIAL_ECHO" option.

0 项奖励
667 次查看
soledad
NXP Employee
NXP Employee

Hello Ashok,

Please check the below links and let me know if this helps!!!

MQX with UART... How to receive?

what is the best way for Timeout on UART RX with MQX?

Interrupt driven UART

UART Code


Have a great day,
Sol

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