Need help getting debug environment setup
Posted: 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:
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:
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.
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 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