Loading...
 

Zephyr project on STM32

   Zephyr Workbench, a VSCode extension to manage Zephyr on STM32.
It enables users to easily create, develop, and debug Zephyr applications.
Main features:
  • Install host dependencies.
  • Import toolchain and SDK.
  • Create, configure, build and manage apps.
  • Debug STM32.
You can directly download it from the VSCode marketplace
For more details, visit the Zephyr Workbench

System Workbench for STM32


OpenOCD "Dropped 'gdb' connection"

Hello All,
I am attempting to establish connections with my STM32H753I-EVAL2 evaluation board through OpenOCD on Eclipse.
For my OpenOCD config options I am using the board script designated for my board;

-f board/stm32h7x3i_eval.cfg

Every time I run this I get an error in final launch sequence:
Error message from debugger back end:
Load failed
Failed to execute MI command:
-f board/stm32h7x3i_eval.cfg
Error message from debugger back end:
Undefined MI command: f
Undefined MI command: f
Failed to execute MI command:
load C:\Users\user\eclipse-workspace\blinky\Debug\blinky.elf
Error message from debugger back end:
Load failed
Load failed

With a console output as follows:

GNU MCU Eclipse OpenOCD, 64-bitOpen On-Chip Debugger 0.10.0+dev-00593-g23ad80df4 (2019-04-22-20:25)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : The selected transport took over low-level target control. The results might differ compared to plain JTAG/SWD
adapter speed: 1800 kHz
adapter_nsrst_delay: 100
srst_only separate srst_nogate srst_open_drain connect_deassert_srst
srst_only separate srst_nogate srst_open_drain connect_deassert_srst
Started by GNU MCU Eclipse
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : clock speed 1800 kHz
Info : STLINK V3J3M2 (API v3) VID:PID 0483:374E
Info : Target voltage: 3.272148
Info : stm32h7x.cpu: hardware has 8 breakpoints, 4 watchpoints
Info : Listening on port 3333 for gdb connections
Info : accepting ‘gdb’ connection on tcp/3333
Info : Device: STM32H7xx 2M
Info : flash size probed value 2048
Info : STM32H flash has dual banks. Bank (0) size is 1024kb, base address is 0x8000000
Info : Device: STM32H7xx 2M
Info : flash size probed value 2048
Info : STM32H flash has dual banks. Bank (1) size is 1024kb, base address is 0x8100000
target halted due to debug-request, current mode: Thread
xPSR: 0x01000000 pc: 0x080226dc msp: 0x24004000
Info : Unable to match requested speed 4000 kHz, using 3300 kHz
Info : Unable to match requested speed 4000 kHz, using 3300 kHz
adapter speed: 3300 kHz
semihosting is enabled
Info : dropped ‘gdb’ connection


I can at least tell that the debugger is talking to the board because whenever I run the debugger it interrupts the program currently on the evaluation board. I haven’t been able to move past this point however. Can someone please tell me what it is I am doing wrong?

One thought is that my board is using a STLINK-V3E connection, which I have read is a relatively new interface type. Could this be part of the issue?

Hi,

I think you put the “-f board/stm32h7x3i_eval.cfg” option on the wrong place because the error tells that the option was put for GDB command instead of OpenOCD command (Failed to execute MI command: -f board/stm32h7x3i_eval.cfg ) which make the debugger failing to start.
I don’t think using STLINK-V3E is the problem. Your console output says it is found and identified (Info : STLINK V3J3M2 (API v3) VID:PID 0483:374E )

This forum is dedicated to System Workbench for STM32, I don’t know much about how GNU MCU Eclipse works. You should try to contact them on their forum to find your answer.

Regards,
Kevin.
ac6


 

Newest Forum Posts

  1. Монтаж камина с грилем в Москве - установка и барбекю by KpddomErorb, 2025-05-10 18:28
  2. SPI on Nucleo_STMH533RE by royjamil, 2025-05-04 20:13
  3. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-25 07:37
  4. SPI on Nucleo_STMH533RE by royjamil, 2025-03-23 11:31
  5. SPI on Nucleo_STMH533RE by higginsa1, 2025-03-23 09:33
  6. Configuring DMA for ADC in SW? by sam.hodgson, 2025-03-04 12:58
  7. Build a project in "release" mode by info@creosrl.it, 2025-02-20 18:12
  8. Build a project in "release" mode by info@creosrl.it, 2025-02-20 17:05
  9. Build a project in "release" mode by tang, 2025-02-20 10:36
  10. Build a project in "release" mode by info@creosrl.it, 2025-02-19 17:35

Last-Modified Blogs