Eclipse OpenOCD Fails to Program Device

BrianP
Posts: 53
Joined: Mon Apr 13, 2020 1:48 pm

Eclipse OpenOCD Fails to Program Device

Postby BrianP » 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.

ESP_kondalkolipaka
Posts: 188
Joined: Wed Jul 17, 2019 5:26 pm

Re: Eclipse OpenOCD Fails to Program Device

Postby ESP_kondalkolipaka » Thu May 27, 2021 2:50 pm

Hi Brian,

Have you tried with the ESP-IDF OpenOCD debugging with Eclipse Plugin? If not, please check this https://github.com/espressif/idf-eclips ... bugging.md

Thanks

ESP_kondalkolipaka
Posts: 188
Joined: Wed Jul 17, 2019 5:26 pm

Re: Eclipse OpenOCD Fails to Program Device

Postby ESP_kondalkolipaka » Fri May 28, 2021 3:06 am

As it was reported here, adding it for reference
https://github.com/espressif/openocd-esp32/issues/158

Who is online

Users browsing this forum: No registered users and 49 guests