cancel
Showing results for 
Search instead for 
Did you mean: 

Debugging STM32F446ZE Nucleo SWD with external ST-Link v2

HMSEdinburge
Associate II

Hello... I'm learning to use an external ST-Link to debug the F446ZE Nucleo using SDW. Can anyone advise on how to connect the SDIO, SDW pin on the Nucleo board to the external ST-Link v2? Additionally, what settings should I configure in CubeIDE to use the ST-Link v2? I also have an ST-Link v3. Any advice on ST-Link v3 is also welcome, thank you. 

 

https://www.amazon.sg/SFCPI-Programmer-Microcontroller-Interface-Simulatio/dp/B09Q22M9CK/ref=sr_1_36?crid=16YO1JU6U2RWK&dib=eyJ2IjoiMSJ9.qqFD5Om07FWVxJ7mURnZvAnBXRCvJLAQA211deD1kNya9Js-DqO4-cRn32AtBIWEjDRlPpe_iywzItiqexRhb4j0qY49XkVoXA0n89ljKBoRFXV6OtPfcvENRcc6aJKyvUjyjVMDuYCSStnxmpRokAql1UFr0zT4LqA...

3 REPLIES 3

SWDIO and SWCLK  you mean? SWD ? What's SDW, dyslexia?

You'd need to connect directly to the respective PA13/PA14, most readily via the CN4 jumpers you'll remove to disconnect the local ST-LINK from the STM32 Target.

You'll need to look at the schematic and probe the pins to understand which side connects to what.

You'd need to power the ST-LINK/V2 buffers via a connection to Pin 1 VTarget on the 20-pin header.

PB3 (SWO) and NRST are connected more directly, so might be solder bridges or traces to be cut to adequately separate the them from the on-board ST-LINK

For CubeIDE you'll need to select the debug pod you plan on using.

SWD20PINSTLINK.jpg

 

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

If you want external ST-Link instead of the on-board one, you likely want the V3. It is faster, easier to connect and has USB to serial interface (aka VCOM).

 

Yes i would like to learn how to use v3, can it be used for debugging and programming? please advise the connection pin and configuration on CubeIDE, I have both the F446ZE and H743 Nucleo, albeit, the H743 nucleo has a MIPI connector for v3 ST-link..Please advise, thx.