MKW30Z; SDK1.3; IAR 7.50; C NMI_Handler implementation

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

MKW30Z; SDK1.3; IAR 7.50; C NMI_Handler implementation

跳至解决方案
1,144 次查看
lucianfiran
Contributor V

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 ?)

标签 (1)
标记 (1)
0 项奖励
回复
1 解答
981 次查看
cutworth
NXP Employee
NXP Employee

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.

pastedImage_1.png

在原帖中查看解决方案

0 项奖励
回复
2 回复数
981 次查看
lucianfiran
Contributor V

Works, I unchecked also Project Options Debugger Download Use flash loader(s)

Thank you !

0 项奖励
回复
982 次查看
cutworth
NXP Employee
NXP Employee

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.

pastedImage_1.png

0 项奖励
回复