OpenOCD errors

JoveToo
Posts: 4
Joined: Thu Dec 14, 2017 6:35 pm

OpenOCD errors

Postby JoveToo » Thu Dec 14, 2017 6:55 pm

Hello,

I am trying to get OpenOCD to work on my Sparkfun ESP32 Thing using a FTDI C232HM-DDHSL-0 usb jtag interface using this diagram.

OpenOCD sees the two esp cores but also shows lots of errors (bottom). I've had to make custom cfgs for the esp32 thing and the jtag, this may be the problem. I've tried with different speeds down to 1kHZ with the same results.

Can anyone shed any light on what is happening?

Code: Select all

src/openocd -s tcl -f interface/ftdi/cs232hm-ddhsl-0.cfg -f board/sparkfun-esp32-thing.cfg
with cs232hm-ddhsl-0.cfg:

Code: Select all

# Driver for the FT2232H JTAG chip on the Espressif DevkitJ board
#
interface ftdi
ftdi_vid_pid 0x0403 0x6014
ftdi_tdo_sample_edge falling
# interface 1 is the uart
# ftdi_channel 0
# just TCK TDI TDO TMS, no reset
ftdi_layout_init 0x0008 0x000b
reset_config none
and board/sparkfun-esp32-thing.cfg:

Code: Select all

transport select jtag
adapter_khz 20000
source [find target/esp32.cfg]

Code: Select all

Open On-Chip Debugger 0.10.0-dev-g1b006e11 (2017-12-08-21:05)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
ftdi samples TDO on falling edge of TCK
none separate
adapter speed: 20000 kHz
esp32 interrupt mask on
force hard breakpoints
Started by GNU MCU Eclipse
Info : clock speed 20000 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 : TAP auto0.tap does not have IDCODE
Info : TAP auto1.tap does not have IDCODE
Info : TAP auto2.tap does not have IDCODE
Info : TAP auto3.tap does not have IDCODE
Info : TAP auto4.tap does not have IDCODE
Info : TAP auto5.tap does not have IDCODE
Info : TAP auto6.tap does not have IDCODE
Info : TAP auto7.tap does not have IDCODE
Info : TAP auto8.tap does not have IDCODE
Info : TAP auto9.tap does not have IDCODE
Info : TAP auto10.tap does not have IDCODE
Info : TAP auto11.tap does not have IDCODE
Info : TAP auto12.tap does not have IDCODE
Info : TAP auto13.tap does not have IDCODE
Info : TAP auto14.tap does not have IDCODE
Info : TAP auto15.tap does not have IDCODE
Info : TAP auto16.tap does not have IDCODE
Info : TAP auto17.tap does not have IDCODE
Info : TAP auto18.tap does not have IDCODE
Warn : Unexpected idcode after end of chain: 83 0x00000000
Warn : Unexpected idcode after end of chain: 115 0x00000000
Warn : Unexpected idcode after end of chain: 147 0x00000000
Warn : Unexpected idcode after end of chain: 179 0x00000000
Warn : Unexpected idcode after end of chain: 211 0x00000000
Warn : Unexpected idcode after end of chain: 243 0x00000000
Warn : Unexpected idcode after end of chain: 275 0x00000000
Warn : Unexpected idcode after end of chain: 307 0x00000000
Warn : Unexpected idcode after end of chain: 339 0x00000000
Warn : Unexpected idcode after end of chain: 371 0x00000000
Warn : Unexpected idcode after end of chain: 403 0x00000000
Warn : Unexpected idcode after end of chain: 435 0x00000000
Warn : Unexpected idcode after end of chain: 467 0x00000000
Warn : Unexpected idcode after end of chain: 499 0x00000000
Warn : Unexpected idcode after end of chain: 531 0x00000000
Warn : Unexpected idcode after end of chain: 563 0x00000000
Warn : Unexpected idcode after end of chain: 595 0x00000000
Warn : Unexpected idcode after end of chain: 627 0x00000000
Error: double-check your JTAG setup (interface, speed, ...)
Error: Trying to use configured scan chain anyway...
Warn : AUTO auto0.tap - use "jtag newtap auto0 tap -irlen 2 -expected-id 0x00000000"
Error: auto0.tap: IR capture error; saw 0x0000 not 0x0001
Warn : Bypassing JTAG setup events due to errors
Info : accepting 'gdb' connection on tcp/3333
Info : Halt timed out, wake up GDB.
Error: timed out while waiting for target halted / 1 - 2


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

JoveToo
Posts: 4
Joined: Thu Dec 14, 2017 6:35 pm

Re: OpenOCD errors

Postby JoveToo » Sun Dec 17, 2017 6:30 pm

For the record, this is what it looks like when the jtag TDI wire is not connected...

ESP_Sprite
Posts: 9757
Joined: Thu Nov 26, 2015 4:08 am

Re: OpenOCD errors

Postby ESP_Sprite » Mon Dec 18, 2017 2:27 am

Ah, thanks for posting that! I saw your post, but had absolutely no idea what could have caused such a log. Didn't think the Tensilica cores would be detected with a loose pin.

JoveToo
Posts: 4
Joined: Thu Dec 14, 2017 6:35 pm

Re: OpenOCD errors

Postby JoveToo » Wed Dec 27, 2017 12:54 pm

I made the same assumption, which is why it took me a while to figure it out. Since nothing made sense, I went back and checked everything yet again... then I noticed the tiny air gap on the TDI pin.

another_esp_user
Posts: 13
Joined: Tue Oct 05, 2021 2:53 am

Re: OpenOCD errors

Postby another_esp_user » Fri Aug 26, 2022 2:09 am

Thank you JoveToo !! You saved my day!!!

Who is online

Users browsing this forum: No registered users and 388 guests