There is a UART Receive non blocking problem

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

There is a UART Receive non blocking problem

422 Views
coder_72
Contributor I

Hello everybody,

i have a problem with Usart_TransferReceivenonblocking Funktion. I want to read an array of the length 8, but the function only read the first value of the array and memorize it to the buffer. I am using the LPC804 with the usart_interrupt_example. Have anybody an answer to my problem?

Tags (2)
0 Kudos
1 Reply

409 Views
Miguel04
NXP TechSupport
NXP TechSupport

Hi @coder_72 

Have you tested any SDK example?

However, the way you are using the function in your code could be causing the issue, if you read the brief description of the "Usart_TransferReceivenonblocking" function it says "This is a non-blocking function, which returns without waiting for all data to be received." I recommend you to use the unique Transfer and Recieve functions, you could take ideas from the usart_polling_example.

Let me know if you have another question.

Best Regards, Miguel.

0 Kudos