forked from auracaster/openocd
tcl: add Espressif RISC-V config files
Add configuration files for Espressif RISC-V based chips: - ESP32-C2, ESP32-C3, ESP32-C6, ESP32-H2 target configs - Board configs for builtin USB-JTAG and FTDI interfaces while adding the new config files: - Fix indentation in existing Espressif config files - Adapt esp_common.cfg with RISC-V support - Add explicit 'transport select jtag' to interface configs to avoid 'DEPRECATED: auto-selecting transport' warning Change-Id: I45fcbca2fe50888750e2e98a0a6773de86aad6d0 Signed-off-by: Erhan Kurubas <erhan.kurubas@espressif.com> Reviewed-on: https://review.openocd.org/c/openocd/+/9195 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
This commit is contained in:
committed by
Antonio Borneo
parent
52ea420dd2
commit
04c6a6ee0e
@@ -0,0 +1,21 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
#
|
||||
# Example OpenOCD configuration file for ESP32-C2 connected via ESP-Prog.
|
||||
#
|
||||
# For example, OpenOCD can be started for ESP32-C2 debugging on
|
||||
#
|
||||
# openocd -f board/esp32c2-ftdi.cfg
|
||||
#
|
||||
|
||||
# Source the JTAG interface configuration file
|
||||
source [find interface/ftdi/esp32_devkitj_v1.cfg]
|
||||
# Source the ESP32-C2 configuration file
|
||||
source [find target/esp32c2.cfg]
|
||||
|
||||
# The speed of the JTAG interface, in kHz. If you get DSR/DIR errors (and they
|
||||
# do not relate to OpenOCD trying to read from a memory range without physical
|
||||
# memory being present there), you can try lowering this.
|
||||
#
|
||||
# On DevKit-J, this can go as high as 20MHz if CPU frequency is 80MHz, or 26MHz
|
||||
# if CPU frequency is 160MHz or 240MHz.
|
||||
adapter speed 20000
|
||||
@@ -0,0 +1,15 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
#
|
||||
# Example OpenOCD configuration file for ESP32-C3 connected via builtin USB-JTAG adapter.
|
||||
#
|
||||
# For example, OpenOCD can be started for ESP32-C3 debugging on
|
||||
#
|
||||
# openocd -f board/esp32c3-builtin.cfg
|
||||
#
|
||||
|
||||
# Source the JTAG interface configuration file
|
||||
source [find interface/esp_usb_jtag.cfg]
|
||||
# Source the ESP32-C3 configuration file
|
||||
source [find target/esp32c3.cfg]
|
||||
|
||||
adapter speed 40000
|
||||
@@ -0,0 +1,21 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
#
|
||||
# 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/esp32c3-ftdi.cfg
|
||||
#
|
||||
|
||||
# Source the JTAG interface configuration file
|
||||
source [find interface/ftdi/esp32_devkitj_v1.cfg]
|
||||
# Source the ESP32-C3 configuration file
|
||||
source [find target/esp32c3.cfg]
|
||||
|
||||
# The speed of the JTAG interface, in kHz. If you get DSR/DIR errors (and they
|
||||
# do not relate to OpenOCD trying to read from a memory range without physical
|
||||
# memory being present there), you can try lowering this.
|
||||
#
|
||||
# On DevKit-J, this can go as high as 20MHz if CPU frequency is 80MHz, or 26MHz
|
||||
# if CPU frequency is 160MHz or 240MHz.
|
||||
adapter speed 20000
|
||||
@@ -0,0 +1,15 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
#
|
||||
# Example OpenOCD configuration file for ESP32-C6 connected via builtin USB-JTAG adapter.
|
||||
#
|
||||
# For example, OpenOCD can be started for ESP32-C6 debugging on
|
||||
#
|
||||
# openocd -f board/esp32c6-builtin.cfg
|
||||
#
|
||||
|
||||
# Source the JTAG interface configuration file
|
||||
source [find interface/esp_usb_jtag.cfg]
|
||||
# Source the ESP32-C6 configuration file
|
||||
source [find target/esp32c6.cfg]
|
||||
|
||||
adapter speed 40000
|
||||
@@ -0,0 +1,15 @@
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
#
|
||||
# Example OpenOCD configuration file for ESP32-H2 connected via builtin USB-JTAG adapter.
|
||||
#
|
||||
# For example, OpenOCD can be started for ESP32-H2 debugging on
|
||||
#
|
||||
# openocd -f board/esp32h2-builtin.cfg
|
||||
#
|
||||
|
||||
# Source the JTAG interface configuration file
|
||||
source [find interface/esp_usb_jtag.cfg]
|
||||
# Source the ESP32-H2 configuration file
|
||||
source [find target/esp32h2.cfg]
|
||||
|
||||
adapter speed 40000
|
||||
Reference in New Issue
Block a user