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 ?)
已解决! 转到解答。
Hi Lucian,
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.
Hi Lucian,
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.