Please check the website to get more detailed insights about programming STM32 microcontrollers:
https://www.steppeschool.com/courses/...
https://www.steppeschool.com
A short description how to plot variables using SWV Data timeline graph .
The board I am using (NUCLEO-L476RG):
https://www.st.com/en/evaluation-tool...
Configuring SWV for printf function:
• This makes your life so easy: STM32 printf...
0:00 General description
0:59 Opening the SWV Data Trace Timeline graph and configuring it
1:36 Resuming the code and plotting data in real time
2:00 Using the Timer Update Interrupt to sample data at higher rate
3:03 Final demonstration