Hi,
I am trying to implement MODBUS protocol in S32K14s using MBDT. Since the MODBUS server response packet varies in size depending on the client request, how can I configure the LPUART_Receive and LPUART_RxTx_ISR blocks to be able to receive these variable size packets?
If I configured the LPUART_Receive block to receive the fix size packet, for example, 8 byte, I could receive the 8 byte response packet without any issue. But, if i configured the size to be variable, I could not receive the correct data and sometime there is data at all.
I have attached the model in this thread.
Please kindly advice.
Thanks.