aboutsummaryrefslogtreecommitdiff
path: root/src/target/target.c
diff options
context:
space:
mode:
authorErhan Kurubas <erhan.kurubas@espressif.com>2022-05-21 23:49:54 +0200
committerAntonio Borneo <borneo.antonio@gmail.com>2022-06-24 21:46:07 +0000
commit77287b8d47b4be8ee5612037fe1eba6f0e08147f (patch)
tree8d74f15923f1f45e266298704fd60fcd6eec5fe5 /src/target/target.c
parent52fbb85d2e0911fa1500708a5841d3474c1c0289 (diff)
downloadriscv-openocd-77287b8d47b4be8ee5612037fe1eba6f0e08147f.zip
riscv-openocd-77287b8d47b4be8ee5612037fe1eba6f0e08147f.tar.gz
riscv-openocd-77287b8d47b4be8ee5612037fe1eba6f0e08147f.tar.bz2
target: add Espressif ESP32 basic support
ESP32 is a dual core Xtensa SoC Not full featured yet. Some of the missing functionality: -Semihosting -Flash breakpoints -Flash loader -Apptrace -FreeRTOS Signed-off-by: Erhan Kurubas <erhan.kurubas@espressif.com> Change-Id: I76fb184aa38ab9f4e30290c038b5ff8850060750 Reviewed-on: https://review.openocd.org/c/openocd/+/6989 Tested-by: jenkins Reviewed-by: Ian Thompson <ianst@cadence.com> Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'src/target/target.c')
-rw-r--r--src/target/target.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/target/target.c b/src/target/target.c
index e2004e4..ea49b79 100644
--- a/src/target/target.c
+++ b/src/target/target.c
@@ -105,6 +105,7 @@ extern struct target_type hla_target;
extern struct target_type nds32_v2_target;
extern struct target_type nds32_v3_target;
extern struct target_type nds32_v3m_target;
+extern struct target_type esp32_target;
extern struct target_type esp32s2_target;
extern struct target_type or1k_target;
extern struct target_type quark_x10xx_target;
@@ -142,6 +143,7 @@ static struct target_type *target_types[] = {
&nds32_v2_target,
&nds32_v3_target,
&nds32_v3m_target,
+ &esp32_target,
&esp32s2_target,
&or1k_target,
&quark_x10xx_target,
@@ -3336,7 +3338,7 @@ COMMAND_HANDLER(handle_soft_reset_halt_command)
{
struct target *target = get_current_target(CMD_CTX);
- LOG_USER("requesting target halt and executing a soft reset");
+ LOG_TARGET_INFO(target, "requesting target halt and executing a soft reset");
target_soft_reset_halt(target);