win openocd.exe ver. v0.12.0-esp32-2025-12-15 does not accept "-c program_esp_bins" as a legal command, period
Posted: Wed Mar 11, 2026 8:57 pm
Running on a Windows 11 Home laptop,
Espressif-IDE is an Integrated Development Environment(IDE) based on Eclipse CDT for developing IoT Applications using ESP-IDF framework.
Version: 4.1.0
Build id: 20260205-1151
Copyright (c) 2025 Espressif Systems. All rights reserved
Using IDF 5.5.3 with openocd-esp32,
v0.12.0-esp32-20251215 (2025-12-15-18:70)
There is only one copy of openocd.exe installed on the computer and it's in the toolpath.
1. execute openocd.exe -c program_esp_bins {some valid filepath to the hello_world binaries}
C:\Users\keith\workspace\hello_world\build> openocd "-c program_esp_bins C:/Users/keith/workspace/hello_world/build"
Open On-Chip Debugger v0.12.0-esp32-20251215 (2025-12-15-18:17)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
invalid command name "program_esp_bins"
2. Now let's try with openocd "-c program C:/Users/keith/workspace/hello_world/build"
C:\Users\keith\workspace\hello_world\build> openocd "-c program C:/Users/keith/workspace/hello_world/build"
Open On-Chip Debugger v0.12.0-esp32-20251215 (2025-12-15-18:17)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Error: Debug Adapter has to be specified, see "adapter driver" command
** OpenOCD init failed **
shutdown command invoked
embedded:startup.tcl
Error:
Traceback (most recent call last):
File "embedded:startup.tcl", line 1928, in program
program_error {** OpenOCD init failed **} 1
File "embedded:startup.tcl", line 1893, in program_error
shutdown error
Now I know this was no adpter driver supplied or flash args, etc., BUT THE POINT IS THAT "-c program" IS A VALID COMMAND AND "-c program_esp_bins" IS NOT!!!!! PERIOD, MIKE DROP, etc.!!!
I think it's fine to add your own Espressif commands to openocd, just try to make sure they continue to get submitted to github or that your proprietary version of openocd is built correctly.
3. See attachment with my configuration from Espressif Eclipse IDE:
Espressif-IDE is an Integrated Development Environment(IDE) based on Eclipse CDT for developing IoT Applications using ESP-IDF framework.
Version: 4.1.0
Build id: 20260205-1151
Copyright (c) 2025 Espressif Systems. All rights reserved
Using IDF 5.5.3 with openocd-esp32,
v0.12.0-esp32-20251215 (2025-12-15-18:70)
There is only one copy of openocd.exe installed on the computer and it's in the toolpath.
1. execute openocd.exe -c program_esp_bins {some valid filepath to the hello_world binaries}
C:\Users\keith\workspace\hello_world\build> openocd "-c program_esp_bins C:/Users/keith/workspace/hello_world/build"
Open On-Chip Debugger v0.12.0-esp32-20251215 (2025-12-15-18:17)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
invalid command name "program_esp_bins"
2. Now let's try with openocd "-c program C:/Users/keith/workspace/hello_world/build"
C:\Users\keith\workspace\hello_world\build> openocd "-c program C:/Users/keith/workspace/hello_world/build"
Open On-Chip Debugger v0.12.0-esp32-20251215 (2025-12-15-18:17)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
Error: Debug Adapter has to be specified, see "adapter driver" command
** OpenOCD init failed **
shutdown command invoked
embedded:startup.tcl
Traceback (most recent call last):
File "embedded:startup.tcl", line 1928, in program
program_error {** OpenOCD init failed **} 1
File "embedded:startup.tcl", line 1893, in program_error
shutdown error
Now I know this was no adpter driver supplied or flash args, etc., BUT THE POINT IS THAT "-c program" IS A VALID COMMAND AND "-c program_esp_bins" IS NOT!!!!! PERIOD, MIKE DROP, etc.!!!
I think it's fine to add your own Espressif commands to openocd, just try to make sure they continue to get submitted to github or that your proprietary version of openocd is built correctly.
3. See attachment with my configuration from Espressif Eclipse IDE: