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.
Best Regards,
Robin
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
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