Hello Pietro di Castri:
In a KDS project without Processor Expert open the file startup_MK02xxx.S and search for the Flash Configuration. The FOPT is at address 0x40D, so to disable the NMI function set the corresponding byte to FB as in the image below:

The .FlashConfig section starts at 0x400, so you can see how the highlighted byte corresponds to FOPT.
Regards!,
Jorge Gonzalez
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------