esp32 openocd debug problem

gcatesp
Posts: 3
Joined: Mon Jul 06, 2020 9:36 am

esp32 openocd debug problem

Postby gcatesp » Mon Jul 06, 2020 9:49 am

Hi All,
I am working esp wroom 32 where i need debugg the code using eclipse on window 10 but i first want to try through cmd prompt.
i have the esp prog(esp32 debugger adapoter) and idf is version 3.3.2
I have followed all procedure as shown document but i getting below error and hardware connection is right as mention in document.
Flashing uart of esp-prog is working fine but jtag port is giving error.
I have already installed ftdi usb driver.

Error:

D:\ESP_Work\ESP32SDK\espconfigfor3.3.2>openocd -f interface/ftdi/esp32_devkitj_v1.cfg -f board/esp-wroom-32.cfg
Open On-Chip Debugger v0.10.0-esp32-20190313 (2019-03-13-09:57)
Licensed under GNU GPL v2
For bug reports, read
http://openocd.org/doc/doxygen/bugs.html
none separate
adapter speed: 20000 kHz
Info : Configured 2 cores
esp32 interrupt mask on
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Error: libusb_open() failed with LIBUSB_ERROR_NOT_FOUND
Error: no device found
Error: unable to open ftdi device with vid 0403, pid 6010, description '*', serial '*' at bus location '*'

Warn : Flash driver of esp32.flash does not support free_driver_priv()
Warn : Flash driver of irom does not support free_driver_priv()
Warn : Flash driver of drom does not support free_driver_priv()


Please help to solve this problem
Thanks in advance

ESP_Sprite
Posts: 9749
Joined: Thu Nov 26, 2015 4:08 am

Re: esp32 openocd debug problem

Postby ESP_Sprite » Mon Jul 06, 2020 12:42 pm

Did you install the driver required, as indicated here?

gcatesp
Posts: 3
Joined: Mon Jul 06, 2020 9:36 am

Re: esp32 openocd debug problem

Postby gcatesp » Tue Jul 07, 2020 7:30 am

Well i solved the problem by uploading the proper libusb driver.
But now i am facing different issue with xtesna-esp32-elf-gdb.
i have successfully implemented the openocd step mentioned in document:
https://docs.espressif.com/projects/esp ... un-openocd.

Move to debugging using command line as mentioned.
i have follow exact step mention in below document:
https://docs.espressif.com/projects/esp ... -debugger-

Its seem to be remote connection unable to open mean its showing nothing after target remote :3333
Please follow below repsonse of gdb:

D:\ESP_Work\ESP32SDK\espconfigfor3.3.2\examples\get-started\blink>xtensa-esp32-elf-gdb -x gdbinit build/blink.elf
GNU gdb (crosstool-NG crosstool-ng-1.22.0-80-g6c4433a5) 7.10
Copyright (C) 2015 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-host_pc-mingw32 --target=xtensa-esp32-elf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from build/blink.elf...done.
gdbinit:1: Error in sourced command file:
:3333: The system tried to join a drive to a directory on a joined drive.
(gdb)

ESP_Sprite
Posts: 9749
Joined: Thu Nov 26, 2015 4:08 am

Re: esp32 openocd debug problem

Postby ESP_Sprite » Tue Jul 07, 2020 8:48 am

If I recall correctly, that indicates that gdb cannot connect to OpenOCD. Do you have OpenOCD running at the same time? Perhaps there's a firewall blocking the connection?

Who is online

Users browsing this forum: Google [Bot] and 75 guests