From 79bcab76a020299bb3ea5c24d650d0d6a960f870 Mon Sep 17 00:00:00 2001 From: Erhan Kurubas Date: Tue, 18 Jul 2023 00:57:54 +0200 Subject: [PATCH] tcl/board: add Espressif board configs with builtin usb jtag Board config files, to allow communication with the builtin USB-JTAG adapter. Change-Id: I80fb0c36b3cc164940ff266f1eaa287d870da94d Signed-off-by: Erhan Kurubas --- tcl/board/esp32c3-builtin.cfg | 15 +++++++++++++++ tcl/board/esp32c6-builtin.cfg | 15 +++++++++++++++ tcl/board/esp32h2-builtin.cfg | 15 +++++++++++++++ 3 files changed, 45 insertions(+) create mode 100644 tcl/board/esp32c3-builtin.cfg create mode 100644 tcl/board/esp32c6-builtin.cfg create mode 100644 tcl/board/esp32h2-builtin.cfg diff --git a/tcl/board/esp32c3-builtin.cfg b/tcl/board/esp32c3-builtin.cfg new file mode 100644 index 0000000000..9e19b1b93c --- /dev/null +++ b/tcl/board/esp32c3-builtin.cfg @@ -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 diff --git a/tcl/board/esp32c6-builtin.cfg b/tcl/board/esp32c6-builtin.cfg new file mode 100644 index 0000000000..abc96b2d14 --- /dev/null +++ b/tcl/board/esp32c6-builtin.cfg @@ -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 diff --git a/tcl/board/esp32h2-builtin.cfg b/tcl/board/esp32h2-builtin.cfg new file mode 100644 index 0000000000..1ce596104a --- /dev/null +++ b/tcl/board/esp32h2-builtin.cfg @@ -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/esp32h2.cfg] + +adapter speed 40000