Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start openocd faild (OCD-867) #303

Closed
lingxd opened this issue Dec 6, 2023 · 6 comments
Closed

Start openocd faild (OCD-867) #303

lingxd opened this issue Dec 6, 2023 · 6 comments

Comments

@lingxd
Copy link

lingxd commented Dec 6, 2023

Development Kit

ESP32-C6-DevKitC-1

Module or chip used

esp32-c6

Debug Adapter

ESP-PROG

OpenOCD version

v0.12.0-esp32-20230921

Operating System

Linux

Using an IDE ?

vscode

OpenOCD command line

/home/ubun/.espressif/tools/openocd-esp32/v0.12.0-esp32-20230921/openocd-esp32/bin/openocd I click start openocd on the vscode status bar

JTAG Clock Speed

default

ESP-IDF version

release 5.1.2

Problem Description

image
image
image

Debug Logs

/home/ubun/.espressif/tools/openocd-esp32/v0.12.0-esp32-20230921/openocd-esp32/bin/openocd

[OpenOCD]
Open On-Chip Debugger v0.12.0-esp32-20230921 (2023-09-21-13:41)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
debug_level: 2

[OpenOCD]
Info : auto-selecting first available session transport "jtag". To override use 'transport select <transport>'.

[OpenOCD]
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections

[OpenOCD]
❌ Error: unable to open ftdi device with description '*', serial '*' at bus location '*'

[OpenOCD]
❌ /home/ubun/.espressif/tools/openocd-esp32/v0.12.0-esp32-20230921/openocd-esp32/share/openocd/scripts/target/esp_common.cfg:9: Error: 
at file "/home/ubun/.espressif/tools/openocd-esp32/v0.12.0-esp32-20230921/openocd-esp32/share/openocd/scripts/target/esp_common.cfg", line 9

[OpenOCD]
[Stopped] : OpenOCD Server

Expected behavior

Successfully started openocd

Screenshots

No response

@github-actions github-actions bot changed the title Start openocd faild Start openocd faild (OCD-867) Dec 6, 2023
@lingxd lingxd closed this as completed Dec 6, 2023
@deeyonn
Copy link

deeyonn commented Feb 15, 2024

I am having this issue as well on windows.

[OpenOCD]
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
❌ Error: esp_usb_jtag: could not find or open device!
❌ ~\.espressif\tools\openocd-esp32\v0.12.0-esp32-20230921/openocd-esp32/share/openocd/scripts/target/esp_common.cfg:9: Error: at file "~\.espressif\tools\openocd-esp32\v0.12.0-esp32-20230921/openocd-esp32/share/openocd/scripts/target/esp_common.cfg", line 9
[Stopped] : OpenOCD Server

[Flash]
Can't perform JTag flash, because OpenOCD server is not running!

settings.json

{
  "C_Cpp.intelliSenseEngine": "default",
  "idf.adapterTargetName": "esp32c6",
  "idf.openOcdConfigs": [
    "board/esp32c6-bridge.cfg"
  ],
  "idf.flashType": "JTAG",
  "idf.portWin": "COM6"
}

@erhankur
Copy link
Collaborator

Probably because your openOcdConfigs is wrong. Try board/esp32c6-builtin.cfg instead of board/esp32c6-bridge.cfg

Bridge config files prepared for the ESP-USB-Bridge hardware. https://github.com/espressif/esp-usb-bridge

@deeyonn
Copy link

deeyonn commented Feb 15, 2024

tried both

@erhankur
Copy link
Collaborator

According to the logs you have a driver issue.

You can check here for the driver installation. https://github.com/espressif/idf-installer

@emb4fun
Copy link

emb4fun commented Feb 20, 2024

What kind of board you are using? Here I had the same problem with a ESP32-C6 board where only one USB port was available. That mean an USB hub was available on this board.

I now used a board where the UART USB and JTAG USB port are separated, and here I do not have this kind of problems.

Could this be your problem too?

@deeyonn
Copy link

deeyonn commented Feb 20, 2024

My issue was the manufacturer did not solder the jumper pins for me, so I got a replacement.
IMG_20240216_141323

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants