I have been working with MCU S32K116 in order to develop an Absolute Position Encoder. I had problems programming the MCU with S32 Studio for ARM 2018 using JTAG. What I did to solve the problem was, loading the program in the S32K116 EVB and then dewelding the MCU from the evolution board and welding it to the pcb layout I desing.
After that I can program using the JTAG pins without trouble.
Is there some initial condition of the MCU, when you buy a virgin MCU S32K1xx that, doesn't aloud you to program by JTAG for the first time?