Recommended · for advanced
Printf Debugging & enabling SWO pin in the ST-LINK V2 clone - For STM32 CubeIDE - BluePill
Why people recommend it
Walks through modifying a cheap ST-Link V2 clone to get SWO trace output, including the soldering, CubeMX settings and code, and one person reports success with it.
Watch for: Clone pinouts vary, so check your own board first
In their words
I was using st-link v2 clone which don't have SWO pin on hardware hence it was not working then i modified my st link hardware to get int working.for hardware modification i followed this link:
Chr_arj on electronics.stackexchange.com, Oct 2023. CC BY-SA.