From: Paul Fertser Date: Fri, 13 Mar 2015 14:55:51 +0000 (+0300) Subject: target/arm_adi_v5, cortex_m: retry ahbap_debugport_init few times in case of an error X-Git-Tag: v0.9.0-rc1~25 X-Git-Url: https://review.openocd.org/gitweb?p=openocd.git;a=commitdiff_plain;h=bdfd5bbe0473d9db7949dd303bcb28282a17a47d;hp=bdfd5bbe0473d9db7949dd303bcb28282a17a47d target/arm_adi_v5, cortex_m: retry ahbap_debugport_init few times in case of an error Some targets need arbitrary amount of time (usually not too long) after reset (both sysresetreq and srst) to do initialisation, and SWD/JTAG is not available during that. According to PSoC4 docs, the debugger should try connecting until it succeeds. Also ahbap_debugport_init might be necessary to perform after using hardware srst too, so add it there (except for the targets that support srst_nogate since they are very unlikely to need it). Change-Id: I3598d5ff7b8e0bf3a5566a57dec4b0b2b243d297 Signed-off-by: Paul Fertser Reviewed-on: http://openocd.zylin.com/2601 Tested-by: jenkins ---