Skip to main content
RStep.6
Associate
January 12, 2022
Question

Is it possible to route ITM traffic to VCP on ST Link? At the moment i can only get serial data showing in the uVision Debug printf window. Nothing comes out on its COM port. Thanks

  • January 12, 2022
  • 3 replies
  • 1406 views

..

This topic has been closed for replies.

3 replies

TDK
Super User
January 12, 2022

ITM and VCP are separate paths. If you want data out of the VCP COM port, you'll need to use the appropriate UART channel rather than using ITM.

https://community.st.com/s/article/how-to-redirect-the-printf-function-to-a-uart-for-debug-messages

"If you feel a post has answered your question, please click ""Accept as Solution""."
Tesla DeLorean
Guru
January 12, 2022

Not how it works.

Technically they probably could create a VCP that way, but they don't.

Need to use a physical one on the ST-LINK/V2-1 devices

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
Nikita91
Lead II
January 12, 2022
Piranha
Principal III
January 12, 2022

I cannot get the point of that additional FTDI C232HM hardware. I'm just using SWO which is present on ST-LINK on a Nucleo board and connected to both - the on-board slave MCU and a header for external boards. And, by initializing the SWO output only on a single one of those simultaneously, I can switch from one to another without hardware modification. Debug, SWO and VCP - it all works simultaneously with just a single USB cable and a bare Nucleo board at the end of it.

Nikita91
Lead II
January 13, 2022

Interesting.

How do you get and display the data from the SWO through the STLINK usb?