UART_Lpuart_Uart_Ip_AsyncReceive_loss_packet

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

UART_Lpuart_Uart_Ip_AsyncReceive_loss_packet

Jump to solution
1,094 Views
xianlong
Contributor I

Hi,all

The UART disables the transceiver when the reception is complete and starts again in Lpuart_Uart_Ip_AsyncReceive. If my data is sent too fast, there will be packet loss phenomenon,
How to solve this problem?I use 230400 baud rate

0 Kudos
Reply
1 Solution
1,078 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi xianlong,

Sorry for my delay!
Lpuart_Uart_Ip_AsyncReceive receive multiple bytes of data using a non-blocking method. If RxSize bytes have received, it will enter LPUART_UART_IP_EVENT_RX_FULL rx callback.  Lpuart_Uart_Ip_SetRxBuffer() can be called from the rx callback to provide the driver with a new buffer, for continuous reception. It will change the value of RxSize so that it will not enter line 1261 then disable rx logic.

Lpuart_Uart_Ip_RxIrqHandler.png
Best Regards,
Robin
-------------------------------------------------------------------------------
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.
-------------------------------------------------------------------------------

View solution in original post

0 Kudos
Reply
1 Reply
1,079 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi xianlong,

Sorry for my delay!
Lpuart_Uart_Ip_AsyncReceive receive multiple bytes of data using a non-blocking method. If RxSize bytes have received, it will enter LPUART_UART_IP_EVENT_RX_FULL rx callback.  Lpuart_Uart_Ip_SetRxBuffer() can be called from the rx callback to provide the driver with a new buffer, for continuous reception. It will change the value of RxSize so that it will not enter line 1261 then disable rx logic.

Lpuart_Uart_Ip_RxIrqHandler.png
Best Regards,
Robin
-------------------------------------------------------------------------------
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
Reply