The dilemma i see is that you can only disable the EZPort/NMI functions via FOPT when you are able to program your device.
Or other way round in my case, EZPort is by default enabled in Kinetis but the hardware circuitry is preventing me to program my device by JTAG so i cannot disable EZPort to program my device via JTAG.
I was looking for a way around this but it seems that the only possibilities are writing the flash via ezport to disable ezport or to redesign my circuit.
The lessons learned for me are
- dont use the PTA4/EZP_CS! as long as you got alternatives
- if you use it, try to use it as an output with external pullups to be sure
- disable NMI/EZPort when possible