2018-08-28 05:53 PM
I am trying to connect my ST-LINK/v2 to a Nucleo and having difficulties -
Apparatus
Here is my apparatus config, using Vdd=3.3V -
Here is my wiring config (CN2 jumpers open) -
Here is my utility config when I try to connect -
Why isn't this working, thoughts?
2018-08-28 06:11 PM
I connect my Nucleo directly to the USB port on the PC...
2018-08-28 09:42 PM
You are using the 'embedded' ST-LINK, I am referring to using an 'external' ST-LINK.
Here is a ref to the ST-LINK you use, if interested -
2018-08-28 10:06 PM
did you remove both jumpers on CN2 ?
2018-08-29 05:08 PM
does it work today, what was the fix ?
2018-08-29 05:27 PM
Both CN2 jumpers are removed. I found this useful ref -
I was not able to get this working with either the external ST-LINK/v2, or my Segger J-Link. Thoughts? I have tried both Nucleo-USB power and external power.
2018-08-29 05:50 PM
I have never used the external STlink.
I have used the Nucleo boards extensively, and also to program my custom boards.
but the 6 pin link is from the F103(nucleo) chip to my custom board.
in your case, it is backwards.
I remove the jumpers on CN2 so that the F446 chip in your case, is removed from the SWD and the Custom board is directly attached to the F103 nucleo chip.
that implies that with the jumpers removed the 446 is not connected to that External STlink
I think you should reinstall the two jumpers on CN2 and desolder the F103. <- your fix today
or else, of course,
did you make a custom board yet ?
put the 6 pin SWD on your PCB
the external STlink should just work.
2018-08-29 06:10 PM
I've cover this topic several times already.
The header you're using doesn't connect to the Target properly
Connect SWDIO and SWCLK on the TARGET side of the CN2 jumper/header, review the schematic it will help understanding the connectivity.
2020-04-15 07:39 PM
According to the pdf, you can use the Nucleo/Discovery's built-in St-Link to program an external chip via the SWD CN4 connector (remove CN2 jumpers).. but what advantage is there to using an external StLink-V3/J-Link to program the Nucleo/Discovery's STM32?
In any case, to do it, looks like you'd have to remove the CN2 jumpers, but connect your external stlinkv3 to the Zio/Morpho/Arduino header(s).
2020-04-15 10:47 PM
Two year old thread.
The target's SWDIO and SWCLK are exposed at CN2.
Why people want to do this is anyone's guess but it is a recurring theme.