adiv5_swdp: Implemented clock tristating for adiv5_swdp_scan

This commit is contained in:
dragonmux 2022-08-09 04:38:57 +01:00 committed by Piotr Esden-Tempski
parent c847007008
commit 6b5c492bc7
2 changed files with 2 additions and 0 deletions

View File

@ -266,6 +266,7 @@ bool cmd_swdp_scan(target *t, int argc, const char **argv)
}
if (devs == 0) {
platform_target_clk_output_enable(false);
platform_nrst_set_val(false);
gdb_out("SW-DP scan failed!\n");
return false;

View File

@ -89,6 +89,7 @@ uint32_t adiv5_swdp_scan(uint32_t targetid)
if (swdptap_init(initial_dp))
return 0;
platform_target_clk_output_enable(true);
/* DORMANT-> SWD sequence*/
initial_dp->seq_out(0xFFFFFFFF, 32);
initial_dp->seq_out(0xFFFFFFFF, 32);