HOW TO DISABLE NMI FOR MKV11Z128VFM7/QFN32

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

HOW TO DISABLE NMI FOR MKV11Z128VFM7/QFN32

453 Views
lucarossini
Contributor I

Hi ,

I read the datasheet but I can not understand.
Is it correct ?

 Flash_Config = {0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFBFE}; // disable NMI (Bit 4 x KV1)

Is The NMI_DIS the 4° bit ? Is there an error on the datasheet ?

You can see on the attached file.

0 Kudos
2 Replies

393 Views
Robin_Shen
NXP TechSupport
NXP TechSupport

Hi Luca Rossini,

There is no error about the FTFA_FOPT[NMI_DIS], the Bit Num of NMI_DIS is 2.
Modify the Flash_Config from

{0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFE}

to

{0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFFFF, 0xFFFFFBFE}

will disable NMI interrupt.

FTFA_FOPT[NMI_DIS].png

Best Regards,

Robin

 

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

0 Kudos

393 Views
mjbcswitzerland
Specialist V

Hello Luca

The NMI disable bit is the third bit, which is usually described as bit 2; Bit 4 would definitely not be correct.

FOPT byte 0xff enables it
FOPT 0xfb disables it

Regards

Mark

Complete Kinetis solutions, training and support:http://www.utasker.com/kinetis.html
Kinetis KV:
http://www.utasker.com/kinetis/TWR-KV10Z32.html
http://www.utasker.com/kinetis/FRDM-KV31F.html
http://www.utasker.com/kinetis/TWR-KV31F120M.html

0 Kudos