Lines Matching +full:class +full:- +full:rev

3 # SPDX-License-Identifier: Apache-2.0
20 class IntelCycloneVBinaryRunner(ZephyrBinaryRunner):
21 '''Runner front-end for openocd.'''
57 search_args.append('-s')
63 search_args.append('-s')
68 search_args.extend(['-s', p])
85 self.tui_arg = ['-tui'] if tui else []
86 self.halt_arg = [] if no_halt else ['-c halt']
87 self.init_arg = [] if no_init else ['-c init']
88 self.targets_arg = [] if no_targets else ['-c targets']
89 self.serial = ['-c set _ZEPHYR_BOARD_SERIAL ' + serial] if serial else []
92 self.load_arg = [] if no_load else ['-ex', 'load']
105 parser.add_argument('--config', action='append',
108 parser.add_argument('--serial', default="",
111 parser.add_argument('--use-elf', default=False, action='store_true',
114 parser.add_argument('--cmd-pre-init', action='append',
117 parser.add_argument('--cmd-reset-halt', default=DEFAULT_OPENOCD_RESET_HALT_CMD,
120 parser.add_argument('--cmd-pre-load', action='append',
123 parser.add_argument('--cmd-load',
126 parser.add_argument('--cmd-verify',
128 parser.add_argument('--cmd-post-verify', action='append',
131 parser.add_argument('--verify', action='store_true',
133 parser.add_argument('--verify-only', action='store_true',
137 parser.add_argument('--tui', default=False, action='store_true',
138 help='if given, GDB uses -tui')
139 parser.add_argument('--tcl-port', default=DEFAULT_OPENOCD_TCL_PORT,
141 parser.add_argument('--telnet-port',
144 parser.add_argument('--gdb-port', default=DEFAULT_OPENOCD_GDB_PORT,
146 parser.add_argument('--gdb-init', action='append',
148 parser.add_argument('--no-halt', action='store_true',
150 parser.add_argument('--no-init', action='store_true',
152 parser.add_argument('--no-targets', action='store_true',
154 parser.add_argument('--no-load', action='store_true',
197 out = self.check_output([self.openocd_cmd[0], '--version'],
200 version_match = re.search(r"Open On-Chip Debugger (\d+.\d+.\d+)", out)
207 (major, minor, rev) = self.read_version()
208 return (major, minor, rev) > (0, 11, 0)
216 self.cfg_cmd.append('-f')
232 pre_init_cmd.append("-c")
234 pre_init_cmd.append("-q")
237 pre_init_cmd.append("-c")
238 pre_init_cmd.append("$_TARGETNAME configure -rtos Zephyr")
242 temp_str = '--cd=' + os.environ.get('ZEPHYR_BASE') #Go to Zephyr base Dir
245 [temp_str,'-ex', f'target extended-remote localhost:{self.gdb_port}' , '-batch'])
248 ['-ex', f'target extended-remote localhost:{self.gdb_port}' , '-batch'])
252 gdb_cmd.append("-ex")
254 gdb_cmd2.append("-ex")
259 gdb_cmd.append("-x")
264 gdb_cmd2.append("-x")
288 pre_init_cmd.append("-c")
292 pre_init_cmd.append("-c")
293 pre_init_cmd.append("$_TARGETNAME configure -rtos Zephyr")
294 pre_init_cmd.append("-q")
300 ['-ex', f'target extended-remote :{self.gdb_port}',
301 self.elf_name, '-q'])
303 temp_str = '--cd=' + os.environ.get('ZEPHYR_BASE') #Go to Zephyr base Dir
307 [temp_str,'-ex', f'target extended-remote localhost:{self.gdb_port}' , '-batch'])
311 ['-ex', f'target extended-remote :{self.gdb_port}' , '-batch'])
316 gdb_cmd.append("-ex")
318 gdb_cmd2.append("-ex")
323 gdb_cmd.append("-x")
328 gdb_cmd2.append("-x")