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

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

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

1,012 次查看
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.

标签 (1)
0 项奖励
回复
4 回复数

767 次查看
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 项奖励
回复

767 次查看
thomasedel
Contributor III

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

-Thomas

0 项奖励
回复

767 次查看
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 项奖励
回复

767 次查看
thomasedel
Contributor III

Thanks for clarifying.

-Thomas

0 项奖励
回复