From 475042c85c2455fbf9a261e0c01657c9c424c683 Mon Sep 17 00:00:00 2001 From: Jeremy Shen Date: Thu, 11 Jun 2026 14:48:45 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix:=20JTAG=20reboot=20'Already?= =?UTF-8?q?=20running'=20error=20after=20rst=20-system?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit rst -system inherently resumes ARM execution on Zynq. The subsequent 'con' command fails with 'Already running' because the core is already executing after system reset. Fix: wrap 'con' in 'catch {}' — if core is already running the error is silently caught; if stopped, con resumes it. xsct exits 0 (success) in both cases. --- src/reboot_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/reboot_manager.py b/src/reboot_manager.py index d9e8676..9ca6fc4 100644 --- a/src/reboot_manager.py +++ b/src/reboot_manager.py @@ -214,7 +214,7 @@ rst -system after 1500 puts "INFO: Resuming ARM execution..." -con +catch { con } puts "INFO: System reset complete — disconnecting..." disconnect