There is a UART Receive non blocking problem

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

There is a UART Receive non blocking problem

1,172件の閲覧回数
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,159件の閲覧回数
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 件の賞賛
返信