disable the NMI at startup for MKE02?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

disable the NMI at startup for MKE02?

2,731件の閲覧回数
mohamedabdelmag
Contributor II

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

0 件の賞賛
返信
4 返答(返信)

2,463件の閲覧回数
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 件の賞賛
返信

2,463件の閲覧回数
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 件の賞賛
返信

2,463件の閲覧回数
tongjianwu
Contributor III

Hi, Mohamed AbdelMaguid!

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

          Thanks !

0 件の賞賛
返信

2,463件の閲覧回数
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 件の賞賛
返信