Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
project:arm_debugging:start [2019/12/22 17:26]
abyssal [Example: Unbricking (restoring) Proxmark bootloader]
project:arm_debugging:start [2020/03/18 22:02] (current)
abyssal [J-link/JTrace] SystemView, STLink to JLink flash, ARM ETM tracing
Line 313: Line 313:
 {{ :​project:​proxmark-jlink.jpg?​800 | }} {{ :​project:​proxmark-jlink.jpg?​800 | }}
  
 +===== SystemView for J-link - visualization of interrupts or other functions =====
  
 +There is an instrumentation possible with changes to code to show how your functions and interrupts behave - [[https://​wiki.segger.com/​Use_SystemView_without_RTOS | sample code]]
 +
 +Here is an example showing "tail chaining"​ of interrupts where interrupts are behind one another, and also "late arriving",​ where Systick interrupts USB interrupt (marked as IST #93 starting at position 2195):
 +
 +{{:​project:​arm_debugging:​systemview_20200318_113539.png?​800|}}
 +
 +If you add extra functions, it may measure your functions as well:
 +
 +{{:​project:​arm_debugging:​systemview_20200318_100652.png?​800|}}
 +
 +As a side note, ST-link on STM32 discovery boards can be reflashed to JLink (works only on discovery boards, not on separate ST-links).
 +
 +===== ARM ETM trace - recording executed instructions =====
 +
 +ARM processors (Cortex M1+ and others) have built-in a nifty feature that you can record all instructions executed. This requires quite costly hardware (expect 2000 EUR price - JTrace, Lauterbach and uLink), but it can be handy in debugging DMA and interrupts.
 +
 +An example ETM trace:
 +
 +{{:​project:​arm_debugging:​ozone_error_shutdown_highlighted.png?​800|}}
 ====== Flyswatter connected to Proxmark ====== ====== Flyswatter connected to Proxmark ======
  
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Noncommercial-Share Alike 4.0 International
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki