cancel
Showing results for 
Search instead for 
Did you mean: 

Monitor interrupts activity with SWD only

root
Associate II
Posted on August 28, 2012 at 11:27

Hello,

I'm suspecting my interrupts to trigger a lot more than necessary ...

What is the less intrusive and quickest way to monitor interrupt triggers with only SWD (no SWO) ?

Thomas.
1 REPLY 1
frankmeyer9
Associate II
Posted on August 28, 2012 at 13:49

I'm suspecting my interrupts to trigger a lot more than necessary ...

 

Primarily what you have coded in the handler routine...

From M3 upward, you can make use of the ITM, if your debug adapter and debugger sw supports it. That is one of the things that make up the difference between a <100$/euro debug adapter, and a 1000$/euro specimen. The same holds often true for the toolchain.

Another practicable method is to use GPIOs to monitor certain events at runtime, and in realtime. That requires a scope or a logic analyzer.