|
|
@ -170,12 +170,11 @@ class BlackMagicProbeRunner(ZephyrBinaryRunner): |
|
|
|
|
|
|
|
|
|
|
|
command = (self.gdb + |
|
|
|
command = (self.gdb + |
|
|
|
['-ex', "set confirm off", |
|
|
|
['-ex', "set confirm off", |
|
|
|
'-ex', "target extended-remote {}".format( |
|
|
|
'-ex', f"target extended-remote {self.gdb_serial}"] + |
|
|
|
self.gdb_serial)] + |
|
|
|
|
|
|
|
self.connect_rst_enable_arg + |
|
|
|
self.connect_rst_enable_arg + |
|
|
|
['-ex', "monitor swdp_scan", |
|
|
|
['-ex', "monitor swdp_scan", |
|
|
|
'-ex', "attach 1", |
|
|
|
'-ex', "attach 1", |
|
|
|
'-ex', "load {}".format(flash_file), |
|
|
|
'-ex', f"load {flash_file}", |
|
|
|
'-ex', "kill", |
|
|
|
'-ex', "kill", |
|
|
|
'-ex', "quit", |
|
|
|
'-ex', "quit", |
|
|
|
'-silent']) |
|
|
|
'-silent']) |
|
|
@ -192,20 +191,18 @@ class BlackMagicProbeRunner(ZephyrBinaryRunner): |
|
|
|
if self.elf_file is None: |
|
|
|
if self.elf_file is None: |
|
|
|
command = (self.gdb + |
|
|
|
command = (self.gdb + |
|
|
|
['-ex', "set confirm off", |
|
|
|
['-ex', "set confirm off", |
|
|
|
'-ex', "target extended-remote {}".format( |
|
|
|
'-ex', f"target extended-remote {self.gdb_serial}"] + |
|
|
|
self.gdb_serial)] + |
|
|
|
|
|
|
|
self.connect_rst_disable_arg + |
|
|
|
self.connect_rst_disable_arg + |
|
|
|
['-ex', "monitor swdp_scan", |
|
|
|
['-ex', "monitor swdp_scan", |
|
|
|
'-ex', "attach 1"]) |
|
|
|
'-ex', "attach 1"]) |
|
|
|
else: |
|
|
|
else: |
|
|
|
command = (self.gdb + |
|
|
|
command = (self.gdb + |
|
|
|
['-ex', "set confirm off", |
|
|
|
['-ex', "set confirm off", |
|
|
|
'-ex', "target extended-remote {}".format( |
|
|
|
'-ex', f"target extended-remote {self.gdb_serial}"] + |
|
|
|
self.gdb_serial)] + |
|
|
|
|
|
|
|
self.connect_rst_disable_arg + |
|
|
|
self.connect_rst_disable_arg + |
|
|
|
['-ex', "monitor swdp_scan", |
|
|
|
['-ex', "monitor swdp_scan", |
|
|
|
'-ex', "attach 1", |
|
|
|
'-ex', "attach 1", |
|
|
|
'-ex', "file {}".format(self.elf_file)]) |
|
|
|
'-ex', f"file {self.elf_file}"]) |
|
|
|
self.check_call_ignore_sigint(command) |
|
|
|
self.check_call_ignore_sigint(command) |
|
|
|
|
|
|
|
|
|
|
|
def bmp_debug(self, command, **kwargs): |
|
|
|
def bmp_debug(self, command, **kwargs): |
|
|
@ -213,13 +210,12 @@ class BlackMagicProbeRunner(ZephyrBinaryRunner): |
|
|
|
raise ValueError('Cannot debug; elf file is missing') |
|
|
|
raise ValueError('Cannot debug; elf file is missing') |
|
|
|
command = (self.gdb + |
|
|
|
command = (self.gdb + |
|
|
|
['-ex', "set confirm off", |
|
|
|
['-ex', "set confirm off", |
|
|
|
'-ex', "target extended-remote {}".format( |
|
|
|
'-ex', f"target extended-remote {self.gdb_serial}"] + |
|
|
|
self.gdb_serial)] + |
|
|
|
|
|
|
|
self.connect_rst_enable_arg + |
|
|
|
self.connect_rst_enable_arg + |
|
|
|
['-ex', "monitor swdp_scan", |
|
|
|
['-ex', "monitor swdp_scan", |
|
|
|
'-ex', "attach 1", |
|
|
|
'-ex', "attach 1", |
|
|
|
'-ex', "file {}".format(self.elf_file), |
|
|
|
'-ex', f"file {self.elf_file}", |
|
|
|
'-ex', "load {}".format(self.elf_file)]) |
|
|
|
'-ex', f"load {self.elf_file}"]) |
|
|
|
self.check_call_ignore_sigint(command) |
|
|
|
self.check_call_ignore_sigint(command) |
|
|
|
|
|
|
|
|
|
|
|
def do_run(self, command, **kwargs): |
|
|
|
def do_run(self, command, **kwargs): |
|
|
|