openocd debug alway fail ,show "unrecognized item "timeout" in "qSupported" response"
Posted: Tue Dec 20, 2016 9:30 am
after connected segger JTAG and check the jlink works.
I try to debug for ESP32 module,
1. connected Jlink
sudo openocd -f interface/jlink.cfg -f /usr/local/share/openocd/scripts/target/esp32.cfg
Open On-Chip Debugger 0.10.0-dev-g90071eb (2016-12-19-10:59)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Warn : Interface already configured, ignoring
adapter speed: 1000 kHz
force hard breakpoints
Info : No device selected, using first device.
Info : J-Link V9 compiled Sep 18 2015 19:53:12
Info : Hardware version: 9.20
Info : VTarget = 3.285 V
Info : clock speed 1000 kHz
Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : esp32.cpu0: Debug controller was reset (pwrstat=0xFC, after clear 0xFC).
Info : esp32.cpu0: Core was reset (pwrstat=0xFC, after clear 0xFC).
Info : esp32.cpu1: Debug controller was reset (pwrstat=0xFE, after clear 0xFE).
Info : esp32.cpu1: Core was reset (pwrstat=0xFE, after clear 0xFE).
2. debug
~/esp/esp32/esp-idf/examples/10_openssl_server$ xtensa-esp32-elf-gdb -ex 'target remote localhost:3333' ./build/openssl_server.elf
GNU gdb (crosstool-NG crosstool-ng-1.22.0-59-g8d95cad) 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=i686-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/openssl_server.elf...done.
Remote debugging using localhost:3333
Ignoring packet error, continuing...
warning: unrecognized item "timeout" in "qSupported" response
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Bogus trace status reply from target: timeout
(gdb)
I try to debug for ESP32 module,
1. connected Jlink
sudo openocd -f interface/jlink.cfg -f /usr/local/share/openocd/scripts/target/esp32.cfg
Open On-Chip Debugger 0.10.0-dev-g90071eb (2016-12-19-10:59)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Warn : Interface already configured, ignoring
adapter speed: 1000 kHz
force hard breakpoints
Info : No device selected, using first device.
Info : J-Link V9 compiled Sep 18 2015 19:53:12
Info : Hardware version: 9.20
Info : VTarget = 3.285 V
Info : clock speed 1000 kHz
Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : esp32.cpu0: Debug controller was reset (pwrstat=0xFC, after clear 0xFC).
Info : esp32.cpu0: Core was reset (pwrstat=0xFC, after clear 0xFC).
Info : esp32.cpu1: Debug controller was reset (pwrstat=0xFE, after clear 0xFE).
Info : esp32.cpu1: Core was reset (pwrstat=0xFE, after clear 0xFE).
2. debug
~/esp/esp32/esp-idf/examples/10_openssl_server$ xtensa-esp32-elf-gdb -ex 'target remote localhost:3333' ./build/openssl_server.elf
GNU gdb (crosstool-NG crosstool-ng-1.22.0-59-g8d95cad) 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=i686-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/openssl_server.elf...done.
Remote debugging using localhost:3333
Ignoring packet error, continuing...
warning: unrecognized item "timeout" in "qSupported" response
Ignoring packet error, continuing...
Ignoring packet error, continuing...
Bogus trace status reply from target: timeout
(gdb)