-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ESP32C3 GDB can't connect through USB built-in JTAG (OCD-412) #182
Comments
Same issue. I'm trying custom config for platformio:
but get an error:
update:
|
Hello. I am the OP and my problem is not resolved. My issue is unrelated to that of @DmytroKorniienko above. |
It looks like GDB's remote timeout expires while OpenOCD tries to get flash mapping for your app (default is 2 sec). Can you try |
Thank you for your feedback. Out of multiple attempts with different values of time out I managed to connect only once to the board. I then tried installing idf on another host and with this one I managed to connect flawlessly at every attempt. It turns out that there is something wrong with the USB interface of the first host (an old Dell laptop). |
Environment
openocd -f board/esp32c3-builtin.cfg
oropenocd -f board/esp32c3-builtin.cfg -c "adapter_khz 3000"
Problem Description
I tested with the 2 boards mentioned above with the same result. I will describe the output of the Liliygo here but I can provide the NodeMCU as well if necessary.
Steps to reproduce the behavior:
idf.py build
openocd -f board/esp32c3-builting.cfg -c "program_esp build/hello_world.bin 0x10000 verify exit"
with no erroropenocd -f board/esp32c3-builtin.cfg
riscv32-esp-elf-gdb
target remote :3333
Debug Logs
gdb_log.txt
openocd_log.txt (too large to fit here)
Expected behavior
A functional debug prompt
The text was updated successfully, but these errors were encountered: