>SWD connection works fine but we have observation that when MCU is in debugging mode and MCU is generating PWM pulses for power circuit, the moment power circuit starts to draw the power, MCU comes out of the debugging and we are not able to watch the various parameters in watch window. Hence, we would like to go with JTAG and want to debug the code during power circuit in operation.
So forget your "jtag will solve my problems idea" - connecting with jtag will show same behaviour.
Best solution: dont debug, while power circuits running. (Or : only possible solution, depends on the "power" of your system there. )
I work on inverters with 1...120 kW output - and believe me, nothing will work reliable with some low level cable connected to debug - even on (potential free) Laptop, when inverter starting.
Maybe with Laptop (running on battery supply) + isolated debug adapter ...it might work.
This you could try... ST-LINK/V2-ISOL , to have swd debug connection on running power unit.
Usually i debug on a simulator and on big inverter only by serial "debug" printf (not sensible to every small spike).
+
btw
My impression : st-link V3 more sensitive to small EMI/spikes on ground than V2 .