cancel
Showing results for 
Search instead for 
Did you mean: 

STM32L4 serial communication doesnt work!

OTosu.1
Associate II

hey,

i have an STM32L432KBU6 and i want to serial communicate with my chip. I connected the SWCLK, SWDIO and the SWO pin and followed a couple tutorial on youtube but i just cant get the Serial communication done. i just want to open serial monitor like the adruino has. i tried it with the VCP(virtual com port), cuz my st link v3 has it and it doenst work.

sorry for my bad english, but if you have the answer i would be very happy :)

thanks for reading it.

2 REPLIES 2
KnarfB
Principal III

SWO pin is different than VCP. Both do work, e.g. on a STM32L432 Nucleo32 board. Board schematics are avail for reference. You may also consult app note "stm32 microcontroller debug toolbox"

hth

KnarfB

edit: SWO is avail on the newest Nucleo-32 only (G431KB) and larger Nucleo boards

You'd need to wire a UART to use the ST-LINK/V3 VCP

To use SWO you'd need to use your debugger, there is a Serial Debug in Keil, and the ST-LINK Utilities and STM32 Cube Programmer should have a SWV Window. Need to have the core clock right for it to work.​

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