Eclipse Hardware Debug problem

RA5040
Posts: 26
Joined: Mon Jul 30, 2018 1:20 pm

Eclipse Hardware Debug problem

Postby RA5040 » Sun Aug 26, 2018 10:56 am

I'm running gdb on an ESP32 Wrover Kit (which includes hardware debugging). I have followed the Espressif instructions to the letter. I have summarized these here: http://www.irelandupclose.com/customer/ ... LIPSE.html

As far as I can see there is no way to tell Eclipse where openocd is installed, or how to run it (certainly the Espressif instructions https://esp-idf.readthedocs.io/en/lates ... index.html do not show how to do it.

What I have done is to build & flash from Eclipse, then launch openocd from the command line, then debug from Eclipse. That works fine, but presumably it isn't how it is intended to be done. But if it is (which certainly would not be great!), the Espressif documentation would need to be updated to say so.

ESP_igrr
Posts: 2071
Joined: Tue Dec 01, 2015 8:37 am

Re: Eclipse Hardware Debug problem

Postby ESP_igrr » Sun Aug 26, 2018 12:47 pm

Hi RA5040,
Running OpenOCD is listed as one of the steps in Configuring ESP32 target, https://esp-idf.readthedocs.io/en/lates ... p32-target, which preceeds launching GDB section (from command line or Eclipse).

In the Eclipse section, step 12 says: If you previously completed Configuring ESP32 Target steps described above, so the target is running and ready to talk to debugger, go right to debugging by pressing “Debug” button. Otherwise press “Apply” to save changes, go back to Configuring ESP32 Target and return here to start debugging.

We'll update the document to add an explicit note that OpenOCD needs to be started before launching GDB in Eclipse.

RA5040
Posts: 26
Joined: Mon Jul 30, 2018 1:20 pm

Re: Eclipse Hardware Debug problem

Postby RA5040 » Sun Aug 26, 2018 1:35 pm

Great, thank you. I went through the instructions very carefully and I didn't get it that OpenOCD had to be run manually, so clarifying that in the instructions would be great!

BTW, the instructions are really excellent ... they are very clear and very well written.

I've updated my summary for Windows here (of no use to you, but I may post it somewhere for others): http://www.irelandupclose.com/customer/ ... LIPSE.html. I usually write up notes like this because it can save a lot of time in six months or a year if I have to redo the whole thing.

Who is online

Users browsing this forum: Basalt, Bing [Bot] and 327 guests