USB-JTAG interface issue - ESP32-C3

parthu123
Posts: 1
Joined: Fri Oct 25, 2024 7:34 am

USB-JTAG interface issue - ESP32-C3

Postby parthu123 » Fri Oct 25, 2024 8:02 am

Hi

We are facing an issue with the USB-JTAG interface its not robust at all, every now and then are getting the following error even though there is no build error. "GNU gdb (esp-gdb) 14.2_20240403
Copyright (C) 2023 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.
This GDB was configured as "--host=x86_64-w64-mingw32 --target=riscv32-esp-elf".
Info : accepting 'gdb' connection on tcp/3333
Info : [esp32c3] Target halted, PC=0x42000D10, debug_reason=00000000
Error: [esp32c3] no br
Please refer to the troubleshooting guide below to identify the problem.
https://github.com/espressif/openocd-es ... ooting-FAQ
eakpoint at address 0x40388338 found
Error: timed out while waiting
Please refer to the troubleshooting guide below to identify the problem.
https://github.com/espressif/openocd-es ... ooting-FAQ
for target halted
Error: [esp32c3] Ex
Please refer to the troubleshooting guide below to identify the problem.
https://github.com/espressif/openocd-es ... ooting-FAQ
ecution of event gdb-attach failed:
C:\Espressif\tools\openocd-esp32\v0.12.0-esp32-20240318\openocd-esp32\share\openocd\scripts/target/esp_common.cfg:9: Er
ror:
at file "C:\Espr
essif\tools\openocd-esp32\v0.12.0-esp32-20240318\openocd-esp32\share\openocd\scripts/target/esp_common.cfg", line 9
Warn : No symbols for FreeRTOS!
Error: Target not halted
Please refer to the troubleshooting guide below to identify the problem.
https://github.com/espressif/openocd-es ... ooting-FAQ
Error: auto_probe failed
Please refer to the troubleshooting guide below to identify the problem.
https://github.com/espressif/openocd-es ... ooting-FAQ
Error: Connect failed. Consider setting up a gdb-attach event for the target to p
Please refer to the troubleshooting guide below to identify the problem.
https://github.com/espressif/openocd-es ... ooting-FAQ
repare target for GDB connect, or use '
gdb_memory_
m
ap disable'.
Error: attempted 'gdb' connection rejected
Please refer to the troubleshooting guide below to identify the problem.
https://github.com/espressif/openocd-es ... ooting-FAQ
shutdown command invoked"

@ESP32 TEAM Could you help me resolve this issue

benrank
Posts: 4
Joined: Wed Sep 25, 2024 1:39 pm

Re: USB-JTAG interface issue - ESP32-C3

Postby benrank » Wed Oct 30, 2024 11:09 am

Hi parthu 123,

I have encountered similar problems in my project. What I can't explain is that, at the beginning, everything worked well. After a while, however, the OCD server could no longer connect to my ESP32S3. After some testing, I discovered that the name of the debug configuration needed to be without spaces. Once I removed the spaces, it worked seamlessly.

regards,
Benedikt
debug_ocd.jpg
debug_ocd.jpg (78.04 KiB) Viewed 457 times

benrank
Posts: 4
Joined: Wed Sep 25, 2024 1:39 pm

Re: USB-JTAG interface issue - ESP32-C3

Postby benrank » Wed Oct 30, 2024 12:01 pm

Hi,

I have encountered similar problems in my project. What I can't explain is that, at the beginning, everything worked well. After a while, however, the OCD server could no longer connect to my ESP32S3. After some testing, I discovered that the name of the debug configuration needed to be without spaces. Once I removed the spaces, it worked seamlessly.

regards,
Benedikt

Who is online

Users browsing this forum: Google [Bot], pepgra and 166 guests