Loading...
 

SW4STM32 and SW4Linux fully supports the STM32MP1 asymmetric multicore Cortex/A7+M4 MPUs

   With System Workbench for Linux, Embedded Linux on the STM32MP1 family of MPUs from ST was never as simple to build and maintain, even for newcomers in the Linux world. And, if you install System Workbench for Linux in System Workbench for STM32 you can seamlessly develop and debug asymmetric applications running partly on Linux, partly on the Cortex-M4.
You can get more information from the ac6-tools website and download (registration required) various documents highlighting:

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