Skip to content

Commit f96a007

Browse files
Wayne Renruuddw
authored andcommitted
scripts: bug fixes in arc.py for make flash
do some fixes to let make flash work correctly Signed-off-by: Wayne Ren <[email protected]>
1 parent c788f84 commit f96a007

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/support/runner/arc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ class EmStarterKitBinaryRunner(ZephyrBinaryRunner):
2323
# client to it to load the program, and running 'continue' within the
2424
# client to execute the application.
2525
#
26-
# TODO: exit immediately when flashing is done, leaving Zephyr running.
2726

2827
def __init__(self, board_dir, elf, gdb,
2928
openocd='openocd', search=None,
@@ -91,7 +90,8 @@ def flash_debug(self, command, **kwargs):
9190

9291
continue_arg = []
9392
if command == 'flash':
94-
continue_arg = ['-ex', 'c']
93+
continue_arg = ['-ex', 'set confirm off', '-ex', 'monitor resume',
94+
'-ex', 'quit']
9595

9696
gdb_cmd = (self.gdb_cmd +
9797
['-ex', 'target remote :{}'.format(self.gdb_port),

0 commit comments

Comments
 (0)