From 55a5fc263bc06e7f45cac1a834661cd0d6a6e1ec Mon Sep 17 00:00:00 2001 From: Antonio Paolillo Date: Fri, 13 Mar 2026 08:39:32 +0100 Subject: [PATCH] flasher/openocd: Make the address optional Signed-off-by: Antonio Paolillo --- benchkit/helpers/flasher/openocd.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/benchkit/helpers/flasher/openocd.py b/benchkit/helpers/flasher/openocd.py index 6c6da155..c9a228b0 100644 --- a/benchkit/helpers/flasher/openocd.py +++ b/benchkit/helpers/flasher/openocd.py @@ -70,7 +70,7 @@ def platform(self) -> Platform: def flash( self, bin: pathlib.Path, - addr: str, + addr: str = "", ) -> None: """ Flash the firmware onto the board via OpenOCD. @@ -91,7 +91,7 @@ def reset(self) -> None: Reset the board via OpenOCD. """ self.platform.comm.shell( - command=(f"{self.__cmd_prefix} " '-c "init" ' '-c "reset" ' '-c "exit"'), + command=f"{self.__cmd_prefix} " '-c "init" ' '-c "reset" ' '-c "exit"', print_output=False, print_input=True, )