S32K118 UART Ring queue receive problem

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K118 UART Ring queue receive problem

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

481 Views
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 Kudos

481 Views
zhaowei961
Contributor III

OK ,thanks

0 Kudos