From: Øyvind Harboe Date: Mon, 21 Jun 2010 12:34:07 +0000 (+0200) Subject: cortex a8: print message that locking debug access succeeded on second try X-Git-Tag: v0.5.0-rc1~554 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=b50bb632adbfaa21d7a4d3705932aeaebf889f23 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 --- diff --git a/src/target/cortex_a8.c b/src/target/cortex_a8.c index ee79d63f79..ea07579bf2 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;