Lines Matching +full:super +full:- +full:speed

2 # SPDX-License-Identifier: Apache-2.0
30 speed: int = 16000 variable in NXPS32DebugProbeConfig
37 """Runner front-end for NXP S32 Debug Probe."""
47 tool_opt: list[str] | None = None) -> None:
48 super().__init__(runner_cfg)
66 def name(cls) -> str:
70 def capabilities(cls) -> RunnerCaps:
75 def dev_id_help(cls) -> str:
81 def tool_opt_help(cls) -> str:
86 def do_add_parser(cls, parser: argparse.ArgumentParser) -> None:
87 parser.add_argument('--core-name',
90 parser.add_argument('--soc-name',
93 parser.add_argument('--soc-family-name',
96 parser.add_argument('--start-all-cores',
100 parser.add_argument('--s32ds-path',
104 parser.add_argument('--server-port',
108 parser.add_argument('--speed',
109 default=NXPS32DebugProbeConfig.speed,
111 help='JTAG interface speed')
112 parser.add_argument('--remote-timeout',
118 def do_create(cls, cfg: RunnerConfig, args: argparse.Namespace) -> 'NXPS32DebugProbeRunner':
121 speed=args.speed,
129 def find_usb_probes() -> list[str]:
132 # to avoid bloating this runner with third-party dependencies that often
134 macaddr_pattern = r'(?:[0-9a-f]{2}[:]){5}[0-9a-f]{2}'
136 cmd = f'pnputil /enum-devices /connected /class "{NXP_S32DBG_USB_CLASS}"'
139 cmd = f'lsusb -v -d {NXP_S32DBG_USB_VID:x}:{NXP_S32DBG_USB_PID:x}'
144 out = outb.decode('utf-8').strip().lower()
155 def select_probe(cls) -> str:
178 prompt = f'Please select one with desired serial number (1-{len(probes_snr)}): '
188 return probes_snr[value - 1]
191 def runtime_environment(self) -> dict[str, str] | None:
198 'PYTHONPATH': f'{python_lib}{os.pathsep}{python_lib / "site-packages"}'
204 def script_globals(self) -> dict[str, str | int | None]:
208 '_JTAG_SPEED': self.probe_cfg.speed,
221 def server_commands(self) -> list[str]:
225 cmd = [server_exec, '-p', str(self.probe_cfg.server_port)]
228 def client_commands(self) -> list[str]:
231 client_exec_name = 'arm-none-eabi-gdb-py'
233 client_exec_name = 'aarch64-none-elf-gdb-py'
237 client_exec = str(self.s32ds_path / 'S32DS' / 'tools' / 'gdb-arm'
238 / 'arm32-eabi' / 'bin' / client_exec_name)
242 def get_script(self, name: str) -> Path:
256 def do_run(self, command: str, **kwargs) -> None:
283 def do_attach_debug(self, command: str, **kwargs) -> None:
295 # load platform-specific debugger script
318 gdb_cmds.write_text('\n'.join(gdb_script), encoding='utf-8')
319 self.logger.debug(gdb_cmds.read_text(encoding='utf-8'))
323 client_cmd.extend(['-x', gdb_cmds.as_posix()])
328 def do_debugserver(self, **kwargs) -> None: