There is a UART Receive non blocking problem

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

There is a UART Receive non blocking problem

1,200 次查看
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?

标记 (2)
0 项奖励
回复
1 回复

1,187 次查看
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 项奖励
回复