hi.
NMIE is write-once bit. its default value is 1.
set NMIE bit as 0 after reset can disable NMI.
Have a great day,
Jennie Zhang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
hi jennie,
yes, but if the NMI pin is tied to ground the interrupt will happen before even it reaches the initialization function.
it then stays inside the interrupt and never continue the execution of the program.
hi, Jianwu,
unfortunately no final answer till now. the only solution that is working for me till now is disable the interrupt inside the NMI interrupt service routine (Write 0xFB to SIM_SOPT0) . so it will not happen again. hope that helps.