disable nmi

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

disable nmi

2,053件の閲覧回数
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

ラベル(1)
タグ(1)
0 件の賞賛
返信
3 返答(返信)

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

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

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