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
Hello,
Actually the manual mentioned this already:
it is recommended that the NMI function be disabled by clearing NMI_DIS (NMI_DIS bit of the FTFE_FOPT).
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
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: