From 8d7a5cd4222ddb7c029ddf129fd12e931f57657f Mon Sep 17 00:00:00 2001 From: dragonmux Date: Sun, 14 Aug 2022 18:12:03 +0100 Subject: [PATCH] command: Added some additional tristating to the end of the scan routines --- src/command.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/command.c b/src/command.c index e1db30c..fdd4145 100644 --- a/src/command.c +++ b/src/command.c @@ -231,6 +231,7 @@ static bool cmd_jtag_scan(target *t, int argc, const char **argv) } cmd_targets(NULL, 0, NULL); + platform_target_clk_output_enable(false); morse(NULL, false); return true; } @@ -273,6 +274,7 @@ bool cmd_swdp_scan(target *t, int argc, const char **argv) } cmd_targets(NULL, 0, NULL); + platform_target_clk_output_enable(false); morse(NULL, false); return true; } @@ -308,6 +310,7 @@ bool cmd_auto_scan(target *t, int argc, const char **argv) if (devs > 0) break; + platform_target_clk_output_enable(false); platform_nrst_set_val(false); gdb_out("SW-DP scan failed!\n"); return false; @@ -328,6 +331,7 @@ bool cmd_auto_scan(target *t, int argc, const char **argv) } cmd_targets(NULL, 0, NULL); + platform_target_clk_output_enable(false); morse(NULL, false); return true; }