Need help getting debug environment setup

Will_L
Posts: 2
Joined: Tue Nov 07, 2017 7:10 pm

Need help getting debug environment setup

Postby Will_L » Tue Nov 07, 2017 7:31 pm

I'm having a lot of trouble and headache trying to get a usable development/debug environment setup; hoping those with more experience can look at what I'm doing and point me in the right direction.

I have a Win10 desktop with a customized variant of Eclipse and PlatformIO such that in the Project Explorer panel I have various "Build Targets" including "Build", "Clean", and "Upload", which all seem to work. The upload is over COM13 using a USB to serial adapter. This was all setup by another engineer and I inherited it. For simple compiling and uploading it works.

I'd like to get JTAG debugging/programming working. There is a Build Target labeled "Upload using Programmer" but when I try clicking it I get:

Code: Select all

*** Do not know how to make File target `program' (C:\Projects\MOT\svn\Design_SW\MOT_ESP32_Internal_Flash\program).  Stop.
I figured I'd try to get command line working to see if I could get around that. I came across the following from a web search: http://esp-idf.readthedocs.io/en/latest ... index.html and started following the instructions.
I already had the latest Cygwin installed (64-bit). Downloaded the OpenOCD binary from Espressif using the link at http://esp-idf.readthedocs.io/en/latest ... ndows.html and extracted it to a local directory (since there is no ~/esp/ on Windows despite what that webpage describes...). Following on to http://esp-idf.readthedocs.io/en/latest ... p32-target I opened a Cywin terminal, changed to the newly unzipped OpenOCD directory and tried to execute the example code, modified to fit a JLink debugger and an ESP-WROOM-32 module:

Code: Select all

bin/openocd -s share/openocd/scripts -f interface/jlink.cfg -f board/esp-wroom-32.cfg
C:/Projects/openocd-esp32/bin/openocd.exe: error while loading shared libraries: ?: cannot open shared object file: No such file or directory
Much web searching has turned up nothing useful/understandable. So I turn to the forums. Anyone know how to fix any of the above? Ideally I'd like a path to use Eclipse's built in debug features but I'll take anything at this point.

Dig Kleppe
Posts: 26
Joined: Wed Jun 28, 2017 5:03 pm

Re: Need help getting debug environment setup

Postby Dig Kleppe » Wed Nov 08, 2017 6:33 pm

First setup eclipse:
http://esp-idf.readthedocs.io/en/latest ... setup.html
setup debugger ( see attachment)
I work with a simple FTDI debugger. works great.
succes.
Dig
Attachments
instructions eclipse.pdf
(484.11 KiB) Downloaded 489 times

snahmad75
Posts: 445
Joined: Wed Jan 24, 2018 6:32 pm

Re: Need help getting debug environment setup

Postby snahmad75 » Fri Mar 16, 2018 9:55 am

Hi,

Your instructions eclipse.pdf contains web links are not correct anymore. kindly update and upload file again please.
Are these steps applies to windows platform as well?

Who is online

Users browsing this forum: No registered users and 133 guests