I have created a model to receive UART based on the example code 'lpuart_s32k14x.mdl'.
I had to modify it slightly, because I need to receive 10 continuous bytes of data sent at a 100ms cycle rate.
The code works fine, until the UART data is interrupted such as:
- disconnected from the external transmitter
- external transmitter is powered down
- debugger halted and restarted
When the UART data transmission restarts , the code does not receive the data unless the processor is reset.
I cannot find what is causing the fault or how to handle resetting the fault so that it automatically starts receiving data again.
The only thing I've noticed is that the LPUART0.CTRL register has the value 0x0F240000 when its working and 0x00000000 when it stops working.
Whats causing the issue and how can I resolve this ?
The model is attached for reference (LPUART_RX.zip)

For reference, below is a scope trace of the UART data....

The UART data contains the following parameters:
- Byte 0: Temperature
- Byte 1: Voltage high byte
- Byte 2: Voltage low byte
- Byte 3: Current high byte
- Byte 4: Current low byte
- Byte 5: Consumption high byte
- Byte 6: Consumption low byte
- Byte 7: Rpm high byte
- Byte 8: Rpm low byte
- Byte 9: 8-bit CRC