Code: Select all
# Example OpenOCD configuration file for ESP32-C3 connected via ESP-Prog.
#
# For example, OpenOCD can be started for ESP32-C3 debugging on
#
# openocd -f board/esprv_ftdi.cfg
#
# Source the JTAG interface configuration file
source [find interface/jlink.cfg]
# Source the ESP32-C3 configuration file
source [find target/esp32c3.cfg]
adapter_khz 4000
Code: Select all
sudo bin/openocd -f esp32-c3.cfg -c "init; halt"
Code: Select all
Info : VTarget = 3.300 V
Info : clock speed 4000 kHz
Info : JTAG tap: esp32c3.cpu tap/device found: 0x00005c25 (mfg: 0x612 (Espressif Systems), part: 0x0005, ver: 0x0)
Info : datacount=2 progbufsize=16
Info : Examined RISC-V core; found 1 harts
Info : hart 0: XLEN=32, misa=0x40101104
Error: Debugger is not authenticated to target Debug Module. (dmstatus=0x80018642). Use `riscv authdata_read` and `riscv authdata_write` commands to authenticate.
Info : Listening on port 3333 for gdb connections
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Error: Debugger is not authenticated to target Debug Module. (dmstatus=0x80000000). Use `riscv authdata_read` and `riscv authdata_write` commands to authenticate.
Error: Debugger is not authenticated to target Debug Module. (dmstatus=0x80000000). Use `riscv authdata_read` and `riscv authdata_write` commands to authenticate.
Error: Debugger is not authenticated to target Debug Module. (dmstatus=0x80000000). Use `riscv authdata_read` and `riscv authdata_write` commands to authenticate.
Code: Select all
Info : VTarget = 3.300 V
Info : clock speed 4000 kHz
Info : JTAG tap: esp32c3.cpu tap/device found: 0xf0000301 (mfg: 0x180 (<invalid>), part: 0x0000, ver: 0xf)
Warn : JTAG tap: esp32c3.cpu UNEXPECTED: 0xf0000301 (mfg: 0x180 (<invalid>), part: 0x0000, ver: 0xf)
Error: JTAG tap: esp32c3.cpu expected 1 of 1: 0x00005c25 (mfg: 0x612 (Espressif Systems), part: 0x0005, ver: 0x0)
Error: Trying to use configured scan chain anyway...
Warn : Bypassing JTAG setup events due to errors
Error: dtmcontrol is 0. Check JTAG connectivity/board power.
Info : Listening on port 3333 for gdb connections
Error: Target not examined yet