Skip to main content
maryam magdy
Associate III
January 15, 2019
Question

Minimum connections needed between MCU and the st-link programmer?

  • January 15, 2019
  • 5 replies
  • 3291 views

My MCU is stm32L432kc. I've concluded that we need a minimum of 4 connections: SWCLK, SWIO, vcc and gnd. Can someone from here confirm that?

And another question is I'm confused how to connect the Vdda/Vref+ pin 5 and the NRST pin4. Do I have to connect them? I have the schematic of nucleo board for my MCU attached. Should I just connect them the same way?

This topic has been closed for replies.

5 replies

Tesla DeLorean
Guru
January 15, 2019

I'd lean toward having a pull-up on NRST, and also providing it on a debug interface, will help recover when the code does odd things, or sleeps the processor.

PB3/SWO/TDO is also recommended for a CM4 debug communication channel, ie SWV Serial Wire Viewer.

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Uwe Bonnes
Chief
January 15, 2019

SWCLK and SWDIO and GND may also be enough. E.g. if VCC on your board is 3.3 Volt and you connect to the SWD connector on a nucleo or discovery board. NRST should have a 100 n to round. VDDA should at least be connected to VDD or clean voltage derived from VDD

S.Ma
Principal
January 15, 2019

GND, SWDIO, SWDCLK and MCU Vdd (for monitoring purpose) are the minimum required connectivity with ST Link for debugging.

maryam magdy
Associate III
January 15, 2019

@Community member​  I'm guessing the SWO is the MCO in my nucleo board in the pic I attached. So without it I can't use the printf function and debug through serial?

Tesla DeLorean
Guru
January 15, 2019

No, I'm talking about PB3

The MCO (from PA8 on an ST-LINK) is presumably a clock source.

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