I think my MKW30Z got stuck in NMI interrupt after power on, because on debug session with J-Link Lite FSL it works ok.
How can I implement (declare) and disable the NMI interrupt at startup ?
(should I modify the startup_MKW30Z4.s file ?)
You can disable NMI pin function by changing the startup file. Find the following code. So you just need to change the flash configuration byte at 0x40D to 0xFB.
SECTION FlashConfig:CODE__FlashConfig DCD 0xFFFFFFFF DCD 0xFFFFFFFF DCD 0xFFFFFFFF DCD 0xFFFFFBFE__FlashConfig_End
You can find the definition for FOPT which configures this function in Table 6-2. Flash Option Register (FTFA_FOPT) bit definitions.
Works, I unchecked also Project Options Debugger Download Use flash loader(s)
Thank you !
Retrieving data ...