cancel
Showing results for 
Search instead for 
Did you mean: 

STLINK-V3PWR to Nucleo board SWD

NicRoberts
Senior II

Hi,

I am trying to link up a Nucleo-F411RE board to a STLINK-V3PWR unit via the SWD (CN6) header.
I am going to make a breakout board for the connector. See image below, I am assuming that I do not have to connect T_VCP_RX and T_VCP_TX to anything on the Nucleo board, am I right?

Breakout_board_connection_diagram.png

3 REPLIES 3
Andrew Neil
Super User

@NicRoberts wrote:

I am trying to link up a Nucleo-F411RE board to a STLINK-V3PWR unit via the SWD (CN6) header.


On a Nucleo-F411RE board (MB1136), CN6 is the Arduino power header - not SWD:

AndrewNeil_0-1777299539998.png

https://www.st.com/resource/en/user_manual/um1724-stm32-nucleo64-boards-mb1136-stmicroelectronics.pdf#page=14

via: https://www.st.com/en/evaluation-tools/nucleo-f411re.html#documentation

 

Did you mean CN2, or CN4 ?

Don't forget that you will need to disconnect the built-in ST-Link before using an external one.

The CN2 jumpers disconnect the SWD lines, but not NRST.

 


@NicRoberts wrote:

I am assuming that I do not have to connect T_VCP_RX and T_VCP_TX to anything on the Nucleo board,


So long as you don't want to use the VCP functions

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.

Ahhh yes I had the wrong datasheet open! Yes I mean CN4.

So after removing the jumpers on CN2 I will be able to program the board via CN4 or just get debug?

No.

CN4 is to allow the Nucleo's ST-Link to program an external target: it is debug out - not debug in.

See the Nucleo-F411RE User Manual (link above) and schematics:

AndrewNeil_0-1777371925345.png

 

As you mention STLINK-V3PWR, I guess your aim is to do current measurements?

In that case, you would be better breaking-off the ST-Link part of the nucleo, and connecting the STLINK-V3PWR via the SWD (and NRST) pins in the CN7 Morpho connector.

That way you'll avoid any misleading current measurements due to the Nucleo ST-Link...

AndrewNeil_1-1777372341487.png

 

A complex system that works is invariably found to have evolved from a simple system that worked.
A complex system designed from scratch never works and cannot be patched up to make it work.