NMI disable K02F with KDS

cancel
Showing results for 
Search instead for 
Did you mean: 

NMI disable K02F with KDS

Jump to solution
1,242 Views
Senior Contributor I

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

Labels (1)
Tags (2)
1 Solution
34 Views
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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

5 Replies
34 Views
Senior Contributor I

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 Kudos
35 Views
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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

34 Views
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 Kudos
34 Views
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 Kudos
34 Views
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 Kudos