aboutsummaryrefslogtreecommitdiff
path: root/src/target/arm_adi_v5.c
diff options
context:
space:
mode:
authorFatih Aşıcı <fatih.asici@gmail.com>2014-02-14 13:37:04 +0200
committerAndreas Fritiofson <andreas.fritiofson@gmail.com>2014-06-28 09:25:06 +0000
commit31138437c38348711a1890f9d39f73f4e5e989d5 (patch)
tree8ae563f96f1c03d247d9cf560a93a951c6d7f935 /src/target/arm_adi_v5.c
parente3be699f51f11e54f8478e65367b90e3283eaf69 (diff)
adi_v5_swd: Improve SWD support
Fix bug in parity calculation macro. Cache and update the selected DP bank when necessary. Add aborts when the Ack code signals a failure (we should really only clear the sticky bits, but this will do for now). Change-Id: I38a4da136ba1d9e989b33c1875a80c0b1b2be874 Signed-off-by: Fatih Aşıcı <fatih.asici@gmail.com> Signed-off-by: Andreas Fritiofson <andreas.fritiofson@gmail.com> Reviewed-on: http://openocd.zylin.com/1950 Tested-by: jenkins
Diffstat (limited to 'src/target/arm_adi_v5.c')
-rw-r--r--src/target/arm_adi_v5.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/target/arm_adi_v5.c b/src/target/arm_adi_v5.c
index 2154c0e7..efddd669 100644
--- a/src/target/arm_adi_v5.c
+++ b/src/target/arm_adi_v5.c
@@ -664,6 +664,8 @@ int ahbap_debugport_init(struct adiv5_dap *dap)
/* DP initialization */
+ dap->dp_bank_value = 0;
+
retval = dap_queue_dp_read(dap, DP_CTRL_STAT, NULL);
if (retval != ERROR_OK)
return retval;