Skip to content

Unable to Debug ESP32, getting 'invalid command name "program_esp_bins" ' #1425

@pknessness

Description

@pknessness

Describe the bug
I am unable to debug with OpenOCD JTAG on a ESP32 Devkit-1. I am aware that the Devkit-1 does not come with JTAG, and have an external FT232H JTAG adapter, however with and without the adapter the error remains the same.

Debug: 25 1 command.c:81 script_debug(): command - echo DEPRECATED! use 'gdb port', not 'gdb_port'
User : 26 1 command.c:600 handle_echo(): DEPRECATED! use 'gdb port', not 'gdb_port'
Debug: 27 1 command.c:81 script_debug(): command - gdb port 3333
Debug: 28 1 command.c:81 script_debug(): command - echo DEPRECATED! use 'telnet port', not 'telnet_port'
User : 29 1 command.c:600 handle_echo(): DEPRECATED! use 'telnet port', not 'telnet_port'
Debug: 30 1 command.c:81 script_debug(): command - telnet port 4444
Debug: 31 1 command.c:81 script_debug(): command - echo DEPRECATED! use 'tcl port' not 'tcl_port'
User : 32 1 command.c:600 handle_echo(): DEPRECATED! use 'tcl port' not 'tcl_port'
Debug: 33 1 command.c:81 script_debug(): command - tcl port 6666
User : 34 1 command.c:530 command_run_line(): invalid command name "program_esp_bins"

To Reproduce
I built from source the espressif-ide and plugged in my esp32.
I changed my mode to debug and clicked debug and got the error.

Expected behavior
I assumed it would just go into debug mode. I tried running this command on an external terminal window:
~/.espressif/tools/openocd-esp32/v0.12.0-esp32-20251215/openocd-esp32/bin/openocd -f /home/~/tools/openocd-esp32/v0.12.0-esp32-20251215/openocd-esp32/share/openocd/scripts/interface/ftdi/esp_ftdi.cfg -c "transport select jtag" -f ~/.espressif/tools/openocd-esp32/v0.12.0-esp32-20251215/openocd-esp32/share/openocd/scripts/target/esp32.cfg -c "program_esp_bins ~/esp-workspace/ESPmote/build flasher_args.json verify reset" -d3
And I got a large rolling chunk of terminal that looked functional. I am not adept at gdb/cli debugging however, so I am attempting to be able to do so in eclipse. Is there a way I can see what command is being run in espressif-ide and change it?

Bug Report
bug_report_20260402_044506.zip

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions