Skip to content

libusb_get_string_descriptor_ascii() failed with -9 error for JTAG Debugging ESP32S3 (OCD-731) #278

@miczag80

Description

@miczag80

Development Kit

ESP32-S3-DevKitC-1

Module or chip used

ESP32-S3-WROOM1

Debug Adapter

USB Serial/JTAG

OpenOCD version

v0.11.0-esp32-20221026

Operating System

Windows

Using an IDE ?

Visual Studios Code

OpenOCD command line

openocd -f board/esp32s3-builtin.cfg

JTAG Clock Speed

default

ESP-IDF version

5.0.1

Problem Description

  1. I started by opening up visual studio code, and installing the Espressif IDF v1.6.0 extension, with my ESP32S3 Device plugged in to my machine

  2. I opened windows PowerShell and pasted the following line to install required drivers (downloaded successfully):

Invoke-WebRequest 'https://dl.espressif.com/dl/idf-env/idf-env.exe' -OutFile .\idf-env.exe; .\idf-env.exe driver install --espressif

  1. I opened the command palette (View > Command Palette) and typed in the command 'ESP-IDF: Show Examples Projects,' then selected the current framework, which opened the example projects

  2. I clicked 'blink' under the get-started examples and then created a new project using example blink

  3. From here, without editing any of the code, in the lower left of the screen in the bar along the bottom I select the correct COM port, the device, and the debug type, which for me in this case was COM9, esp32s3, and JTAG.

  4. I built the code, and after a successful build, I clicked the 'ESP-IDF Flash Device' button.

  5. A prompt that indicates OpenOCD is not running pops up, I click 'open'

  6. In the output, I get the error show in the debug logs below.

Debug Logs

[OpenOCD]
Open On-Chip Debugger v0.11.0-esp32-20221026 (2022-10-26-14:48)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
[OpenOCD]
debug_level: 2

[OpenOCD]
Info : only one t[OpenOCD]
ransport option; autoselect 'jtag'
Info : esp_usb_jtag: VID set to 0x303a and PID to 0x1001
Info : esp_usb_jtag: capabilities descriptor set to 0x2000
[OpenOCD]
Warn : Transport "jtag" w[OpenOCD]
as already selected
[OpenOCD]
Info : Listening on port 6666 for tcl conne[OpenOCD]
ctions
Info : Listening on port 4444 for telnet connections
[OpenOCD]
❌ Error: libusb_get_string_de[OpenOCD]
scriptor_ascii() failed with -9

[OpenOCD]
[Stopped] : OpenOCD Server

Expected behavior

Successful Debugging

Screenshots

image

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions