Can not get running the debugging with "Espressif IDF plugins for Eclipse"
Posted: Sun Jun 26, 2022 1:23 pm
Hello,
I've got some problems to get running the debugging with Eclipse and the "Espressif IDF plugins for Eclipse"!
I use ESP-IDF 4.4.1 with the board ESP32-S3-DevKitC-1 and the JTAG adapter ESP-Prog under Ubuntu 22.04.
I've installed the "Eclipse IDE for Embedded C/C++ Developers" (ver. 2022-06) and "Espressif IDF plugins for Eclipse" (ver. 2.5.0.202206080113). This installation process installed the "Embedded C/C++ OpenOCD Debugging" also.
The first unanswered question: Is it necessary to install the following additional components as they appear when I run eclipse "Install New Software" again?
Before that they didn't appear under "Espressif IDF"!
Following instructions in "ESP-IDF GDB OpenOCD Debugging" (https://github.com/espressif/idf-eclips ... bugging.md) I've made following changes to defaults in a new "Debug Configurations", tab "Debugger":
The dialog "Debug Configuration", tab "Debugger" does not contain the fields "Flash voltage", "Target" and "Board"!
The first problem after making these changes you can see in the attached screen shot. Nothing happens when I press one of both buttons! I can't recognize what I should change in the "Launch Target"!
The second unanswered question: I can select the serial interface "/dev/ttyUSB1" for flashing in the field "Launch Target" of the launch bar, but where do I enter the serial interface "/dev/ttyUSB0" for debugging?
Starting debugging with these settings generates following console output:
The third unanswered question: The interface file "interface/ftdi/esp32_devkitj_v1.cfg" sets the clock speed to 20000 kHz, the board file "board/esp32s3-ftdi.cfg" changes it to 5000 kHz, is this clock changing really necessary?
Am I doing something wrong?
Can somebody help me to get running the debugging?
Thanks in advance,
Michael
I've got some problems to get running the debugging with Eclipse and the "Espressif IDF plugins for Eclipse"!
I use ESP-IDF 4.4.1 with the board ESP32-S3-DevKitC-1 and the JTAG adapter ESP-Prog under Ubuntu 22.04.
I've installed the "Eclipse IDE for Embedded C/C++ Developers" (ver. 2022-06) and "Espressif IDF plugins for Eclipse" (ver. 2.5.0.202206080113). This installation process installed the "Embedded C/C++ OpenOCD Debugging" also.
The first unanswered question: Is it necessary to install the following additional components as they appear when I run eclipse "Install New Software" again?
Code: Select all
Espressif IDF
Embedded C/C++ CMSIS Packs Core Plug-in
Embedded C/C++ Core
Embedded C/C++ GDB JTAG Debugging
Following instructions in "ESP-IDF GDB OpenOCD Debugging" (https://github.com/espressif/idf-eclips ... bugging.md) I've made following changes to defaults in a new "Debug Configurations", tab "Debugger":
Code: Select all
OpenOCD Setup
Executable path : ${env_var:IDF_TOOLS_PATH}/tools/openocd-esp32/v0.11.0-esp32-20220411/openocd-esp32/bin/openocd
Config options : -s ${env_var:IDF_TOOLS_PATH}/tools/openocd-esp32/v0.11.0-esp32-20220411/openocd-esp32/share/openocd/scripts -f interface/ftdi/esp32_devkitj_v1.cfg -f board/esp32s3-ftdi.cfg
GDB Client Setup
Actual executable : ${env_var:IDF_TOOLS_PATH}/tools/xtensa-esp32s3-elf/esp-2021r2-patch3-8.4.0/xtensa-esp32s3-elf/bin/xtensa-esp32s3-elf-gdb
The first problem after making these changes you can see in the attached screen shot. Nothing happens when I press one of both buttons! I can't recognize what I should change in the "Launch Target"!
The second unanswered question: I can select the serial interface "/dev/ttyUSB1" for flashing in the field "Launch Target" of the launch bar, but where do I enter the serial interface "/dev/ttyUSB0" for debugging?
Starting debugging with these settings generates following console output:
Code: Select all
Open On-Chip Debugger v0.11.0-esp32-20220411 (2022-04-11-08:47)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
adapter speed: 20000 kHz
Warn : Interface already configured, ignoring
adapter speed: 5000 kHz
Started by GNU MCU Eclipse
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : clock speed 5000 kHz
Error: JTAG scan chain interrogation failed: all zeroes
Error: Check JTAG interface, timings, target power, etc.
Error: Trying to use configured scan chain anyway...
Error: esp32s3.cpu0: IR capture error; saw 0x00 not 0x01
Warn : Bypassing JTAG setup events due to errors
Warn : target esp32s3.cpu0 examination failed
Warn : target esp32s3.cpu1 examination failed
Info : starting gdb server for esp32s3.cpu0 on 3333
Info : Listening on port 3333 for gdb connections
Info : accepting 'gdb' connection on tcp/3333
Error: Target not examined yet
Error executing event gdb-attach on target esp32s3.cpu0:
Warn : No symbols for FreeRTOS!
Error: Target not halted
Error: auto_probe failed
Error: Connect failed. Consider setting up a gdb-attach event for the target to prepare target for GDB connect, or use 'gdb_memory_m
ap disable'.
Error: attempted 'gdb' connection rejected
shutdown command invoked
Am I doing something wrong?
Can somebody help me to get running the debugging?
Thanks in advance,
Michael