Uploading and debugging ESP32 Custom Board with JLINK OpenOCD

I am having trouble to upload/debug my ESP-WROVER with jlink adapter.

  1. Installed the WinUSB and Jlink is detected ok.
  2. Platform.ini has configured with “upload_protocol = jlink” and “debug_tool = jlink”
  3. Tried to Reduce the speed to 10kHz gives the same result
  4. I am using ESP-IDF

Please help, i am kind of out of options here. :frowning:

Please see below the Log

Open On-Chip Debugger v0.10.0-esp32-20190708 (2019-07-08-11:04)
Licensed under GNU GPL v2
For bug reports, read
OpenOCD: Bug Reporting
debug_level: 1
adapter speed: 10000 kHz
esp32 interrupt mask on
Warn : JTAG tap: esp32.cpu0 UNEXPECTED: 0xffffffff (mfg: 0x7ff (), part: 0xffff, ver: 0xf)
Error: JTAG tap: esp32.cpu0 expected 1 of 1: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Warn : JTAG tap: esp32.cpu1 UNEXPECTED: 0xffffffff (mfg: 0x7ff (), part: 0xffff, ver: 0xf)
Error: JTAG tap: esp32.cpu1 expected 1 of 1: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Warn : Unexpected idcode after end of chain: 416 0x300ff3ff
Warn : Unexpected idcode after end of chain: 448 0xffffffc0
Error: double-check your JTAG setup (interface, speed, …)
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
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
*** [upload] Error 253

Looks like the data on the JTDO line is always 1. Have you followed the guides posted in this forum, especially regarding Debugger not starting for multiple platforms - #4 by maxgerhardt?

Yep, read all I could lay my hands on.

Now will try to use a C232HM Cable, then move back to Jlink.