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,115件の閲覧回数
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 解決策
666件の閲覧回数
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 返答(返信)
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 件の賞賛
666件の閲覧回数
yb
Contributor IV
666件の閲覧回数
ashokhs
Contributor II

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

0 件の賞賛
666件の閲覧回数
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!
-----------------------------------------------------------------------------------------------------------------------