Step, with or without interrupt masking (KDS, KL03)

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

Step, with or without interrupt masking (KDS, KL03)

966 Views
thomasedel
Contributor III

In the "ARMv6-M Architecture Reference Manual" section C1.3 "Overview of the ARMv6-M debug features" indicates that the debug system includes the ability to "Step, with or without interrupt masking."  Does the Kinetis IDE have a way to step through a program with interrupt masking OFF (so that interrupts will be entered single-stepping as they occur)?  If so, how do I make that setting change in the Kinetis IDE?

Thanks in advance for help with this.

Labels (1)
0 Kudos
Reply
4 Replies

721 Views
BlackNight
NXP Employee
NXP Employee

Hi Thomas,

I did some research on this topic, and I have found this:

https://www.sourceware.org/gdb/onlinedocs/gdb.html#Hooks

Basically that would allow you to create your own hook were you could enable interrupts even while stepping.

I hope this helps,

Erich

0 Kudos
Reply

721 Views
thomasedel
Contributor III

Thanks for looking into it.  I think that route is probably beyond my skill level at this point.

-Thomas

0 Kudos
Reply

721 Views
Carlos_Musich
NXP Employee
NXP Employee

Hi Thomas,

P&E and Segger settings do not have something to turn this on. Maybe it could be done with some custom gdb scripts (writing that value to the register) while doing stepping, but unfortunately we don't have any example.

Sorry for the inconvenience.

Best regards,

Carlos

0 Kudos
Reply

721 Views
thomasedel
Contributor III

Thanks for clarifying.

-Thomas

0 Kudos
Reply