S32K118 UART Ring queue receive problem

cancel
Showing results for 
Search instead for 
Did you mean: 

S32K118 UART Ring queue receive problem

101 Views
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.
Labels (1)
0 Kudos
2 Replies

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 Kudos

Contributor III

OK ,thanks

0 Kudos