Skip to content
0:00 / 0:00

#stm32#st-link#swo

Printf Debugging & enabling SWO pin in the ST-LINK V2 clone - For STM32 CubeIDE - BluePill

MarcoMotaElectronics

1K subscribers • 2 videos on Hallway

YouTube
  • Recommended by 2 people: 2 in engineering communities.
  • A classic. People kept recommending it from 2021 to 2026.

Intermediate. Assumes working knowledge.

41K views5 years ago2 recommendations

Systems programmingHardwareEmbedded systemsDebugging

How to modify a cheap ST-LINK V2 clone to enable the SWO pin for ITM printf debugging in STM32CubeIDE.

In this video I will explain hot to enable the SWO pin so that to use the ITM functions and SWV functions offered by the STM32Boards. I dont take any responsibility if you happen to break your debugging tool while doing this mod. Two useful links if you want to understand better how to mod the Debugger clone so to enable the SWO: - research.kudelskisecurity.com/2020/04/15/swd-part-3-swo-and-… - eeblog.co.uk/2018/11/29/swo-with-cubemx-using-st-link-clones…

Why it's here

2 people recommend this

What people say. Engineers recommend this video for learning how to modify cheap ST-Link clones to support SWO trace debugging and printf output.

u/amrock__in r/embedded • Recommends

On “TIL - cheap knockoff STLink clones can do SWO trace debugging: https://lujji.github.io/blog/stlink-clone-trace”

link to this video

u/Freddie-Stonewarein r/embedded • Recommends

On “On STM32, what is the equivalent of Serial.print()?”

Here you have the link to a YT video on what you need to do with these cheap ST-Link V2 clones — what to solder, what to configure in CubeMX, and how to write the code: [video