File tree Expand file tree Collapse file tree 1 file changed +3
-23
lines changed
scripts/west_commands/runners Expand file tree Collapse file tree 1 file changed +3
-23
lines changed Original file line number Diff line number Diff line change @@ -369,9 +369,9 @@ def program_hex(self):
369
369
if self .family in ('nrf54h' , 'nrf92' ):
370
370
erase_arg = 'ERASE_NONE'
371
371
372
- regtool_generated_uicr = self .build_conf .getboolean ('CONFIG_NRF_REGTOOL_GENERATE_UICR' )
372
+ generated_uicr = self .build_conf .getboolean ('CONFIG_NRF_REGTOOL_GENERATE_UICR' )
373
373
374
- if regtool_generated_uicr and not self .hex_get_uicrs ().get (core ):
374
+ if generated_uicr and not self .hex_get_uicrs ().get (core ):
375
375
raise RuntimeError (
376
376
f"Expected a UICR to be contained in: { self .hex_ } \n "
377
377
"Please ensure that the correct version of nrf-regtool is "
@@ -434,27 +434,7 @@ def program_hex(self):
434
434
core = 'Application' ,
435
435
)
436
436
437
- if self .build_conf .getboolean ("CONFIG_NRF_HALTIUM_GENERATE_UICR" ):
438
- zephyr_build_dir = Path (self .cfg .build_dir ) / 'zephyr'
439
-
440
- self .op_program (
441
- str (zephyr_build_dir / 'uicr.hex' ),
442
- 'ERASE_NONE' ,
443
- None ,
444
- defer = True ,
445
- core = 'Application' ,
446
- )
447
-
448
- if self .build_conf .getboolean ("CONFIG_NRF_HALTIUM_UICR_PERIPHCONF" ):
449
- self .op_program (
450
- str (zephyr_build_dir / 'periphconf.hex' ),
451
- 'ERASE_NONE' ,
452
- None ,
453
- defer = True ,
454
- core = 'Application' ,
455
- )
456
-
457
- if not self .erase and regtool_generated_uicr :
437
+ if not self .erase and generated_uicr :
458
438
self .exec_op ('erase' , core = core , kind = 'uicr' )
459
439
else :
460
440
if self .erase :
You can’t perform that action at this time.
0 commit comments