STM32 and Robotics Courses:
https://www.steppeschool.com/courses
This video explains how to set up a Serial Wire Viewer to use PRINTF function within your code.
0:00 Creating a new Project
0:47 Checking the clock frequency and defining a new function to sending data through SWV
1:56 Enabling SWV
2:34 Displaying SWV data Console
3:10 writing a code to check the printf function
4:21 Solder bridges to connect SWO to the appropriate pin of the microcontroller