2019-01-15 05:24 AM
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?
2019-01-15 06:15 AM
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.
2019-01-15 06:20 AM
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
2019-01-15 06:53 AM
GND, SWDIO, SWDCLK and MCU Vdd (for monitoring purpose) are the minimum required connectivity with ST Link for debugging.
2019-01-15 11:29 AM
@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?
2019-01-15 11:35 AM
No, I'm talking about PB3
The MCO (from PA8 on an ST-LINK) is presumably a clock source.