Lines Matching full:openocd
33 …message = ('Please check if another process uses the mentioned ports. OpenOCD already running, per…
34 …'Please list all processes to check if OpenOCD is already running; if so, terminate it before star…
41 if 'openocd' in processes and processes['openocd'] is not None:
42 p = processes['openocd']
44 # watch OpenOCD (for 5x500ms) to check if it hasn't terminated or outputs an error
47 print('OpenOCD exited with {}'.format(p.poll()))
54 # expect OpenOCD has started successfully - stop watching
59 # OpenOCD exited or error message detected -> print possible output and terminate
60 …raise FatalError('Action "{}" failed due to errors in OpenOCD:\n{}'.format(target, _check_for_comm…
78 if target == 'openocd':
115 _terminate_async_target('openocd')
120 """ Deal with asynchronous targets, such as openocd running in background """
122 for target in ['openocd', 'gdbgui']:
143 _terminate_async_target('openocd')
154 def openocd(action, ctx, args, openocd_scripts, openocd_commands): function
156 Execute openocd as external tool
171 …print('Note: OpenOCD cfg not found (via env variable OPENOCD_COMMANDS nor as a --openocd-commands …
172 'OpenOCD arguments default to: "{}"'.format(openocd_arguments))
173 …# script directory is taken from the environment by OpenOCD, update only if command line arguments…
177 args = ['openocd'] + shlex.split(openocd_arguments)
184 …raise FatalError('Error starting openocd. Please make sure it is installed and is present in execu…
186 processes['openocd'] = process
189 print('OpenOCD started as a background task {}'.format(process.pid))
230 debug_targets = any([task.name in ('openocd', 'gdbgui') for task in tasks])
235 move_to_front('openocd') # always 1st
244 if any([task.name == 'openocd' for task in tasks]):
298 … # Valid scenario: watch_openocd task won't be in the list if openocd not started from idf.py
302 'names': ['--require-openocd', '--require_openocd'],
304 ('Fail this target if openocd (this targets dependency) failed.\n'),
316 'openocd': {
317 'callback': openocd,
318 'help': 'Run openocd from current path',
321 'names': ['--openocd-scripts', '--openocd_scripts'],
323 ('Script directory for openocd cfg files.\n'),
328 'names': ['--openocd-commands', '--openocd_commands'],
330 ('Command line arguments for openocd.\n'),