From a554e09e7c0703e3289411da3db556df718b9c1e Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Thu, 21 Oct 2021 17:08:49 -0700 Subject: Properly handle held-in-reset targets. (#654) * Properly handle held-in-reset targets. 1. Let OpenOCD continue into some pre-existing code that will periodically call examine() until it passes. 2. Fix crash in riscv_openocd_poll() When SMP is configured, it's not guaranteed that all targets have been examine()d when poll is called on one of them. Change-Id: Ic6c1d217dc766ea69b67bb2e9a4898e37ee94927 Signed-off-by: Tim Newsome * Actually poll for examine at least every 5s. That's what the comment says the code is trying to do. Change-Id: I34ff909a98f8aebb3c514e0f3ee403be7699c094 Signed-off-by: Tim Newsome * Compact this error message a bit. Reduces clutter when some targets haven't been properly examined yet. Change-Id: Id865f191f0fbb48abece8b8558cc9fa2041a26df Signed-off-by: Tim Newsome --- tools/filter_openocd_log.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tools') diff --git a/tools/filter_openocd_log.py b/tools/filter_openocd_log.py index da17b17..cd38efd 100755 --- a/tools/filter_openocd_log.py +++ b/tools/filter_openocd_log.py @@ -106,7 +106,7 @@ def main(args): formatter_class=argparse.ArgumentDefaultsHelpFormatter) parser.add_argument('file', nargs='*', help='input file') parser.add_argument('-o', '--output', help='output file', default=sys.stdout) - parser.add_argument('-w', '--window', type=int, default=100, + parser.add_argument('-w', '--window', type=int, default=400, help='number of lines to consider when looking for repetitions') args = parser.parse_args(args) -- cgit v1.1