Skip to main content
Visitor II
December 25, 2021
Question

SWD for stm32L432KC

  • December 25, 2021
  • 1 reply
  • 920 views

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

    This topic has been closed for replies.

    1 reply

    Super User
    December 28, 2021

    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