diff --git a/scripts/west_commands/runners/linkserver.py b/scripts/west_commands/runners/linkserver.py index 9749207698cd6c..339fe2a347917e 100644 --- a/scripts/west_commands/runners/linkserver.py +++ b/scripts/west_commands/runners/linkserver.py @@ -188,7 +188,7 @@ def flash(self, **kwargs): self.do_erase() # Use .elf, .hex or .bin, preferring .hex over .elf over .bin - if self.supports_hex and self.hex_name is not None and os.path.isfile(self.hex_name): + if self.supports_hex() and self.hex_name is not None and os.path.isfile(self.hex_name): flash_cmd = (["load", self.hex_name]) elif self.elf_name is not None and os.path.isfile(self.elf_name): flash_cmd = (["load", self.elf_name])