This is an automated email from Gerrit. Daniel Goehring ([email protected]) just uploaded a new patch set to Gerrit, which you can find at http://openocd.zylin.com/6119
-- gerrit commit f2b17713971e0e5564949cc3328a03f10da9117b Author: Kevin Burke <[email protected]> Date: Tue Feb 9 17:59:47 2021 -0500 target/adiv5: Add STICKYORUN bit clearing During early DAP initialization the STICKYERR bit of the CTRL/STAT register is cleared. The STICKYORUN bit is now also cleared at the same time. Tested on a 4-core ARM ARES platform. Change-Id: I1cc32bafc325ae9c573a89741c98735be554717a Signed-off-by: Kevin Burke <[email protected]> Signed-off-by: Daniel Goehring <[email protected]> diff --git a/src/target/adi_v5_jtag.c b/src/target/adi_v5_jtag.c index 6dede97..0a59f23 100644 --- a/src/target/adi_v5_jtag.c +++ b/src/target/adi_v5_jtag.c @@ -636,7 +636,7 @@ static int jtagdp_transaction_endcheck(struct adiv5_dap *dap) /* Clear Sticky Error Bits */ retval = adi_jtag_scan_inout_check_u32(dap, JTAG_DP_DPACC, DP_CTRL_STAT, DPAP_WRITE, - dap->dp_ctrl_stat | SSTICKYERR, NULL, 0); + dap->dp_ctrl_stat | SSTICKYERR | SSTICKYORUN, NULL, 0); if (retval != ERROR_OK) goto done; diff --git a/src/target/arm_adi_v5.c b/src/target/arm_adi_v5.c index 8f5ad59..eca520f 100644 --- a/src/target/arm_adi_v5.c +++ b/src/target/arm_adi_v5.c @@ -669,7 +669,7 @@ int dap_dp_init(struct adiv5_dap *dap) * is ignored in swd mode. It also powers-up system and debug domains in * both jtag and swd modes, if not done before. */ - retval = dap_queue_dp_write(dap, DP_CTRL_STAT, dap->dp_ctrl_stat | SSTICKYERR); + retval = dap_queue_dp_write(dap, DP_CTRL_STAT, dap->dp_ctrl_stat | SSTICKYERR | SSTICKYORUN); if (retval != ERROR_OK) return retval; -- _______________________________________________ OpenOCD-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openocd-devel
