debugging_hardware

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
debugging_hardware [2020/06/19 10:14] admindebugging_hardware [2022/04/29 14:07] (current) – [gdb] admin
Line 1: Line 1:
 +
 +ARM semihosting
 +
 +ITM, available in M3/M4/M7, output debug msgs over serial SWO / SWV (protocol)
 +
 +ETM
 +
 +SWD: SWCLK, SWDIO plus (optional) SWO
 +
 +SWO is an optional extension of the SWD interface
 +
 +RTT (Segger)
 +
  
 [[https://github.com/blacksphere/blackmagic/wiki|Black Magic Probe]] [[https://github.com/blacksphere/blackmagic/wiki|Black Magic Probe]]
 +
 +https://www.codeinsideout.com/blog/stm32/swv/
  
 ====== ARM ====== ====== ARM ======
Line 19: Line 34:
 http://snowcap.fi/blog/2011/11/21/openocd-with-swd/ http://snowcap.fi/blog/2011/11/21/openocd-with-swd/
  
 +====== J-Link ======
 +https://gnu-mcu-eclipse.github.io/debug/jlink/install/
 +
 +https://boundarydevices.com/debugging-using-segger-j-link-jtag/
 ====== OpenOCD ====== ====== OpenOCD ======
 https://wrongbaud.github.io/stm-xbox-jtag/ https://wrongbaud.github.io/stm-xbox-jtag/
  
 +https://www.allaboutcircuits.com/technical-articles/getting-started-with-openocd-using-ft2232h-adapter-for-swd-debugging/
 ====== gdb ====== ====== gdb ======
 +{{ :gdb_cheat_sheet.pdf |}}
 +
 https://www.youtube.com/watch?v=PorfLSr3DDI https://www.youtube.com/watch?v=PorfLSr3DDI
  
Line 33: Line 55:
 https://interrupt.memfault.com/blog/cortex-m-breakpoints https://interrupt.memfault.com/blog/cortex-m-breakpoints
  
 +Some interesting articles:
 +
 +https://jvns.ca/blog/2014/02/10/three-steps-to-learning-gdb/
 +
 +https://jvns.ca/blog/2016/08/10/how-does-gdb-work/
 +
 +https://jvns.ca/blog/2018/01/04/how-does-gdb-call-functions/
 ====== gdb automated tests ====== ====== gdb automated tests ======
  
Line 56: Line 85:
  
 https://interrupt.memfault.com/blog/gdbundle-plugin-manager https://interrupt.memfault.com/blog/gdbundle-plugin-manager
 +
 +[[https://www.youtube.com/watch?v=QQcp8CPjkoY|Debugging ARM hard faults with gdb]]
  • debugging_hardware.1592561674.txt.gz
  • Last modified: 6 years ago
  • by admin