Debugging, Logging, and Monitoring via SWO Trace (STM32 ITM & DWT) - Phils Lab #173 @PhilsLab
Debugging, Logging, and Monitoring via SWO Trace (STM32 ITM & DWT) - Phils Lab #173  @PhilsLab
Uploaded May 2026 | Updated November 2026, 3 hours ago
Printf, variable monitoring, debugging, and more using the serial wire trace output (SWO).

Limited-time: $2 for 6-layer PCBs up to 100×100 mm - grab your $33 coupon now: jlcpcb.com/events/6-layer-pcb?from=PhilsLab (Ad)

OSHWLab Stars 2026: oshwlab.com/activities/stars2026

Altium Develop: altium.com/yt/philslab (Ad)

[SUPPORT]
Hardware design courses: https://phils-lab-shop.fedevel.education
Course content: phils-lab.net/courses
Patreon: patreon.com/phils94

[LINKS]
SWO Basics: black-magic.org/usage/swo.html

[TIMESTAMPS]
00:00 Intro

01:46 JLCPCB (Ad)
03:21 Altium Develop (Ad)

04:26 SWO & HW Overview
07:31 CubeIDE Set-Up
09:03 ITM Port & SendChar
12:12 printf via ITM
13:14 Enabling SWV
16:04 Multiple ITM Ports
18:34 DWT Comparator Variable Monitor

22:44 Outro
Debugging, Logging, and Monitoring via SWO Trace (STM32 ITM & DWT) - Phils Lab #173DSP Overdrive (Asymmetrical Clipping) in Software (STM32) - Phils Lab #153I2C Hardware & PCB Design - Phils Lab #132RATT - Lay It Down Guitar SoloSTM32 USB HID Custom Joystick/Gamepad - Phils Lab #149(Sponsored) Mixed-Signal Hardware/PCB Design Tips - Phils Lab #88Class D Audio Amplifier Hardware Design - Phils Lab #125Delay-Based Audio FX Software Implementation (DSP with STM32) - Phils Lab #140RC Low-Pass Filter Deep-Dive - Phils Lab #118Introduction - Control System Design 1/6 - Phils Lab #7PCB Traces 101 - Phils Lab #112Steel Panther - Just Like Tiger Woods Guitar Solo
Phil’s Lab |

Debugging, Logging, and Monitoring via SWO Trace (STM32 ITM & DWT) - Phil's Lab #173

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER