ESP32-WROOM-32U JTAG wiring - Can you check my circuit?

jimhelios
Posts: 33
Joined: Sun Nov 10, 2019 2:35 pm

ESP32-WROOM-32U JTAG wiring - Can you check my circuit?

Postby jimhelios » Sun Jun 14, 2020 8:46 pm

I have a board with an ESP32-WROOM-32U and a JTAG circuit, and I have been unable to get OpenOCD to work with the board using a Segger J-link JTAG debugger. When I try, I get this:
Jims-MacBook-Pro-486:~ jim$ openocd -f interface/jlink.cfg -f board/esp32-wrover.cfg
Open On-Chip Debugger v0.10.0-esp32-20200420 (2020-04-20-16:15)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
adapter speed: 1000 kHz

WARNING: boards/esp32-wrover.cfg is deprecated, and may be removed in a future release.
If your board is ESP32-WROVER-KIT, use board/esp32-wrover-kit-1.8v.cfg instead.
Info : Configured 2 cores
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : J-Link V11 compiled Apr 23 2020 16:49:23
Info : Hardware version: 11.00
Info : VTarget = 0.000 V
Info : clock speed 1000 kHz
Error: JTAG scan chain interrogation failed: all ones
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway...
Error: esp32.cpu0: IR capture error; saw 0x1f not 0x01
Warn : Bypassing JTAG setup events due to errors
Info : Listening on port 3333 for gdb connections
The circuit was designed based on these guidelines:

https://docs.espressif.com/projects/esp ... -jtag.html

Here is the schematic. The connector is a Segger 10 pin needle connector:

Does VTREF need to be connected to V3.3? Any comments would be appreciated thank you.
Attachments
JTAG-Circuit.png
JTAG-Circuit.png (41.99 KiB) Viewed 395 times

jimhelios
Posts: 33
Joined: Sun Nov 10, 2019 2:35 pm

Re: ESP32-WROOM-32U JTAG wiring - Can you check my circuit?

Postby jimhelios » Sun Jun 14, 2020 11:03 pm

I think I found it. This board uses the Segger 10 pin needle connector and pin 1 (VTREF) was not connected. I added a hookup wire between V3.3 and that pin and got the results I pasted below.
Jims-MacBook-Pro-486:~ jim$ openocd -f interface/jlink.cfg -f board/esp32-wrover.cfg
Open On-Chip Debugger v0.10.0-esp32-20200420 (2020-04-20-16:15)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
adapter speed: 1000 kHz

WARNING: boards/esp32-wrover.cfg is deprecated, and may be removed in a future release.
If your board is ESP32-WROVER-KIT, use board/esp32-wrover-kit-1.8v.cfg instead.
Info : Configured 2 cores
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : J-Link V11 compiled Apr 23 2020 16:49:23
Info : Hardware version: 11.00
Info : VTarget = 3.290 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: Debug controller 0 was reset.
Info : esp32: Core 0 was reset.
Info : esp32: Debug controller 1 was reset.
Info : esp32: Core 1 was reset.
Info : Listening on port 3333 for gdb connections

Who is online

Users browsing this forum: Baidu [Spider] and 8 guests