HUZZA32 and JTAG issues

For Adafruit customers who seek help with microcontrollers

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
msilverman
 
Posts: 1
Joined: Mon Nov 28, 2022 3:17 pm

HUZZA32 and JTAG issues

Post by msilverman »

I am using an ESP-Prog on Windows machine. The ESP-Prog is 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 ESP-Prog driver to use WinUSB.

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
Is there an issue with using JTAG on HUZZA32?

In the pinout for the HUZZA32 it says that pin 12 is connected to a pulldown, and 14 is connected to an LED. Are these preventing the JTAG from working correctly? I would think the circuit was designed to allow this.

User avatar
adafruit_support_mike
 
Posts: 67446
Joined: Thu Feb 11, 2010 2:51 pm

Re: HUZZA32 and JTAG issues

Post by adafruit_support_mike »

The "libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED" error looks like a driver error. See if installing the WinUSB driver mentioned on this StackOverflow page:

https://stackoverflow.com/questions/720 ... windows-10

does any good.

Locked
Please be positive and constructive with your questions and comments.

Return to “Microcontrollers”