Debugging STM32 with ST Link Remotely

preview_player
Показать описание
In this video I will show how you can debug any STM32 device remotely ( can be any where in the world if you have VPN ) using a low cost Raspberry Pi.
Support me and become a Patreon:

From the video:
0:00 - Introduction

1. Net Analyzer

3. Putty:

4. To update the Raspberry:
sudo apt-get update
sudo apt-get upgrade

5. min:
2.53: install openocd
sudo apt-get install openocd

3:30 - openocd configuration

7. Min.
7:40 - CubeIDE configuration

8. Min.
9:40 - Check the network:
netstat -an | grep tcp

My social accounts :

Thanks.
Рекомендации по теме
Комментарии
Автор

Bindto 0.0.0.0 means to accept connections from any IP. Good tutorial

damnyutoobe
Автор

Thanks so much for this cool tutorial, any update for 2024 year and Raspberry Pi 4 hardware?

germangomez
Автор

Thank you! Awesome!
Unfortunately, ST has no support "st-link server" for linux using ARM processors.. heh, who need this solution works fine, with debugger and flasher! :)

RamboZa
Автор

Hey, I have a question. I want to use openOCD with different stm nucleo board, i used your cfg file but if i type "open ocd -f openocdf4.cfg" the openocd not worked. This is the last line from debug.
Debug: 448 217 target.c:1991 freeing all working areas
Debug: 449 217 hla_interface.c:117 hl_interface_quit(): hl_interface_quit
Debug: 450 218 stlink_usb.c:1319 stlink_usb_exit_mode(): MODE: 0x02
How about this?

qbek
Автор

Hi I am facing problems running sudo openocd it says error while shared libraries: libgpio.so.2. I tried to install libgpiod2 but still failed (even with apt —fix-broken install). My current OS is bullseye


Really appreciate any help

edg
Автор

Hi,

I followed all the steps but when i do the debug connection the raspberry says:

Info : accepting 'gdb' connection on tcp/3333
Info : device id = 0x10016418
Info : flash size = 128kbytes
undefined debug reason 7 - target needs reset
invalid command name "ReadAPEx"
Info : dropped 'gdb' connection

And I can't connect :(

Help please

MiguelMesaChica
Автор

Hi, Thanks, openocd just returns immediately after executing it without any specific error (even in debug mode), I am using STM32H7

yousofebneddin
Автор

Hi. I was using this process to debug using OpenOCD successfully until Cube IDE version 1.6. but when i upgraded this to a newer version, it is giving me error of Could not verify ST device.

I know many people face this issue. But i am unable to solve it. Can you please help me if u know the answer?

junaidaslam
Автор

thank you✔👍great project . thanks for sharing

najjarl
Автор

hi thank you so much this awesome share, so ı have a question ı am trying remote the device via ethernet without st-link, ı read to many document but ı couldnt, do you have any information about it, is that possible remote my stm32 via ethetnet with using openocd ?

erolkaratas