I'm trying to debug a project which uses an ESP32-WROOM using an ESP-Prog board. I've connected all of the JTAG, UART, EN and IO0 connections to the board and I can successfully flash a device as long as I hold IO2 low. However, I cannot seem to get debugging working.
Hardware: ESP32-WROOM, all JTAG pins are unused except for JTAG, ESP32 has been programmed to remove default AT image. Powered by 3.3V. All JTAG connections seem fine i.e. ESP-Prog TDI <-> ESP32 TDI, ESP-Prog TMS <-> ESP32 TMS etc. I'm selecting ttyUSB0 (the lower of the 2 comports from the ESP-Prog).
My environment: I'm using Eclipse which is running on a Ubuntu virtual machine. USB ports seem to work fine.
Debug configuration:
Debugger --> OpenOCD Setup
GDB port: 3333
Telnet port: 444
Tcl port: 6666
Config options: -s ${openocd_path}/share/openocd/scripts -f interface/ftdi/esp32_devkitj_v1.cfg -f board/esp-wroom-32.cfg
Debugger --> GDB Setup
Commands: set mem inaccessible-by-default off
Initialization Commands:
mon program_esp /home/rpd/esp/esp-idf-v4.2/examples/get-started/hello_world/build/hello-world.bin 0x10000 verify
mon reset halt
flushregs
set remote hardware-watchpoint-limit 2
When attempting to debug, this is the log I get:
Code: Select all
Open On-Chip Debugger v0.10.0-esp32-20200709 (2020-07-09-08:54)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
adapter speed: 10000 kHz
WARNING: boards/esp-wroom-32.cfg is deprecated, and may be removed in a future release.
Info : Configured 2 cores
Started by GNU MCU Eclipse
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : ftdi: if you experience problems at higher adapter clocks, try the command "ftdi_tdo_sample_edge falling"
Info : clock speed 10000 kHz
Error: JTAG scan chain interrogation failed: all zeroes
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway...
Error: esp32.cpu0: IR capture error; saw 0x00 not 0x01
Warn : Bypassing JTAG setup events due to errors
Info : Listening on port 3333 for gdb connections
Info : accepting 'gdb' connection on tcp/3333
Error: No symbols for FreeRTOS
Error: Target not examined yet
Error executing event gdb-attach on target esp32:
Error: Target not halted
Error: auto_probe failed
Error: Connect failed. Consider setting up a gdb-attach event for the target to prepare target for GDB connect, or use 'gdb_memory_map disable'.
Error: attempted 'gdb' connection rejected
shutdown command invoked
Thank you in advance