ESP-Prog with Espressif IDE - Debugger Settings (3333)

marcusob
Posts: 4
Joined: Sun May 30, 2021 5:45 am

ESP-Prog with Espressif IDE - Debugger Settings (3333)

Postby marcusob » Mon Jun 13, 2022 1:39 am

Hi

I am trying to debug my ESP32 AI Thinker + Camera board, I already have it working from the Esspressif IDE for downloading and UART monitor etc. The only thing I cant get working is the debugger. I have the ESP-Prog wired up correctly to the ESP32, and can prove this by using it with PlatformIO and VSCode. But I really want to use the Esspressif IDE.

The instructions say first get openocd working in the IDE, so I have that working from inside the IDE

openocd --version

This works, and I then can also connect to the board

openocd -f board/esp32-wrover-kit-3.3v.cfg

the output is below

Code: Select all

u:\Esp_idf_ide\frameworks\esp-idf-v4.4>openocd -f board/esp32-wrover-kit-3.3v.cfg
Open On-Chip Debugger  v0.11.0-esp32-20211220 (2021-12-20-15:43)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : ftdi: if you experience problems at higher adapter clocks, try the command "ftdi_tdo_sample_edge falling"
Info : clock speed 20000 kHz
Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : esp32.cpu0: Debug controller was reset.
Info : esp32.cpu0: Core was reset.
Info : esp32.cpu1: Debug controller was reset.
Info : esp32.cpu1: Core was reset.
Info : starting gdb server for esp32.cpu0 on 3333
Info : Listening on port 3333 for gdb connections
Info : esp32.cpu0: Debug controller was reset.
Info : esp32.cpu0: Core was reset.
Info : esp32.cpu1: Debug controller was reset.
Info : esp32.cpu1: Core was reset.
Info : esp32.cpu0: Debug controller was reset.
Info : esp32.cpu0: Core was reset.
Info : esp32.cpu1: Debug controller was reset.
Info : esp32.cpu1: Core was reset.
The problem I have is putting in the Debug Config as described here

https://docs.espressif.com/projects/esp ... ml#eclipse

Things have changed since the web page was done - you can see this is the web page instructions

Image

It says to keep the hostname as localhost, and set port number to 3333, with Generic TCP/IP for JTag.

And this is what the IDE looks like now

Image

The JTag Device I keep the same Generic TCP/IP, but there is this string for the connection

unspecified-ip-address:unspecified-port-number

What should the command be for the -target-select ? Is it correct - using the remote target option ? And then a colon : and port 3333 ? The default string in the field shows

GDB Connection String : unspecified-ip-address:unspecified-port-number

Do I just change it to

unspecified-ip-address:3333

Or

:3333

As neither seem to work. When I run Debug a dialog pops up and says

esp32 esspressif ide Failed to execute MI command: -target-select remote :3333

Any help appreciated. Thanks.
Attachments
1.PNG
1.PNG (601.07 KiB) Viewed 1387 times
2.PNG
2.PNG (44.95 KiB) Viewed 1387 times

Who is online

Users browsing this forum: No registered users and 127 guests