Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions scripts/west_commands/runners/nrf_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,12 @@ def program_hex(self):

self.op_program(self.hex_, erase_arg, ext_mem_erase_opt, defer=True, core=core)

# provision relevant slots if prot_ram_inv_slots.json exists in the build directory
prot_ram_inv_slots = Path(self.cfg.build_dir).parent / 'prot_ram_inv_slots.json'
if prot_ram_inv_slots.exists():
self.logger.info(f'Provisioning key file: {prot_ram_inv_slots}')
self.exec_op('x-provision-keys', keyfile=str(prot_ram_inv_slots), defer=True)

if self.erase or self.recover:
# provision keys if keyfile.json exists in the build directory
keyfile = Path(self.cfg.build_dir).parent / 'keyfile.json'
Expand Down
Loading