From 99e684d4939645ad0ab62896c80bf1c40675d668 Mon Sep 17 00:00:00 2001 From: Maska989 Date: Wed, 15 Nov 2023 15:12:14 +0100 Subject: [PATCH] trunner: armv7a9: add wait for smt2 device JIRA: CI-382 --- trunner/target/armv7a9.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/trunner/target/armv7a9.py b/trunner/target/armv7a9.py index 43f41cce..d2e1e9d3 100644 --- a/trunner/target/armv7a9.py +++ b/trunner/target/armv7a9.py @@ -19,7 +19,7 @@ ) from trunner.harness import TerminalHarness from trunner.host import Host -from trunner.tools import Phoenixd, OpenocdGdbServer +from trunner.tools import Phoenixd, OpenocdGdbServer, wait_for_vid_pid from trunner.types import TestResult, TestOptions from .base import TargetBase, find_port @@ -53,6 +53,9 @@ def __init__(self, dut: Dut, script: str, cwd: Optional[str] = None): def __call__(self): """Loads plo image to RAM using gdb.""" + # after reboot we need to wait for smt2 device + wait_for_vid_pid(vid=0x0403, pid=0x6014, timeout=5) + with self.gdbserver.run(): try: subprocess.run(