Sysprogs forums › Forums › VisualGDB › Failed to connect to the debug stub.
- This topic has 3 replies, 2 voices, and was last updated 7 years, 3 months ago by support.
-
AuthorPosts
-
September 3, 2017 at 15:39 #12270DschaduParticipant
Hi,
I’m using VisualGDB with OpenOCD and STM32 microcontrollers. This morning everything was fine, but now its no more possible to connect to the debugger (StLink V2).
If I click on the “Test OpenOCD Settings” button, I get this Message: “OpenOCD exited with code 1. Please check your settings.” But i did not change anything. The only thing I changed was a new driver for the CP2102 USB to UART Bridge Controller. I removed the driver, but I got still the same issue.
I also tried to disable the windows firewall as mentioned in another thread, but no success. Also a reinstall of VisualGDB und the STLink driver was not successful.These are the logs:
VisualGDB build 5.2.15.1452
Startup initialization took 114 msec
Searching for active configuration for Motion_CanTest\Motion_CanTest.vcxproj…
Trying fast lookup…
Found! Configuration name = Debug
Searching for active configuration for Motion_CanTest\Motion_CanTest.vcxproj…
Trying fast lookup…
Found! Configuration name = Debug
Launching gdbserver: C:\Users\darki\AppData\Local\VisualGDB\EmbeddedDebugPackages\com.sysprogs.arm.openocd\bin\openocd.exe -f interface/stlink-v2.cfg -f target/stm32f1x.cfg -c “gdb_port 52216” -c “telnet_port 52215” -c init -c “reset init” -c “echo VisualGDB_OpenOCD_Ready”VisualGDB is licensed to Martin Klein
D:\Programme\SysGCC\arm-eabi\bin\arm-eabi-gdb.exe –interpreter mi D:\Elektronik\Mikrocontroller\Motion_CanTest\Motion_CanTest/Debug/Motion_CanTest.elf
-gdb-version
=thread-group-added,id=”i1″
GNU gdb (GDB) 7.12
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type “show copying”
and “show warranty” for details.
This GDB was configured as “–host=i686-pc-mingw32 –target=arm-eabi”.
Type “show configuration” for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type “help”.
Type “apropos word” to search for commands related to “word”…
Reading symbols from D:\Elektronik\Mikrocontroller\Motion_CanTest\Motion_CanTest/Debug/Motion_CanTest.elf…
done.
GNU gdb (GDB) 7.12
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type “show copying”
and “show warranty” for details.
This GDB was configured as “–host=i686-pc-mingw32 –target=arm-eabi”.
Type “show configuration” for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type “help”.
Type “apropos word” to search for commands related to “word”.
OK
-list-features
^done,features=[“frozen-varobjs”,”pending-breakpoints”,”thread-info”,”data-read-memory-bytes”,”breakpoint-notifications”,”ada-task-info”,”language-option”,”info-gdb-mi-command”,”undefined-command-error-code”,”exec-run-start-option”]
-gdb-set disassembly-flavor intel
No symbol “disassembly” in current context.
-gdb-set print demangle off
OK
-break-insert -f main
^done,bkpt={number=”1″,type=”breakpoint”,disp=”keep”,enabled=”y”,addr=”0x08001398″,func=”main()”,file=”main.cpp”,fullname=”D:\\Elektronik\\Mikrocontroller\\Motion_CanTest\\Motion_CanTest\\main.cpp”,line=”16″,thread-groups=[“i1″],times=”0″,original-location=”main”}
set remotetimeout 60
&”set remotetimeout 60\n”
=cmd-param-changed,param=”remotetimeout”,value=”60″
OK
target remote :52216
&”target remote :52216\n”
Remote debugging using :52216
&”Remote communication error. Target disconnected.: No error.\n”
Remote communication error. Target disconnected.: No error.
qt: Failed to connect to the debug stub
at v.o(String a, rg b)
at v.p2(IEnumerable`1 a, Boolean b)
at v.i1_2(DebugCustomizationSettings a)
at vj.b2()
at VisualGDB.GDBDebugEngine.d1(rw b, a a)I hope you can help me!
September 3, 2017 at 18:36 #12274supportKeymasterHi,
Please check the OpenOCD window for errors. The GDB log only shows that OpenOCD refused the connection, while the real reason for the error is normally shown in the OpenOCD log.
September 8, 2017 at 17:10 #12325DschaduParticipantSorry for the late reply.
It was the O&O Defrag Software. Its service blocked the comunication. After I disabled the Service it worked again.
Thanks anyway 🙂
September 8, 2017 at 20:15 #12327supportKeymasterHi,
No worries, good to know you got it to work. If you encounter any further problems, feel free to start another topic.
-
AuthorPosts
- You must be logged in to reply to this topic.