Electronic – JTAG vs SWD debugging

debuggingjtagswd

After skimming through this article, I am wondering what are the benefits of SWD debugging over JTAG debugging?

I understand SWD uses less wires/pins, takes up less space etc. But how does it play out in terms of performance, features and cost of the hardware programmer/debugger devices? Can code still be break pointed/paused and stepped through in IDE's like Eclipse?

Can an ARM chip be programmed using the SWD interface, like I believe can be done in JTAG?

Best Answer

SWD should be able to program the ARM chipset plus you can debug and add breakpoints. The other good thing about SWD is you can use the serial wire viewer for your printf statements for debugging. I have only used it with the Keil compiler.