Skip to content

Commit

Permalink
trunner: armv7a9: add wait for smt2 device
Browse files Browse the repository at this point in the history
JIRA: CI-382
  • Loading branch information
maska989 authored and damianloew committed Nov 29, 2023
1 parent 598e4c3 commit 99e684d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion trunner/target/armv7a9.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 99e684d

Please sign in to comment.