[已解决] openocd jlink error

guoyun
Posts: 2
Joined: Wed Jun 10, 2020 3:25 am

[已解决] openocd jlink error

Postby guoyun » Wed Jun 10, 2020 6:00 am

下面的错误是什么意思

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.

Scott.Bonomi
Posts: 73
Joined: Mon Mar 09, 2020 7:36 pm

Re: openocd jlink error

Postby Scott.Bonomi » Mon Jun 29, 2020 10:00 pm

you need a line like

adapter_khz 1000

in your board description file

superheasy
Posts: 1
Joined: Sat Jul 03, 2021 2:38 pm

Re: openocd jlink error

Postby superheasy » Sat Jul 03, 2021 2:41 pm

不懂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

ESP_Gargamel
Posts: 786
Joined: Wed Nov 14, 2018 8:45 am

Re: openocd jlink error

Postby ESP_Gargamel » Mon Jul 05, 2021 3:07 am

感谢总结。

Who is online

Users browsing this forum: No registered users and 29 guests