ESP-Prog and HUZZAH32 Issues

msilverman
Posts: 3
Joined: Mon Nov 28, 2022 2:03 am

ESP-Prog and HUZZAH32 Issues

Postby msilverman » Mon Nov 28, 2022 2:10 am

I am using ESP-Prog on a Windows machine.

I am using an ESP-Prog hooked into a HUZZA32 Feather (https://www.adafruit.com/product/3405) on a breadboard.

SIGNAL: 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

I’ve modified the JTAG driver to use WinUSB.
Screenshot 2022-11-27 210804.png
Screenshot 2022-11-27 210804.png (24.08 KiB) Viewed 758 times
I am using the release of OpenOCD ESP32 v0.11.0 as found on github https://github.com/espressif/openocd-es ... 2-20221026.

Here are the steps I use to flash:

Code: Select all

cd C:\openocd-esp32-win32-0.11.0-esp32-20220706\openocd-esp32\bin
openocd.exe -f ..\share\openocd\scripts\board\esp32-wrover-kit-3.3v.cfg -c "program_esp file.bin 0x10000 verify exit"
This is the response I get.

Code: Select all

C:\openocd-esp32-win32-0.11.0-esp32-20220706\openocd-esp32\bin>openocd.exe -f ..\share\openocd\scripts\board\esp32-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 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
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
I’ve tried this many many times in various ways. One time it almost worked but I’ve never had a successful JTAG scan or file upload.

What is wrong here?

msilverman
Posts: 3
Joined: Mon Nov 28, 2022 2:03 am

Re: ESP-Prog and HUZZAH32 Issues

Postby msilverman » Mon Jan 09, 2023 1:20 pm

The issue here was due to one of the JTAG pins being utilized by the shipped firmware. Once I was able to time it such that I could connect and do a full erase, it has been working correctly.

Who is online

Users browsing this forum: No registered users and 64 guests