Hi Felipe,
I am glad to receive your reply.
1) I am porting the freeModbus master mode (https://github.com/RT-Thread-packages/freemodbus) to RT1050 now, the modbus response is variable length, according to your suggestion SDK example evkbimxrt1050_lpuart_interrupt_transfer, do I need to modify
#define ECHO_BUFFER_LENGTH 8
to 1 to receive bytes one by one?
2) in the LPUART_UserCallback(), only add condition for status kStatus_LPUART_TxIdle and kStatus_LPUART_RxIdle, not need to add any other status condition?
3) I also read the application note AN12679SW for reference, it use DMA but I just use LPUART interrupt, do I need to add function DEMO_LPUART_IRQHandler(void)?