summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorØyvind Harboe <oyvind.harboe@zylin.com>2010-06-21 14:34:07 +0200
committerØyvind Harboe <oyvind.harboe@zylin.com>2010-06-22 08:22:01 +0200
commitb50bb632adbfaa21d7a4d3705932aeaebf889f23 (patch)
tree771dff822d6c400a72e1b0fc97e69f93adca3873
parent4d238c7f91a73beebe1e71594b19ac39c62ff408 (diff)
downloadopenocd_libswd-b50bb632adbfaa21d7a4d3705932aeaebf889f23.tar.gz
openocd_libswd-b50bb632adbfaa21d7a4d3705932aeaebf889f23.tar.bz2
openocd_libswd-b50bb632adbfaa21d7a4d3705932aeaebf889f23.tar.xz
openocd_libswd-b50bb632adbfaa21d7a4d3705932aeaebf889f23.zip
cortex a8: print message that locking debug access succeeded on second try
when locking the debug access fails on the first try, it's a bit noisy, so print out message that it succeeded on second try. Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
-rw-r--r--src/target/cortex_a8.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/target/cortex_a8.c b/src/target/cortex_a8.c
index ee79d63f..ea07579b 100644
--- a/src/target/cortex_a8.c
+++ b/src/target/cortex_a8.c
@@ -92,6 +92,10 @@ static int cortex_a8_init_debug_access(struct target *target)
{
/* try again */
retval = mem_ap_write_atomic_u32(swjdp, armv7a->debug_base + CPUDBG_LOCKACCESS, 0xC5ACCE55);
+ if (retval == ERROR_OK)
+ {
+ LOG_USER("Locking debug access failed on first, but succeeded on second try.");
+ }
}
if (retval != ERROR_OK)
return retval;