On the MKE18F, I used the NMI pin as a GPIO. I think I've found how to configure FOPT to disable NMI, but I'm having intermittent problems getting the debugger to connect and program the chip after having programmed it with NMI enabled (since that's the MCUXpresso default) ...could this be caused by the NMI pin or should the SWD port be able to override this? Long term, the concern is that we'll have problems programming this the first time.
From the debug scripts, I'm getting:
Release NRESET
Reset pin state: 01
MDM-AP Control (Debug Request): 0x00000004
MDM-AP Status: 0x00000032
MDM-AP Core Halt Failed
MDM-AP Control (Debug Request): 0x00000004
MDM-AP Status: 0x00000032
MDM-AP Core Halt Failed
MDM-AP Control (Debug Request): 0x00000004
MDM-AP Status: 0x00000032
MDM-AP Core Halt Failed
and RESET is being held low, presumably by the processor.
Reset circuit is per Figure 37, page 93 of the KE1xFP100M168SF0 data sheet.
John