我在 Windows 机器上使用 ESP-Prog。
我在面包板上使用连接到 HUZZA32 Feather 的 ESP-Prog。
信号:ESP-PROG -> HUZZA32
MTCK:4 - MTCK -> 13 - MTCK
MTDI:8 - TDI -> 12 - MTDI
MTDO:6 - TDO -> 15 - MTDO
MTMS:2 - TMS -> 14 - MTMS
3V: 1 - VJTAG -> 3.3V
GND:3 - GND -> GND
我修改了 JTAG 驱动程序以使用 WinUSB。
我正在使用在 github
https://github.com/espressif/openocd-es ... 2-20221026上找到的 OpenOCD ESP32 v0.11.0 版本。
以下是我用来刷机的步骤:
代码:
全选
cd C:openocd-esp32-win32-0.11.0-esp32-20220706openocd-esp32in
openocd.exe -f ..shareopenocdscriptsoardesp32-wrover-kit-3.3v.cfg -c "program_esp file.bin 0x10000 verify exit"
这是我得到的回应。
代码:
全选
C:openocd-esp32-win32-0.11.0-esp32-20220706openocd-esp32in>openocd.exe -f ..shareopenocdscriptsoardesp32-wrover-kit-3.3v.cfg -c "program_esp file.bin 0x10000 verify exit"
Open On-Chip Debugger v0.11.0-esp32-20220706 (2022-07-06-15:48)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Error: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED
Info : ftdi: if you experience problems at higher adapter clocks, try the command "ftdi tdo_sample_edge falling"
Info : clock speed 20000 kHz
Error: JTAG scan chain interroga
tion 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
Error: Unexpected OCD_ID = ffffffff
Warn : target esp32.cpu0 examination failed
Error: Unexpected OCD_ID = ffffffff
Warn : target esp32.cpu1 examination failed
Info : starting gdb server for esp32.cpu0 on 3333
Info : Listening on port 3333 for gdb connections
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
Error: Unexpected OCD_ID = ffffffff
Error: Unexpected OCD_ID = ffffffff
Info : [esp32.cpu0] requesting target halt and executing a soft reset
Error: Target not examined yet
Info : [esp32.cpu1] requesting target halt and executing a soft reset
Error: Target not examined yet
Error: Unexpected OCD_ID = ffffffff
** Unable to reset target **
shutdown command invoked
我已经以各种方式尝试过很多次了。有一次它几乎成功了,但我从未成功进行过 JTAG 扫描或文件上传。
这里有什么问题?