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

64369
124
1028
29.04.2020
Phil’s Lab

Phil’s Lab

5219536
91800
104
10.02.2007
DE
Описание видео:

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 - Phil's Lab #4
STM32 + SWD + ST-Link + CubeIDE | Debugging on Custom Hardware Tutorial - Phil's Lab #4
STM32 + SWD + ST-Link + CubeIDE | Debugging on Custom Hardware Tutorial - Phil's Lab #4
STM32 + SWD + ST-Link + CubeIDE | Debugging on Custom Hardware Tutorial - Phil's Lab #4
Тэги из видео
Комментарии пользователей:
Vincent Neemie
2022-11-20 10:47:16

Hello Phil, how are you doing?
Are you only able to debug and read the code in the stm if you are the creator of the code? or can anyone review and edit as long as they have physical access to the chip board?
Thank you in advance!

Tròn
2022-10-30 10:01:16

Thank you so much! This helped me get going with the MIKROE board, the documentation of MikroSDK and their forum were barely helpful

Darren, the racer
2022-08-22 03:43:51

Hi Phil, just another question about the power inputs. I see you have many voltage sources(More than 2 usb and that lipo source) but my question is, can you plug in all the sources at once? Also if you were to plug in 2 usb, how would 2 5v inputs safely work? What if i wanted to monitor battery while i plug usb to monitor via serial port?

Fabio Almeida
2022-04-08 17:39:47

You explain so well, congrats, and continue the good work.

Richard Jones
2022-02-25 21:27:34

Thanks Phil, great pacing and very useful to help me get started with STM and ST-Link, coming from other embedded tools like TI/CCS, Arduino,VS-Code/ESP32 etc.

Kumar M
2022-02-05 04:26:38

St- link V2 will it work for STM32H7 series as debugger?

Younes Thabet
2022-01-26 14:42:01

@ qMUzLU636s8&t=5m45s 5:45 why you choose Serial Wire instead of JTAG4/5 !? and what is the difference between them!?

Brendan Hayes-Oberst
2022-01-20 19:10:47

Do you have a video where you make this particular pcb?

Brendan Hayes-Oberst
2022-01-20 19:06:36

the best stm32 tutorials on youtube

Armin Cal
2021-12-13 08:41:52

I have a custom Chinese board which has an Stm32f105RC. The designer has decided to put 4 SWD pins on it. I want to program it using a Chinese clone St-link v2. But Cube can't find the mcu even tho it's power led is on. I guess I am connecting things wrong.
My question is, how come swd needs 4 pins(on the board) but the stm32 socket on my debugger has 10 pins?

javid noor
2021-12-12 12:23:39

Hi Phil, i hope you are doing well .is it possible to read hex from Stm32 and write in to new Stm32 with St-link v2 .i just want to understand can we copy this Hex and write in to blank stm32 .my one board damage and want to copy that hex file in to new fresh stm32 .

dhru's Lab
2021-12-06 09:20:45

Hi sir,
great content but in your flight controller respiratory there are 2 firmwares , can you please specify which firmware will go to which micro controller? which one is uploaded to F4 (Navic)mcu and which will be uploaded to F7(The main flight controller).

God is love
2021-11-18 01:20:55

You forgot to close gp1 gp2 on board

Christopher Smith
2021-11-02 17:16:54

Super helpful!

Edwin VP
2021-10-17 17:46:18

Thank you for this very nice video! Your video provided the hints I was looking for. I've got a working "hello blinky LED" program now.
One note in case of my board, I had to press the RESET button on the board before ST link application would recognize the target.

uBotics
2021-08-21 04:51:14

Great videos well done Phils. I’m currently having some issues with STM32H7 chip on a board I designed, and I don’t seem to find resources on how to program the chip directly with STLink/V2 programmer via SWD. Can you suggest me any help? as I haven’t been able to downloaded any code to the chip.
Thanks

Jackie Wang
2021-08-14 21:49:43

Thanks a lot! qMUzLU636s8&t=5m42s 5:42 is very important. I originally thought my debugger is broken.

Raamakrishnan NS
2021-07-14 21:12:40

Hi Phil, Can this ST-Link also be used for STM 8 bit controllers? or is it specific to STM32 controllers?

hUgO6191
2021-06-16 07:13:05

Can you help me out with something? When I use ST-Link I can connect to my board however when I try to debug with STM32CubeIDE I get an error ST-Link not found.

Что ищут прямо сейчас
замер компрессии в двигателе Kia Zaap Песьяков Неоновые вывески 빅스 Remesh pisharaody валик cappella yabancı furiosufade корректирование текстов туи из черенков сколько растут нью баксы 발상 pulsa gopay жирную cach nhap key ban quyen cho VMware vSphere ESXi sims 4 build hacks россиянство как варить гречку skoda karoq
Похожие видео
20.08.2021
How To Write A Driver (STM32, I2C, Datasheet) - Phil's Lab #30

How To Write A Driver (STM32, I2C, Datasheet) - Phil's Lab #30

24.10.2020
STM32 Programming Tutorial for Custom Hardware | SWD, PWM, USB, SPI - Phil's Lab #13

STM32 Programming Tutorial for Custom Hardware | SWD, PWM, USB, SPI - Phil's Lab #13

02.09.2018
Remote Debugging ARM Chip with SWD/JTAG - Hardware Wallet Research #3

Remote Debugging ARM Chip with SWD/JTAG - Hardware Wallet Research #3

22.08.2018
SWD Debug Issues check list

SWD Debug Issues check list

26.03.2022
Usage ST-LINK V2 Tutorial. STM32 Programming for Beginners. Cheap clone ST-Link comparation

Usage ST-LINK V2 Tutorial. STM32 Programming for Beginners. Cheap clone ST-Link comparation

06.12.2018
STM32 F103 BLUEPILL - Getting Started with Arduino Core

STM32 F103 BLUEPILL - Getting Started with Arduino Core

10.12.2019
Flight Control System Design: Hardware and PCB Design with KiCAD - Phil's Lab #1

Flight Control System Design: Hardware and PCB Design with KiCAD - Phil's Lab #1

29.06.2021
Flashing STM32 with ST-LINK, JLINK and UART Bootloader, cross platform | VIDEO 44

Flashing STM32 with ST-LINK, JLINK and UART Bootloader, cross platform | VIDEO 44

17.02.2020
STM32 Blue Pill vs Black Pill Microcontroller Boards

STM32 Blue Pill vs Black Pill Microcontroller Boards

02.04.2018
Blue-pill STM32 Programming Using ST-LINK V2 Dongle

Blue-pill STM32 Programming Using ST-LINK V2 Dongle

23.06.2020
STM32 (stm32f103c8) Serial wire debug -- STM32CubeIDE

STM32 (stm32f103c8) Serial wire debug -- STM32CubeIDE

11.05.2020
KiCad STM32 + RF + USB Hardware Design - Phil's Lab #5

KiCad STM32 + RF + USB Hardware Design - Phil's Lab #5

21.11.2020
KiCad STM32 Hardware Design - An Overview in 20 Minutes - Phil's Lab #15

KiCad STM32 Hardware Design - An Overview in 20 Minutes - Phil's Lab #15

24.12.2020
STM32 Guide #2: Registers + HAL (Blink example)

STM32 Guide #2: Registers + HAL (Blink example)

13.02.2021
Printf Debugging & enabling SWO pin in the ST-LINK V2 clone - For STM32 CubeIDE - BluePill

Printf Debugging & enabling SWO pin in the ST-LINK V2 clone - For STM32 CubeIDE - BluePill

21.01.2018
Easy & Powerful Arduino Alternative? STM32 Beginner's Guide

Easy & Powerful Arduino Alternative? STM32 Beginner's Guide