Skip to content

Commit cf45abf

Browse files
committed
[nrf fromlist] west: runners: nrfutil: Fix logging for Flashing
On nrf54h, nrfutil was silently omitting from the logs which files it is flashing. Before: Flashing file: /home/sebo/ncs/a/vendor_recovery/zephyr/zephyr.hex After: Flashing file: /home/sebo/ncs/a/vendor_recovery/zephyr/uicr.hex Flashing file: /home/sebo/ncs/a/vendor_recovery/zephyr/periphconf.hex Flashing file: /home/sebo/ncs/a/vendor_recovery/zephyr/zephyr.hex Ref: NCSDK-NONE Upstream PR #: 91826 Signed-off-by: Sebastian Bøe <[email protected]>
1 parent 9bcae70 commit cf45abf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/west_commands/runners/nrf_common.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,6 @@ def _get_erase_mode(self, mode):
360360

361361
def program_hex(self):
362362
# Get the command use to actually program self.hex_.
363-
self.logger.info(f'Flashing file: {self.hex_}')
364363

365364
# What type of erase/core arguments should we pass to the tool?
366365
core = self._get_core()
@@ -491,6 +490,8 @@ def _check_suit_starter(self, op):
491490
return file
492491

493492
def op_program(self, hex_file, erase, ext_mem_erase, defer=False, core=None):
493+
self.logger.info(f'Flashing file: {hex_file}')
494+
494495
args = self._op_program(hex_file, erase, ext_mem_erase)
495496
self.exec_op('program', defer, core, **args)
496497

0 commit comments

Comments
 (0)