question about espressif 1-10-2 and OpenOCD and JTAG Ubuntu 24.04

Gaston1980
Posts: 41
Joined: Sun Oct 06, 2024 10:26 am

question about espressif 1-10-2 and OpenOCD and JTAG Ubuntu 24.04

Postby Gaston1980 » Fri Jul 11, 2025 2:57 pm

Hi to all, 'till yesterday I was able to program the esp32 board with the ESP-PROG. I update in visual studio the espressif version to 1.10.2 and now nothing is working. I try re-installing everything from scratch but still is not working.
Checking the OpenOCD version with

Code: Select all

openocd --version
I got this output:

Code: Select all

Open On-Chip Debugger v0.12.0-esp32-20240318 (2024-03-18-18:25)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
but when I try to flash the esp32 board (see image below). I already uninstall Studio Code, remove any extension. I re install esp-idf fro all esp32 running this command on esp folder:

Code: Select all

./install.sh all
and then export.sh.
The when I close Visual Studio OpenOCD is not found on system and must re-install everything again. I try to start OpenOCD and got this output:

Code: Select all

[/Flash]
[OpenOCD]
Open On-Chip Debugger v0.12.0-esp32-20240318 (2024-03-18-18:25)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
User : 3 1 options.c:52 configuration_output_handler(): debug_level: 4User : 4 1 options.c:52 configuration_output_handler(): 
Debug: 5 1 options.c:346 parse_cmdline_args(): ARGV[0] = "openocd"
Debug: 6 1 options.c:346 parse_cmdline_args(): ARGV[1] = "-d4"
Debug: 7 1 options.c:346 parse_cmdline_args(): ARGV[2] = "-f"
Debug: 8 1 options.c:346 parse_cmdline_args(): ARGV[3] = "target/esp32.cfg"

❌ Debug: 9 1 options.c:233 add_default_dirs(): bindir=/builds/idf/openocd-esp32/_build/../openocd-esp32/bin
Debug: 10 1 options.c:234 add_default_dirs(): pkgdatadir=/builds/idf/openocd-esp32/_build/../openocd-esp32/share/openocd
Debug: 11 1 options.c:235 add_default_dirs(): exepath=/home/gaston/.espressif/tools/openocd-esp32/v0.12.0-esp32-20240318/openocd-esp32/bin
Debug: 12 1 options.c:236 add_default_dirs(): bin2data=../share/openocd
Debug: 13 1 configuration.c:33 add_script_search_dir(): adding /home/gaston/.espressif/tools/openocd-esp32/v0.12.0-esp32-20240318/openocd-esp32/share/openocd/scripts
Debug: 14 1 configuration.c:33 add_script_search_dir(): adding /home/gaston/.config/openocd
Debug: 15 1 configuration.c:33 add_script_search_dir(): adding /home/gaston/.openocd
Debug: 16 1 configuration.c:33 add_script_search_dir(): adding /home/gaston/.espressif/tools/openocd-esp32/v0.12.0-esp32-20240318/openocd-esp32/bin/../share/openocd/site
Debug: 17 1 configuration.c:33 add_script_search_dir(): adding /home/gaston/.espressif/tools/openocd-esp32/v0.12.0-esp32-20240318/openocd-esp32/bin/../share/openocd/scripts
Debug: 18 1 command.c:152 script_debug(): command - ocd_find target/esp32.cfg
Debug: 19 1 configuration.c:88 find_file(): found /home/gaston/.espressif/tools/openocd-esp32/v0.12.0-esp32-20240318/openocd-esp32/share/openocd/scripts/target/esp32.cfg
Debug: 20 1 command.c:152 script_debug(): command - ocd_find target/esp_common.cfg
Debug: 21 1 configuration.c:88 find_file(): found /home/gaston/.espressif/tools/openocd-esp32/v0.12.0-esp32-20240318/openocd-esp32/share/openocd/scripts/target/esp_common.cfg
Debug: 22 1 command.c:152 script_debug(): command - ocd_find bitsbytes.tcl
Debug: 23 2 configuration.c:88 find_file(): found /home/gaston/.espressif/tools/openocd-esp32/v0.12.0-esp32-20240318/openocd-esp32/share/openocd/scripts/bitsbytes.tcl
Debug: 24 2 command.c:152 script_debug(): command - ocd_find memory.tcl
Debug: 25 2 configuration.c:88 find_file(): found /home/gaston/.espressif/tools/openocd-esp32/v0.12.0-esp32-20240318/openocd-esp32/share/openocd/scripts/memory.tcl
Debug: 26 2 command.c:152 script_debug(): command - ocd_find mmr_helpers.tcl
Debug: 27 2 configuration.c:88 find_file(): found /home/gaston/.espressif/tools/openocd-esp32/v0.12.0-esp32-20240318/openocd-esp32/share/openocd/scripts/mmr_helpers.tcl
Debug: 28 2 command.c:152 script_debug(): command - ocd_find target/esp_version.cfg
Debug: 29 2 configuration.c:88 find_file(): found /home/gaston/.espressif/tools/openocd-esp32/v0.12.0-esp32-20240318/openocd-esp32/share/openocd/scripts/target/esp_version.cfg
Debug: 30 2 command.c:152 script_debug(): command - version
Debug: 31 2 command.c:152 script_debug(): command - add_help_text program_esp write an image to flash, address is only required for binary images. verify, reset, exit, compress, restore_clock and encrypt are optional
Debug: 32 2 command.c:152 script_debug(): command - add_usage_text program_esp <filename> [address] [verify] [reset] [exit] [compress] [no_clock_boost] [restore_clock] [encrypt]
Debug: 33 2 command.c:152 script_debug(): command - add_help_text program_esp_bins write all the images at address specified in flasher_args.json generated while building idf project
Debug: 34 2 command.c:152 script_debug(): command - add_usage_text program_esp_bins <build_dir> flasher_args.json [verify] [reset] [exit] [compress] [no_clock_boost] [restore_clock]
Debug: 35 2 command.c:152 script_debug(): command - add_help_text esp_get_mac Print MAC address of the chip. Use a `format` argument to return formatted MAC value
Debug: 36 2 command.c:152 script_debug(): command - add_usage_text esp_get_mac [format]
Debug: 37 2 command.c:152 script_debug(): command - transport select
Debug: 38 2 command.c:528 exec_command(): Command 'transport select' failed with error code -4
User : 39 2 command.c:600 command_run_line(): /home/gaston/.espressif/tools/openocd-esp32/v0.12.0-esp32-20240318/openocd-esp32/share/openocd/scripts/target/esp_common.cfg:9: Error: Debug adapter does not support any transports? Check config file order.
at file "/home/gaston/.espressif/tools/openocd-esp32/v0.12.0-esp32-20240318/openocd-esp32/share/openocd/scripts/target/esp_common.cfg", line 9

For assistance with OpenOCD errors, please refer to our Troubleshooting FAQ: https://github.com/espressif/openocd-esp32/wiki/Troubleshooting-FAQ
OpenOCD Exit with non-zero error code 1
[Stopped] : OpenOCD Server
I'm able to program the board using USB but unable to use the ESP-PROG, but untill yesterday I was able to use it.

Question:
1)Why OpenOCD is not found on system if I install and re-install esp-idf according to documentation?
2)Why OpenOCD is not running on Visual Code?
3) Why OpenOCD is vanish from the system when I close Visual Studio? If I run --openocd --version I got output that is not installed on system.

Gastón
Attachments
openocd_error.png
openocd_error.png (5.18 KiB) Viewed 66 times

Who is online

Users browsing this forum: Bytespider, Google [Bot] and 6 guests