S32K118 UART Ring queue receive problem

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

S32K118 UART Ring queue receive problem

1,139 次查看
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,038 次查看
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,038 次查看
zhaowei961
Contributor III

OK ,thanks

0 项奖励
回复