Debug problem with ESP32-C3-Mini-1U-H4

M0nEmb
Posts: 1
Joined: Wed Dec 14, 2022 8:59 am

Debug problem with ESP32-C3-Mini-1U-H4

Postby M0nEmb » Wed Dec 14, 2022 9:24 am

Hello everyone!

This is my first post, because I am starting to develop with ESP. I'm trying to debug with a custom board with ESP32-C3-MINI-1U-H4 (single core). Maybe it's a very simple question but I'm not able to debug (I'm using Eclipse IDE).

I have a usb connected to the GPIO18 (USB_D-), GPIO19 (USB_D+) and GND pins. With this I am able to flash and monitor the chip. I have read that the board has a USB-JTAG built-in but I am not able to debug.

I have also tried to connect an ESP-PROG board to the GPIO4-GPIO7 pins but I can't debug either (burning DIS_USB_JTAG eFuse as explained in next doc https://docs.espressif.com/projects/esp ... ure-efuses).

I get next error when trying to run opencd with ESP-PROG connected:

Code: Select all

openocd -f board/esp32c3-ftdi.cfg
Returned:

Code: Select all

Open On-Chip Debugger  v0.11.0-esp32-20220706 (2022-07-06-15:48)
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
Error: libusb_open() failed with LIBUSB_ERROR_NOT_SUPPORTED
Info : ftdi: if you experience problems at higher adapter clocks, try the command "ftdi tdo_sample_edge falling"
Info : clock speed 20000 kHz
Info : TAP esp32c3.cpu does not have valid IDCODE (idcode=0xfffffffe)
Error: esp32c3.cpu: IR capture error; saw 0x1f not 0x01
Warn : Bypassing JTAG setup events due to errors
Error: Unsupported DTM version: 15
Warn : target esp32c3 examination failed
Info : starting gdb server for esp32c3 on 3333
Info : Listening on port 3333 for gdb connections
shutdown command invoked
Error: Unsupported xlen: -1
Error: Unknown target arch!
Error: Unsupported DTM version: 15
Can anyone help me? Thanks!

Who is online

Users browsing this forum: No registered users and 104 guests