Open Jimmy2027 opened 1 day ago
@Jimmy2027 I see that the application resets periodically and the JTAG connection fails. Does this also happen when the debugger is not attached? Have you tried starting a debugging session with GDB?
What happens when you reset-halt
the board during the openocd connection?
openocd -f board/esp32c3-builtin.cfg -c 'init; reset halt'
right, adding -c 'init; reset halt'
fixed the issue, thanks @erhankur !
Development Kit
openocd-esp32
Module or chip used
Beetle ESP32-C3
Debug Adapter
usb-jtag
OpenOCD version
v0.12.0-esp32-20241016
Operating System
linux
Using an IDE ?
no
OpenOCD command line
openocd -f board/esp32c3-builtin.cfg
JTAG Clock Speed
default
ESP-IDF version
v5.3.1
Problem Description
I would like to get a minimal bare-metal example working with openocd on my Beetle ESP32-C3 board. As a first step, I'm following these instructions: https://docs.espressif.com/projects/esp-idf/en/latest/esp32c3/api-guides/jtag-debugging/index.html However after executing the following steps, I get errors.
openocd -f board/esp32c3-builtin.cfg
Logs extract:
Debug Logs
openocd_log.txt
Expected behavior
I'm expecting the command to execute without errors.
Screenshots
No response