Eclipse JTAG Integration to Improve?

Halfnium
Posts: 11
Joined: Thu Jul 02, 2020 10:38 pm

Eclipse JTAG Integration to Improve?

Postby Halfnium » Tue Aug 18, 2020 3:02 am

I have succeeded in edit / compile / build / flash / run with ESP32 WROOM in the guise of SparkFun's ThingPlus board, with both command line and Eclipse.

I have also succeeded in OpenOCD and GDB debug in two cooperating command-line windows. I'm using a Chinese-sourced FT2232HL board with quite thin, outdated documentation, but it does work reliably.

Lastly, I have succeeded in running OpenOCD in command line, in cooperation with GDB launched and controlled via Eclipse. This seems to be as far as the IDF plugin and Espressif's documentation go. See: https://docs.espressif.com/projects/esp ... er-eclipse, step 12.

I have not succeeded in my goal: conducting development entirely via Eclipse, without opening an Ubuntu (in my case) command-line window.

Along the way, I have tried adapting the Gnu MCU Eclipse Plugin to the ESP32 as described here: https://policeman0077.wordpress.com/202 ... for-esp32/. I don't trust it. While it does launch OpenOCD and eventually breaks execution at "app_main," it generates considerable perplexing junk along the way, including a register dump. This can't be best practice.

So two things to say. First, be of good cheer if you are banging your head on JTAG, because you CAN succeed. Second, would the Espressif team care to state if & when they might fully integrate ESP32 debug with Eclipse?

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

Re: Eclipse JTAG Integration to Improve?

Postby ESP_igrr » Tue Aug 18, 2020 12:59 pm

Hi Halfnium, do you mean the problem is that the documentation at https://docs.espressif.com/projects/esp ... er-eclipse doesn't contain instructions for launching OpenOCD from Eclipse?

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

Re: Eclipse JTAG Integration to Improve?

Postby ESP_kondalkolipaka » Mon Sep 07, 2020 2:39 am

Hi @Halfnium,

We have integrated OpenOCD debugging with the Espressif IDF Eclipse plugin. Please check this here https://github.com/espressif/idf-eclips ... -debugging

Please update to the latest version of the plugin v1.2.2 to get the OpenOCD debugging updates.
https://github.com/espressif/idf-eclips ... tag/v1.2.2

Thanks

Halfnium
Posts: 11
Joined: Thu Jul 02, 2020 10:38 pm

Re: Eclipse JTAG Integration to Improve?

Postby Halfnium » Tue Dec 01, 2020 9:46 pm

ESP_igrr wrote:
Tue Aug 18, 2020 12:59 pm
Hi Halfnium, do you mean the problem is that the documentation at https://docs.espressif.com/projects/esp ... er-eclipse doesn't contain instructions for launching OpenOCD from Eclipse?
ESP_igrr,

Yes, that is what I meant. I seemed to run off the end of the documentation. So I adapted by launching OpenOCD from the Linux terminal command line.

Halfnium
Posts: 11
Joined: Thu Jul 02, 2020 10:38 pm

Re: Eclipse JTAG Integration to Improve?

Postby Halfnium » Tue Dec 01, 2020 10:30 pm

kondalkolipaka wrote:
Mon Sep 07, 2020 2:39 am
Hi @Halfnium,

We have integrated OpenOCD debugging with the Espressif IDF Eclipse plugin. Please check this here https://github.com/espressif/idf-eclips ... -debugging

Please update to the latest version of the plugin v1.2.2 to get the OpenOCD debugging updates.
https://github.com/espressif/idf-eclips ... tag/v1.2.2

Thanks
kondalkolipaka,

After a few months working on unrelated projects, I returned to the ESP32. Upon updating ESP-IDF and Eclipse, I was delighted to notice "ESP-IDF GDB OpenOCD Debugging" among the available Debug Configurations. Time has passed, so I now have plugin v1.2.3 installed alongside Eclipse 2020-09. However, I did not find the associated "OpenOCD Debugging.md" documentation until you pointed me at the link. I instead just muddled through setting up the debug configuration based on my prior experience with OpenOCD and GDB via the Linux command line.

For total novices to ESP32, Eclipse, OpenOCD and GDB like me, you have provided a valuable step forward. 1000 Thanks! May I suggest posting a note about it in the News area of the Forum?

Who is online

Users browsing this forum: No registered users and 37 guests