NMI disable K02F with KDS

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

NMI disable K02F with KDS

ソリューションへジャンプ
4,354件の閲覧回数
pietrodicastri
Senior Contributor II

Good morning

I need to disable the NMI since the reset. I cannot do runtime if possible, the NMI pin is flickering because of external connetion and I never manage to debug

because the NMI handler is always taking control.

In the IRM the FOPT boot options are explained. It seems if the bit2 here is clear the NMI will never be serviced.

How to implement in the KDS this option???

 

Thank You

ラベル(1)
タグ(2)
1 解決策
3,146件の閲覧回数
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Pietro di Castri:

In a KDS project without Processor Expert open the file startup_MK02xxx.S and search for the Flash Configuration. The FOPT is at address 0x40D, so to disable the NMI function set the corresponding byte to FB as in the image below:

pastedImage_5.png

The .FlashConfig section starts at 0x400, so you can see how the highlighted byte corresponds to FOPT.


Regards!,
Jorge Gonzalez

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

元の投稿で解決策を見る

5 返答(返信)
3,146件の閲覧回数
pietrodicastri
Senior Contributor II

Hello Iva

It seems the suggestion is using the Processor expert. I am not. I need to stop with manual setting the configuration.

If You can supply the hand way of doing I would be happy..

Thank You for support.

Have a nice week end..

0 件の賞賛
返信
3,147件の閲覧回数
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Pietro di Castri:

In a KDS project without Processor Expert open the file startup_MK02xxx.S and search for the Flash Configuration. The FOPT is at address 0x40D, so to disable the NMI function set the corresponding byte to FB as in the image below:

pastedImage_5.png

The .FlashConfig section starts at 0x400, so you can see how the highlighted byte corresponds to FOPT.


Regards!,
Jorge Gonzalez

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

3,146件の閲覧回数
ivadorazinova
NXP Employee
NXP Employee

Hello Pietro,

Please check the option in KDS, if is not checked, is disable.

https://mcuoneclipse.files.wordpress.com/2014/04/disabled-nmi-pin.png

and follow this guide

Pin Muxing: Using the NMI Pin as GPIO Pin | MCU on Eclipse

I hope this helps

Have a great day!

Best Regards

Iva

0 件の賞賛
返信
3,146件の閲覧回数
dquittman
Contributor I

I am having similar trouble with modifying the boot-time behavior of nNMI on K64FN1M0VLQ12. In my case, I am using processor expert on KDS3.0 on Ubuntu Linux 14.04. I can't seem to find the options tab you're talking about. When I double click on the CPU component, I only get the following options:

KDS3_CPU_component_inspector.png

There's nothing to modify CPU interrupts/resets nor the NMI pin. Any ideas?

---DanQ

0 件の賞賛
返信
3,146件の閲覧回数
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Daniel Quittman:

Your project uses KSDK. The flash configuration options are not handled by Processor Expert anymore. Please follow the procedure I mentioned to disable the NMI pin.

0 件の賞賛
返信