How can I view the NVIC setup in Debug?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How can I view the NVIC setup in Debug?

Jump to solution
975 Views
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)

Labels (1)
Tags (4)
0 Kudos
1 Solution
700 Views
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 ).

View solution in original post

0 Kudos
2 Replies
701 Views
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 Kudos
700 Views
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 Kudos