Is there a way to disable the NMI at startup for MKE02
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, Mohamed AbdelMaguid!
Does it work now ? I ran into the same problem,my hardware platform,MK60DN512VLQ10.
Thanks !
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.