From bba2bfdcf49695cb9b88482c7ed3db69db58b082 Mon Sep 17 00:00:00 2001 From: dragonmux Date: Thu, 24 Mar 2022 08:46:56 -0400 Subject: [PATCH] advi5: Raise the access timeouts as 20ms is too low in some cases --- src/target/adiv5_jtagdp.c | 2 +- src/target/adiv5_swdp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/target/adiv5_jtagdp.c b/src/target/adiv5_jtagdp.c index cf8591b..cd027d2 100644 --- a/src/target/adiv5_jtagdp.c +++ b/src/target/adiv5_jtagdp.c @@ -85,7 +85,7 @@ uint32_t fw_adiv5_jtagdp_low_access(ADIv5_DP_t *dp, uint8_t RnW, jtag_dev_write_ir(&jtag_proc, dp->dp_jd_index, APnDP ? IR_APACC : IR_DPACC); - platform_timeout_set(&timeout, 20); + platform_timeout_set(&timeout, 250); do { jtag_dev_shift_dr(&jtag_proc, dp->dp_jd_index, (uint8_t*)&response, (uint8_t*)&request, 35); diff --git a/src/target/adiv5_swdp.c b/src/target/adiv5_swdp.c index 7797b8f..1bfa2d9 100644 --- a/src/target/adiv5_swdp.c +++ b/src/target/adiv5_swdp.c @@ -227,7 +227,7 @@ uint32_t firmware_swdp_low_access(ADIv5_DP_t *dp, uint8_t RnW, if((addr & ADIV5_APnDP) && dp->fault) return 0; - platform_timeout_set(&timeout, 20); + platform_timeout_set(&timeout, 250); do { dp->seq_out(request, 8); ack = dp->seq_in(3);