disable the NMI at startup for MKE02?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

disable the NMI at startup for MKE02?

888 Views
mohamedabdelmag
Contributor II

Is there a way to disable the NMI at startup for MKE02

0 Kudos
4 Replies

620 Views
ZhangJennie
NXP TechSupport
NXP TechSupport

hi.

NMIE is write-once bit. its default value is 1.

set NMIE bit as 0 after reset can disable NMI.

pastedImage_0.png
Have a great day,
Jennie Zhang

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

620 Views
mohamedabdelmag
Contributor II

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.

0 Kudos

620 Views
tongjianwu
Contributor III

Hi, Mohamed AbdelMaguid!

          Does it work now ? I ran into the same problem,my hardware platform,MK60DN512VLQ10.

          Thanks !

0 Kudos

620 Views
mohamedabdelmag
Contributor II

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.

0 Kudos