Page 1 of 1

[已解决] openocd jlink error

Posted: Wed Jun 10, 2020 6:00 am
by guoyun
下面的错误是什么意思

E:\Program Files (x86)\.espressif\tools\openocd-esp32\v0.10.0-esp32-20190313\ope
nocd-esp32\share\openocd\scripts>openocd -f \interface\jlink.cfg
Open On-Chip Debugger v0.10.0-esp32-20190313 (2019-03-13-09:57)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : J-Link V9 compiled Dec 13 2019 11:14:50
Info : Hardware version: 9.50
Info : VTarget = 3.316 V
Error: JTAG I/O operation failed: 0x1.
Error: jaylink_jtag_io() failed: device: unspecified error.
Error: An adapter speed is not selected in the init script. Insert a call to ada
pter_khz or jtag_rclk to proceed.

Re: openocd jlink error

Posted: Mon Jun 29, 2020 10:00 pm
by Scott.Bonomi
you need a line like

adapter_khz 1000

in your board description file

Re: openocd jlink error

Posted: Sat Jul 03, 2021 2:41 pm
by superheasy
不懂openocd太坑了。。。。
加上这句就好了

echo "WARNING: boards/esp-wroom-32.cfg is deprecated, and may be removed in a future release."
set ESP32_FLASH_VOLTAGE 3.3
source [find target/esp32.cfg]
adapter_khz 1000

esp-wroom-32.cfg

jlink调试的选项
-s ${openocd_path}/share/openocd/scripts -f interface/jlink.cfg -f board/esp-wroom-32.cfg

Re: openocd jlink error

Posted: Mon Jul 05, 2021 3:07 am
by ESP_Gargamel
感谢总结。