ESP-Prog debugger cannot start

XiotSamuel
Posts: 53
Joined: Sun Aug 29, 2021 1:50 pm

ESP-Prog debugger cannot start

Postby XiotSamuel » Wed Oct 13, 2021 3:47 am

Hi, I am using MACOS, VScode and ESP-Prog with ESP32.

I found that the On-Chip Debugger always have the following error message

Code: Select all

Open On-Chip Debugger  v0.10.0-esp32-20210401 (2021-04-01-15:46)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
debug_level: 2

❌ embedded:startup.tcl:26: Error: Can't find interface/ftdi/esp32_devkitjv1.cfg
in procedure 'script' 
at file "embedded:startup.tcl", line 26
[Stopped] : OpenOCD Server

Code: Select all

OpenOCD Exit with non-zero error code 1
Is this error because of the openOCD cannot communicate with the serial port?
Attachments
截屏2021-10-13 上午11.45.24.png
截屏2021-10-13 上午11.45.24.png (25.34 KiB) Viewed 20187 times

XiotSamuel
Posts: 53
Joined: Sun Aug 29, 2021 1:50 pm

Re: ESP-Prog debugger cannot start

Postby XiotSamuel » Wed Oct 13, 2021 7:21 pm

I found that there have some Debug adapter error message. Why those message appear?

Code: Select all

DEBUG_ADAPTER_STARTED
2021-10-14 03:18:49,480 - Debug Adapter (main) - CRITICAL - Debug adapter -> Extension: DEBUG_ADAPTER_STARTED
Traceback (most recent call last):
  File "/Users/samuelmok/.vscode/extensions/espressif.esp-idf-extension-1.2.0/esp_debug_adapter/debug_adapter_main.py", line 30, in <module>
    cli(sys.argv[1:])
  File "/Users/samuelmok/.espressif/python_env/idf4.3_py3.8_env/lib/python3.8/site-packages/click/core.py", line 1126, in __call__
    return self.main(*args, **kwargs)
  File "/Users/samuelmok/.espressif/python_env/idf4.3_py3.8_env/lib/python3.8/site-packages/click/core.py", line 1051, in main
    rv = self.invoke(ctx)
  File "/Users/samuelmok/.espressif/python_env/idf4.3_py3.8_env/lib/python3.8/site-packages/click/core.py", line 1393, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/samuelmok/.espressif/python_env/idf4.3_py3.8_env/lib/python3.8/site-packages/click/core.py", line 752, in invoke
    return __callback(*args, **kwargs)
  File "/Users/samuelmok/.espressif/python_env/idf4.3_py3.8_env/lib/python3.8/site-packages/click/decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/Users/samuelmok/.vscode/extensions/espressif.esp-idf-extension-1.2.0/esp_debug_adapter/debug_adapter/cli.py", line 148, in cli
    dbg_a.adapter_run()
  File "/Users/samuelmok/.vscode/extensions/espressif.esp-idf-extension-1.2.0/esp_debug_adapter/debug_adapter/debug_adapter.py", line 166, in adapter_run
    self.adapter_connect()
  File "/Users/samuelmok/.vscode/extensions/espressif.esp-idf-extension-1.2.0/esp_debug_adapter/debug_adapter/debug_adapter.py", line 283, in adapter_connect
    self._wait_for_connection()
  File "/Users/samuelmok/.vscode/extensions/espressif.esp-idf-extension-1.2.0/esp_debug_adapter/debug_adapter/debug_adapter.py", line 105, in _wait_for_connection
    self._start_socket_listening()
  File "/Users/samuelmok/.vscode/extensions/espressif.esp-idf-extension-1.2.0/esp_debug_adapter/debug_adapter/debug_adapter.py", line 133, in _start_socket_listening
    raise e
  File "/Users/samuelmok/.vscode/extensions/espressif.esp-idf-extension-1.2.0/esp_debug_adapter/debug_adapter/debug_adapter.py", line 120, in _start_socket_listening
    ip = socket.gethostbyname(hostname)
socket.gaierror: [Errno 8] nodename nor servname provided, or not known
[Stopped] : ESP-IDF Debug Adapter

ProtonBoarder
Posts: 3
Joined: Fri Nov 05, 2021 10:31 am

Re: ESP-Prog debugger cannot start

Postby ProtonBoarder » Sun Nov 07, 2021 12:31 am

Where are you executing openocd, in a separate terminal?
What happens if you just run

Code: Select all

openocd -f board/esp32-wrover-kit-3.3v.cfg
?

raja sumant
Posts: 10
Joined: Tue Nov 09, 2021 5:43 am

Re: ESP-Prog debugger cannot start

Postby raja sumant » Tue Nov 16, 2021 10:51 am

I too get the same error.

mstottmeister
Posts: 1
Joined: Tue Nov 23, 2021 10:34 am

Re: ESP-Prog debugger cannot start

Postby mstottmeister » Tue Nov 23, 2021 10:37 am

I'm also using MacOS and get the same error.

Code: Select all

DEBUG_ADAPTER_STARTED
2021-11-23 11:22:56,800 - Debug Adapter (main) - CRITICAL - Debug adapter -> Extension: DEBUG_ADAPTER_STARTED
Traceback (most recent call last):
  File "/Users/a3hb1zz/.vscode/extensions/espressif.esp-idf-extension-1.2.0/esp_debug_adapter/debug_adapter_main.py", line 30, in <module>
    cli(sys.argv[1:])
  File "/Users/a3hb1zz/.espressif/python_env/idf4.3_py3.8_env/lib/python3.8/site-packages/click/core.py", line 1128, in __call__
    return self.main(*args, **kwargs)
  File "/Users/a3hb1zz/.espressif/python_env/idf4.3_py3.8_env/lib/python3.8/site-packages/click/core.py", line 1053, in main
    rv = self.invoke(ctx)
  File "/Users/a3hb1zz/.espressif/python_env/idf4.3_py3.8_env/lib/python3.8/site-packages/click/core.py", line 1395, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/Users/a3hb1zz/.espressif/python_env/idf4.3_py3.8_env/lib/python3.8/site-packages/click/core.py", line 754, in invoke
    return __callback(*args, **kwargs)
  File "/Users/a3hb1zz/.espressif/python_env/idf4.3_py3.8_env/lib/python3.8/site-packages/click/decorators.py", line 26, in new_func
    return f(get_current_context(), *args, **kwargs)
  File "/Users/a3hb1zz/.vscode/extensions/espressif.esp-idf-extension-1.2.0/esp_debug_adapter/debug_adapter/cli.py", line 148, in cli
    dbg_a.adapter_run()
  File "/Users/a3hb1zz/.vscode/extensions/espressif.esp-idf-extension-1.2.0/esp_debug_adapter/debug_adapter/debug_adapter.py", line 166, in adapter_run
    self.adapter_connect()
  File "/Users/a3hb1zz/.vscode/extensions/espressif.esp-idf-extension-1.2.0/esp_debug_adapter/debug_adapter/debug_adapter.py", line 283, in adapter_connect
    self._wait_for_connection()
  File "/Users/a3hb1zz/.vscode/extensions/espressif.esp-idf-extension-1.2.0/esp_debug_adapter/debug_adapter/debug_adapter.py", line 105, in _wait_for_connection
    self._start_socket_listening()
  File "/Users/a3hb1zz/.vscode/extensions/espressif.esp-idf-extension-1.2.0/esp_debug_adapter/debug_adapter/debug_adapter.py", line 133, in _start_socket_listening
    raise e
  File "/Users/a3hb1zz/.vscode/extensions/espressif.esp-idf-extension-1.2.0/esp_debug_adapter/debug_adapter/debug_adapter.py", line 120, in _start_socket_listening
    ip = socket.gethostbyname(hostname)
socket.gaierror: [Errno 8] nodename nor servname provided, or not known
[Stopped] : ESP-IDF Debug Adapter

denys.almazov
Posts: 3
Joined: Tue Nov 30, 2021 11:13 am

Re: ESP-Prog debugger cannot start

Postby denys.almazov » Tue Dec 28, 2021 10:07 am

XiotSamuel wrote:
Wed Oct 13, 2021 3:47 am
Hi, I am using MACOS, VScode and ESP-Prog with ESP32.

I found that the On-Chip Debugger always have the following error message

Code: Select all

Open On-Chip Debugger  v0.10.0-esp32-20210401 (2021-04-01-15:46)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
debug_level: 2

❌ embedded:startup.tcl:26: Error: Can't find interface/ftdi/esp32_devkitjv1.cfg
in procedure 'script' 
at file "embedded:startup.tcl", line 26
[Stopped] : OpenOCD Server

Code: Select all

OpenOCD Exit with non-zero error code 1
Is this error because of the openOCD cannot communicate with the serial port?

There is a mistake in the interface name, that's why it's cannot be found. It should be esp32_devkitj_v1.cfg instead of esp32_devkitv1.cfg. The reason, why it's wrong is a mistake in the esp-config.json file, which is located in .espressif\tools\openocd-esp32\v0.10.0-esp32-20210401\openocd-esp32\share\openocd\scripts. So you can edit this file and change "interface/ftdi/esp32_devkitjv1.cfg" to "interface/ftdi/esp32_devkitj_v1.cfg", or you can just update openOCD to the newer version, where this typo has been fixed

Who is online

Users browsing this forum: No registered users and 10 guests