I encountered a problem with MCU reset under no simulation conditions, it was found that the reset reason was JTAG generated reset by checking the register RCM>SRS .
As it is mentioned in the reference manual(25.2.5.1 JTAG reset): "The JTAG module generates a system reset when certain IR codes are selected. This functional reset is asserted when EXTEST, HIGHZ and CLAMP instructions are active.
The reset source from the JTAG module is released when any other IR code is selected."
There is a possibility that a hardware problem is generating the reset.
Please be sure that you are considering good practices for the circuit and layout. In the following link, you can find the Hardware design guidelines recommendations about JTAG for S32K1.