Eclipse OpenOCD Fails to Program Device
Posted: Tue May 25, 2021 3:57 pm
I posted this in the hardware section as a reply to my comment regarding getting OpenOCD to work with ESP32-C3 but I guess it is buried due to the subject header.
I cannot get Openocd to program the device before debugging.
The command I use is
openocd -f interface/esp_usb_jtag.cfg -f board/esp32c3-builtin.cfg -c "program_esp blink.bin 0x10000 verify exit"
the response I get is
<path to scripts>\scripts/target/esp_common.cfg:101: Error: invalid command name "esp"
in procedure 'program_esp'
at file "C:\Users\bjpic\.espressif\tools\openocd-esp32\v0.10.0-esp32-20210401\openocd-esp32\share\openocd\scripts/target/esp_common.cfg", line 101
Therefore, I have to select the run configuration, compile and program, switch over to the debug configuration, and debug. I don't know anything about OCD so I have no idea what this means. Looking at the script, however, it doesn't seem to mind that I am using an ESP32-C3. As near as I can tell, I am using the correct command per the documentation.
I am using the latest beta IDF (otherwise ESP32-C3 isn't properly supported)
Thanks for the help.
I cannot get Openocd to program the device before debugging.
The command I use is
openocd -f interface/esp_usb_jtag.cfg -f board/esp32c3-builtin.cfg -c "program_esp blink.bin 0x10000 verify exit"
the response I get is
<path to scripts>\scripts/target/esp_common.cfg:101: Error: invalid command name "esp"
in procedure 'program_esp'
at file "C:\Users\bjpic\.espressif\tools\openocd-esp32\v0.10.0-esp32-20210401\openocd-esp32\share\openocd\scripts/target/esp_common.cfg", line 101
Therefore, I have to select the run configuration, compile and program, switch over to the debug configuration, and debug. I don't know anything about OCD so I have no idea what this means. Looking at the script, however, it doesn't seem to mind that I am using an ESP32-C3. As near as I can tell, I am using the correct command per the documentation.
I am using the latest beta IDF (otherwise ESP32-C3 isn't properly supported)
Thanks for the help.