GDB Issue, "Connection refused"
Posted: Sat Aug 26, 2017 2:03 am
I am using the DevKitC with my Segger J-Link EDU and am having trouble establishing JTAG connection in GDB. OpenOCD works with this configuration.
Target: DevKitC
Debugger: Segger J-Link EDU
Method: JTAG (wiring example)
Setup: USB connected, JTAG wiring connected (see above)
Reference Used: JTAG-Debugging - Using the Debugger from the Command Line
Issue
When I try to run xtensa-esp32-elf-gdb, I get the following response -
Why is the connection refused? Am I missing a step?
Target: DevKitC
Debugger: Segger J-Link EDU
Method: JTAG (wiring example)
Setup: USB connected, JTAG wiring connected (see above)
Reference Used: JTAG-Debugging - Using the Debugger from the Command Line
Issue
When I try to run xtensa-esp32-elf-gdb, I get the following response -
Code: Select all
erguser@ergdev-esp32:~/esp/hello_world$ xtensa-esp32-elf-gdb -x gdbinit build/hello-world.elf
GNU gdb (crosstool-NG crosstool-ng-1.22.0-61-gab8375a) 7.10
Copyright (C) 2015 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=x86_64-build_pc-linux-gnu --target=xtensa-esp32-elf".
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 build/hello-world.elf...done.
gdbinit:1: Error in sourced command file:
:3333: Connection refused.
(gdb)