RT1015 LPUART_TransferReceiveNonBlocking Driver

cancel
Showing results for 
Search instead for 
Did you mean: 

RT1015 LPUART_TransferReceiveNonBlocking Driver

85 Views
Contributor V

Hi,

I am study UART with "evkmimxrt1015_lpuart_interrupt_rb_transfer" SDK sample code.

The sample code is no problem.

After I modify some flow, it cannot receive any byte, 

pastedImage_1.png

My idea is using polling to call LPUART_TransferReceiveNonBlocking, if get any byte, use tx send a debug log.

I don't know why this modification cannot receive any RX byte.

Maybe there are some constrain to using LPUART_TransferReceiveNonBlocking?

I attached the source code. I only modify this file.

Can someone give me a hint?

Regards

Ken

Labels (1)
Tags (2)
0 Kudos
1 Reply

14 Views
NXP TechSupport
NXP TechSupport

Hi Ken Su,

Thank you for your interest in NXP Semiconductor products and
for the opportunity to serve you.
Firstly, you should move the function :
LPUART_TransferReceiveNonBlocking(DEMO_LPUART, &g_lpuartHandle, &receiveXfer, &receivedBytes);
out of the While(1) {} loop, then using the LPUART_UserCallback () fucntion to handle the signal value which will determinate whether call LPUART_TransferSendNonBlocking(DEMO_LPUART, &g_lpuartHandle, &sendXfer); or not.

Have a great day,
TIC

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos