cancel
Showing results for 
Search instead for 
Did you mean: 

SWD for stm32L432KC

AGN
Associate

I have started to use stm32l432kc Nucleo board of 32 pins, I want to print some text using the SWD method but I don't know how to do it.Any pls guide me how to do it

1 REPLY 1
KnarfB
Principal III

This might be a bit tricky. The MCU SWO pin is PB3 which is routed to the LED on the small Nucleo-32 boards and *not* connected to the ST-LINKs SWO pin. See board schematics dm00231744-stm32-nucleo32-boards-mb1180-stmicroelectronics. The larger boards are easier to use here.

If you follow the STM32 microcontroller debug toolbox - Application note, you can detect your SWO debug output on pin PB3 by a scope etc..

Maybe you can connect (solder) PB3 to the ST-LINK SWO pin and therefore use the USB debug connection, but I haven't tried that.

Good luck.

KnarfB