It can disable NMI function with SIM_SOPT [NMIE] bit setting using software code after each reset. While, it need make sure NMI external input voltage keep high during chip reset, otherwise the chip will enter into NMI interrupt after reset.
While customer can hold external reset pin to make programmer connects with KE02 and programing successfully.
During the normal code running, if customer NMI pin without external pull up, it will enter into NMI interrupt as expected(NMI pin detect low voltage during reset). Then customer can disable NMI function in NMI interrupt service routine.
After that, customer can use NMI pin as GPIO function.
Wish it helps.
Best regards,
Ma Hui
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------