disable the NMI at startup for MKE02?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

disable the NMI at startup for MKE02?

902 次查看
mohamedabdelmag
Contributor II

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

0 项奖励
4 回复数

634 次查看
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 项奖励

634 次查看
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 项奖励

634 次查看
tongjianwu
Contributor III

Hi, Mohamed AbdelMaguid!

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

          Thanks !

0 项奖励

634 次查看
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 项奖励