Debugging STM32 with ST Link Remotely

  Рет қаралды 10,438

Web learning

Web learning

Күн бұрын

Пікірлер: 24
@damny0utoobe
@damny0utoobe 4 жыл бұрын
Bindto 0.0.0.0 means to accept connections from any IP. Good tutorial
@Weblearning1
@Weblearning1 4 жыл бұрын
Correct.
@germangomez1673
@germangomez1673 4 ай бұрын
Thanks so much for this cool tutorial, any update for 2024 year and Raspberry Pi 4 hardware?
@RamboZa
@RamboZa 4 жыл бұрын
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! :)
@qbek9939
@qbek9939 3 жыл бұрын
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 target_free_all_working_areas_restore(): 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?
@najjarl
@najjarl 4 жыл бұрын
thank you✔👍great project . thanks for sharing
@Weblearning1
@Weblearning1 4 жыл бұрын
More is coming on this. Subscribe to get the notification when I load them.
@edg2282
@edg2282 2 жыл бұрын
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
@junaidaslam1
@junaidaslam1 11 ай бұрын
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?
@cmgrgn1912
@cmgrgn1912 2 ай бұрын
Same situation here. Have you found a solution?
@junaidaslam1
@junaidaslam1 2 ай бұрын
@@cmgrgn1912 Yes, I am able to do the same using GDB Hardware Debugging Configruation from Cube IDE.
@yousofebneddin7430
@yousofebneddin7430 3 жыл бұрын
Hi, Thanks, openocd just returns immediately after executing it without any specific error (even in debug mode), I am using STM32H7
@Weblearning1
@Weblearning1 3 жыл бұрын
I saw the se issue. I did some investigating and looks like ST changed something. I'm trying to see if I can solve this maybe with the help of ST.
@yousofebneddin7430
@yousofebneddin7430 3 жыл бұрын
@@Weblearning1 In the most recent version of openocd, there is a config file for nucleo-h7432i board that seems it works at the beginning but it always refuses the remote connection.
@Weblearning1
@Weblearning1 3 жыл бұрын
Yes, I'm getting the same thing. It connects and all and the it refuses the connection. Have a look at the cfg file in your pc project and you will see that it is configured different the what we configured on the Pi and there is no way to reconfigure it ( that I know of ).
@Weblearning1
@Weblearning1 3 жыл бұрын
Ok, I have found the issue. ST changed between V1.4 to V1.5. In Debug configuration, Debugger, remove the " Enable live expression" and try again. It should work. I need to do a new video on this if someone needs to use the live expressions. Its a bit more complicated now.
@yousofebneddin7430
@yousofebneddin7430 3 жыл бұрын
@@Weblearning1 Oh yeah. Thanks a lot. It works. This is amazing, Now I can program it remotely. And also FYI. I am using jetson nano. Not RPi. So this works for me: openocd -c 'bindto 0.0.0.0' -f st_nucleo_h743zi.cfg -d
@MiguelMesaChica
@MiguelMesaChica 2 жыл бұрын
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
@junaidaslam1
@junaidaslam1 11 ай бұрын
I am having the same issue. Were you able to solve it?
@erolkaratas5343
@erolkaratas5343 3 жыл бұрын
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 ?
@Weblearning1
@Weblearning1 3 жыл бұрын
Yes, this is possible. You can use the Pi as a debugger. I made a video on this: kzbin.info/www/bejne/q3qpgHd8hsiShpo
@erolkaratas5343
@erolkaratas5343 3 жыл бұрын
@@Weblearning1 Thank you so much ı will try and let you know
Raspberry Pi Zero W as Wi-Fi Debugger
7:56
Web learning
Рет қаралды 4,4 М.
Debugging STM32 in VSCODE with stlink and jlink | VIDEO 45
17:33
Matej Blagšič
Рет қаралды 46 М.
STM32 (stm32f103c8) Serial wire debug -- STM32CubeIDE
13:54
Oussama Ousmoi (OusLab)
Рет қаралды 27 М.
HAL #12: ADC with IT
11:31
Web learning
Рет қаралды 17 М.
3 Levels of WiFi Hacking
22:12
NetworkChuck
Рет қаралды 2,3 МЛН
rust runs on EVERYTHING (no operating system, just Rust)
14:29
Low Level
Рет қаралды 216 М.
STM32F103C with ST-Link and STM32duino, simplified!
11:56
Curious Scientist
Рет қаралды 65 М.
Debugging Embedded Systems With GDB?
13:51
Jacob Sorber
Рет қаралды 48 М.
Setting Up the Perfect Developer Environment on Linux for 2025
11:58
Debugging STM32 in STM32CubeIDE- Breakpoint and Live Expression
6:08