cancel
Showing results for 
Search instead for 
Did you mean: 

Hello. I am building an application and planning on using the STLINK-V3SET to program and debug, but I can not find any reference which describes what pins to connect for the VCP_TX and RX pins from the programming header to the MCU.

gmassey
Associate

I believe that I connect the following:

T_SWDIO -> PA13

T_SWCLK -> PA14

T_NRST -> NRST

But which pins on the MCU do I connect for the virtual comport?

VCP_TX -> PA2 or PA9

VCP_RX -> PA3 or PA10

Also, SWO is not avaliable on the Cortex M0+? so is not connected?

And other than power and ground no other pins are connected?

Thanks, I found reference to the STLINK-V3 but couldn't find any reference on how to interface with the MCU. Attached are some photos of my schematic.

2 REPLIES 2

Depends what UART you want to use for debug or production programming. You are writing the STM32 side code, so you can decide which one you want to use, or if you need to add more circuitry to share one you are already using. If you're only doing diagnostic output you only need to find a UART TX pin, and this can keep other full UARTs free for the actual product.

The CM0(+) support an Event Recorder method, several also have a UART on the SWDIO/SWCLK pins which could be used in-lieu of a debug pod

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

Thanks. That makes sense. Have a good day.