STM32 + SWD + ST-Link + CubeIDE | Debugging on Custom Hardware Tutorial - Phils Lab #4 @PhilsLab
STM32 + SWD + ST-Link + CubeIDE | Debugging on Custom Hardware Tutorial - Phils Lab #4  @PhilsLab
Uploaded April 2020 | Updated November 2026, 3 hours ago
Guide on how to connect, check, program, and debug your custom STM32-based hardware via SWD and the ST-Link debugger utilising STM32CubeIDE.

If you have any questions or suggestions for future videos, please let me know in the comments!

[Timestamps]
00:00 Introduction
00:28 ST-Link
01:08 Hardware Connections

02:11 ST-Link Utility (Checking that we can connect to STM32 MCU)
03:37 STM32CubeIDE (Programming and debugging software package)

05:22 Enabling SWD
06:04 Setting up an external high-speed crystal (HSE)
07:10 Additional peripheral selection

08:50 LED blinking test code
09:44 Building code and checking for compiler errors
10:02 Debug configuration, debugging, and flashing via ST-Link
11:26 Running, pausing, and setting breakpoints

12:20 Hardware running code

[Hardware]
ST-Link/V2 Debugger: st.com/en/development-tools/st-link-v2.html
20-pin to 10-pin 1.27mm Adapter: olimex.com/Products/ARM/JTAG/ARM-JTAG-20-10

[Software]
STM32CubeIDE: st.com/en/development-tools/stm32cubeide.html
ST-Link Utility: st.com/en/development-tools/stsw-link004.html

ID: QIBvbJtYjWuHiTG0uCoK
STM32 + SWD + ST-Link + CubeIDE | Debugging on Custom Hardware Tutorial - Phils Lab #4Noise Gate - DSP with STM32 - Phils Lab #58Boost Converter Design & Sizing - Phils Lab #113Biquad Filters (DSP with STM32) - Phils Lab #172(Sponsored) Design Review - Schematic & PCB - Phils Lab #70Flight Control System Design: Hardware and PCB Design with KiCAD - Phils Lab #1Debugging, 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 #88
Phil’s Lab |

STM32 + SWD + ST-Link + CubeIDE | Debugging on Custom Hardware Tutorial - Phil's Lab #4

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER