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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

ソリューションへジャンプ
1,140件の閲覧回数
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 解決策
977件の閲覧回数
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 返答(返信)
977件の閲覧回数
lucianfiran
Contributor V

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

Thank you !

0 件の賞賛
返信
978件の閲覧回数
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 件の賞賛
返信