xtensa-esp32-elf-gdb issue with libpython2.7. | ECLIPSE GDB debugging with JTAG

raja sumant
Posts: 10
Joined: Tue Nov 09, 2021 5:43 am

xtensa-esp32-elf-gdb issue with libpython2.7. | ECLIPSE GDB debugging with JTAG

Postby raja sumant » Tue Nov 16, 2021 8:23 am

Hello. I have been trying to debug my application with a JTAG.

I configured eclipse for esp-idf and OpenOCD debugging using multiple resources like

https://www.youtube.com/watch?v=CbPX3q7LeBc

and

https://github.com/espressif/idf-eclips ... bugging.md

I am now getting this strange error
"""
Could not determine GDB version after sending: /home/raja/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin/xtensa-esp32-elf-gdb --version, response:
"""
When I navigated to the path and executed it manually, I got the following:

Code: Select all

raja@raja-IdeaPad-Gaming-3-15IMH05:~/.espressif/tools/xtensa-esp32-elf/esp-2021r2-8.4.0/xtensa-esp32-elf/bin$ ./xtensa-esp32-elf-gdb --version
./xtensa-esp32-elf-gdb: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory
I see that it points to python 2.7 which I do not have installed on my computer at all.

I set the python environment to Python 3.8 and not 2.7.

Could you please help me with this?

raja sumant
Posts: 10
Joined: Tue Nov 09, 2021 5:43 am

Re: xtensa-esp32-elf-gdb issue with libpython2.7. | ECLIPSE GDB debugging with JTAG

Postby raja sumant » Tue Nov 16, 2021 10:54 am

Solved this issue after installing python 2.7 as xtensa gdb currently does not have full support on python 3.


Found the solution over here:
https://github.com/espressif/esp-idf/issues/5284

  • Build the toolchain (including GDB) from source, either disabling Python scripting support, or configuring it to use Python 3:
https://docs.espressif.com/projects/esp ... ratch.html
  • Install Python libraries: apt-get install libpython2.7-dev (do apt-get update first, if running inside IDF Docker)

Who is online

Users browsing this forum: No registered users and 8 guests