advi5: Raise the access timeouts as 20ms is too low in some cases

This commit is contained in:
dragonmux 2022-03-24 08:46:56 -04:00 committed by Piotr Esden-Tempski
parent cedd9f9ac4
commit bba2bfdcf4
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);