S32K118 UART Ring queue receive problem

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

S32K118 UART Ring queue receive problem

1,551件の閲覧回数
zhaowei961
Contributor III
EM截图_202016145847.png
I used a ring buffer and didn't want to wait for the receive to finish. I found something wrong when I skipped this code. What's the matter? What's the solution.
ラベル(1)
0 件の賞賛
返信
2 返答(返信)

1,450件の閲覧回数
victorjimenez
NXP TechSupport
NXP TechSupport

Hello, 

The function UART_ReceiveData performs a non-blocking receive, this means that if you don't wait you will interrupt the receiving process which will end up in a problem. If you don't want to wait, I recommend you using the receive interrupt of the UART. 

Best regards, 

Victor 

0 件の賞賛
返信

1,450件の閲覧回数
zhaowei961
Contributor III

OK ,thanks

0 件の賞賛
返信