How can I view the NVIC setup in Debug?

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

How can I view the NVIC setup in Debug?

ソリューションへジャンプ
1,994件の閲覧回数
raels-r
Contributor IV

I'm stepping through some code that keeps getting stuck in DefaultISR.

At first the USB0_IRQHandler (or lack thereof) was causing this, since putting in a blank handler, now it's UART1_IRQHandler.

 

Neither of these interrupts should be enabled, so I'd like to be able to read the current NVIC register setup in debug and so I can see exactly which interrupts have been enabled and which have not. Then I will hopefully be able to track down where the interrupts are going iffy.

 

Incase it matters, I'm currently using a KL25Z128 chip (FRDM K25 board)

ラベル(1)
タグ(4)
0 件の賞賛
返信
1 解決策
1,719件の閲覧回数
BlackNight
NXP Employee
NXP Employee

I'm using the EmbSys register viewer for this:

pastedImage_1.png

pastedImage_2.png

See How to Add Register Details View in Eclipse | MCU on Eclipse

I hope this helps,

Erich

PS: If using Processor Expert, make sure you enable 'own handler for every...' (see Oh my! An Interrupt… | MCU on Eclipse ).

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
1,720件の閲覧回数
BlackNight
NXP Employee
NXP Employee

I'm using the EmbSys register viewer for this:

pastedImage_1.png

pastedImage_2.png

See How to Add Register Details View in Eclipse | MCU on Eclipse

I hope this helps,

Erich

PS: If using Processor Expert, make sure you enable 'own handler for every...' (see Oh my! An Interrupt… | MCU on Eclipse ).

0 件の賞賛
返信
1,719件の閲覧回数
raels-r
Contributor IV

I will just add that whilst the later version of EmbSys register viewer (v0.25) does include Freescale definitions as standard, these definitions do not contain the NVIC registers, so users will still have to download Erich's patch from his source forge​.

Cheers Erich!

0 件の賞賛
返信