disable nmi

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

disable nmi

979 Views
ammarbazzaz
Contributor II

Hi,

I am concerned about unwanted NMIs.  If I do not enable the NMI pin functionality, will this suffice to ensure that I will not get any NMIs or do I have to explicitly set the NMI_DIS bit of the FTFE_FOPT register?

Hardware is MKE16F512VLH16 (64LQFP)

IDE is MCUExpresso IDE v10.0.2 [Build 411] [2017-07-11]

Thank you kindly for your input.

Ammar

Labels (1)
Tags (1)
0 Kudos
3 Replies

788 Views
miduo
NXP Employee
NXP Employee

Hello,

Actually the manual mentioned this already:

pastedImage_1.png

it is recommended that the NMI function be disabled by clearing NMI_DIS (NMI_DIS bit of the FTFE_FOPT).

0 Kudos

788 Views
ammarbazzaz
Contributor II

Thank you Fang Li,

I guess my next question is if there is a good application note for writing the non-volatile bytes in flash that are then loaded to FTFE_FOPT at startup?  I was able to do this by modifying some code in the file "startup_mke16f16.c", but was hoping to have a better understanding of the process for writing individual bytes or words in flash.

Best Regards,

Ammar

0 Kudos

788 Views
miduo
NXP Employee
NXP Employee

Hello, Ammar

I did not find the application note dedicate for your purpose. Anyway, there has several posts really give more information on how to handle FTFE_FOPT. See here:

Boot from flash  

https://community.nxp.com/thread/389402 

0 Kudos