How can I view the NVIC setup in Debug?

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

How can I view the NVIC setup in Debug?

跳至解决方案
997 次查看
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 解答
722 次查看
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 回复数
723 次查看
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 项奖励
722 次查看
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 项奖励