cancel
Showing results for 
Search instead for 
Did you mean: 

Can I use 2 pins of SWD for debugging?

JZou.2
Associate II

I try to debug H7 MCU by SWD port. Can I only use SWDIO and SWCLK for this? I do not want to use NRST for debug issues.

8 REPLIES 8
Piranha
Chief II

No, you need GND also. So that's 3 pins total. 🙂

Sure, but doesnt that limit the experience? Might also consider connecting SWO​

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

Yes, GND also

I am not if NRST pin. It seems that SWDIO and SWDCLK can do everything.

.

Debugging low-power modes without NRST are problematic because once the debug interface is turned off, the debugger is unable to connect and even flash the firmware. And you want to turn off the debug interface to be able to reach current consumption levels lower than few mA.

Is there some space constraint driving you choices here? Getting the signals to a 10-pin SWD connector, or Tag-Connect footprint

If you have other JTAG parts on the board you could also connect those, and do boundary scan on the board.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

Got it.