aboutsummaryrefslogtreecommitdiff
path: root/src/target/arm_adi_v5.c
diff options
context:
space:
mode:
authorMathias K <kesmtp@freenet.de>2012-03-12 11:28:49 +0100
committerSpencer Oliver <spen@spen-soft.co.uk>2012-03-14 20:35:59 +0000
commite2073cc18ae1380a7f6d0f61f49aab42de01b732 (patch)
treecf2b9803704eac2a9ab83ad14ebddf60d45920a3 /src/target/arm_adi_v5.c
parent6f5b9e9304c7f7625f1af04bac6e8cd0a67e649d (diff)
downloadriscv-openocd-e2073cc18ae1380a7f6d0f61f49aab42de01b732.zip
riscv-openocd-e2073cc18ae1380a7f6d0f61f49aab42de01b732.tar.gz
riscv-openocd-e2073cc18ae1380a7f6d0f61f49aab42de01b732.tar.bz2
stm32: determine all cpu types and use common examine
This patch determine all cpu types and not only the cortex M3 and the stm32 target use the common target examine function from the cortex_m sources. Change-Id: If689dd994b3855284b927fc4b206f420cf32b6c7 Signed-off-by: Mathias K <kesmtp@freenet.de> Reviewed-on: http://openocd.zylin.com/511 Tested-by: jenkins Reviewed-by: Spencer Oliver <spen@spen-soft.co.uk>
Diffstat (limited to 'src/target/arm_adi_v5.c')
-rw-r--r--src/target/arm_adi_v5.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/target/arm_adi_v5.c b/src/target/arm_adi_v5.c
index 2203eb5..1ef7c1a 100644
--- a/src/target/arm_adi_v5.c
+++ b/src/target/arm_adi_v5.c
@@ -1098,6 +1098,14 @@ int ahbap_debugport_init(struct adiv5_dap *dap)
LOG_DEBUG(" ");
+ /* test for initialized low level jtag hardware
+ * this always fails for stlink hardware
+ */
+ if (!dap->jtag_info) {
+ LOG_DEBUG("No low level jtag hardware found");
+ return ERROR_OK;
+ }
+
/* JTAG-DP or SWJ-DP, in JTAG mode
* ... for SWD mode this is patched as part
* of link switchover