The STM32 is able to be debuged by JTAG or serial wire (SWJ).
What is the difference between these two debug interfaces except a different number of used pins? Do I have any disadvantages when using the SWJ?