> openocd --version
Open On-Chip Debugger v0.10.0-esp32-20210902-2-gfe9ca35f (2021-10-09-17:00)
> src/openocd -s /home/user/repos/openocd-esp32/tcl -f interface/cmsis-dap.cfg -f target/esp32c3.cfg -c 'adapter_khz 10000'
Open On-Chip Debugger v0.10.0-esp32-20210902-2-gfe9ca35f (2021-10-09-17:00)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
adapter speed: 10000 kHz
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : CMSIS-DAP: SWD Supported
Info : CMSIS-DAP: JTAG Supported
Info : CMSIS-DAP: FW Version = 0255
Info : CMSIS-DAP: Serial# = 08000001005400514300000b4e504332a5a5a5a597969908
Info : CMSIS-DAP: Interface Initialised (JTAG)
Info : SWCLK/TCK = 1 SWDIO/TMS = 1 TDI = 1 TDO = 1 nTRST = 0 nRESET = 1
Info : CMSIS-DAP: Interface ready
Info : High speed (adapter_khz 10000) may be limited by adapter firmware.
Info : clock speed 10000 kHz
Info : cmsis-dap JTAG TLR_RESET
Info : cmsis-dap JTAG TLR_RESET
Info : JTAG tap: esp32c3.cpu tap/device found: 0x00005c25 (mfg: 0x612 (Espressif Systems), part: 0x0005, ver: 0x0)
Info : datacount=2 progbufsize=16
Info : Examined RISC-V core; found 1 harts
Info : hart 0: XLEN=32, misa=0x40101104
Info : Listening on port 3333 for gdb connections
.gdbinit
target remote localhost:3333
gdb
> riscv32-esp-elf-gdb ./build/file_server.elf
GNU gdb (crosstool-NG esp-2021r1) 9.2.90.20200913-git
Copyright (C) 2020 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=riscv32-esp-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/file_server.elf...
Ignoring packet error, continuing...
warning: unrecognized item "timeout" in "qSupported" response
Ignoring packet error, continuing...
openocd telnet works properly. This appears to be a gdb misconfiguration.
@wuxx, could you please share which versions of gdb and openocd you've tested with? Thanks!
openocd, compiled as follows:
.gdbinit
gdb
openocd telnet works properly. This appears to be a gdb misconfiguration.
@wuxx, could you please share which versions of gdb and openocd you've tested with? Thanks!
related: https://esp32.com/viewtopic.php?t=11181 -- solved by redownloading workspace tools