File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
scripts/west_commands/runners Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -270,11 +270,6 @@ def program_hex(self):
270270 if self .erase :
271271 self .exec_op ('erase' , core = 'NRFDL_DEVICE_CORE_APPLICATION' )
272272 self .exec_op ('erase' , core = 'NRFDL_DEVICE_CORE_NETWORK' )
273- # A reset is needed if repartitioning the device memory
274- self .reset_target ()
275- else :
276- # Ensure that firmware is not executing while erasing/programming
277- self .exec_op ("reset" , option = "RESET_VIA_SECDOM" )
278273
279274 # Manage SUIT artifacts.
280275 # This logic should be executed only once per build.
@@ -326,8 +321,16 @@ def program_hex(self):
326321 )
327322
328323 if cpuapp :
324+ if not self .erase and self .build_conf .getboolean ('CONFIG_NRF_REGTOOL_GENERATE_UICR' ):
325+ self .exec_op ('erase' , core = 'NRFDL_DEVICE_CORE_APPLICATION' ,
326+ option = {'chip_erase_mode' : 'ERASE_UICR' ,
327+ 'qspi_erase_mode' : 'ERASE_NONE' })
329328 core = 'NRFDL_DEVICE_CORE_APPLICATION'
330329 elif cpurad :
330+ if not self .erase and self .build_conf .getboolean ('CONFIG_NRF_REGTOOL_GENERATE_UICR' ):
331+ self .exec_op ('erase' , core = 'NRFDL_DEVICE_CORE_NETWORK' ,
332+ option = {'chip_erase_mode' : 'ERASE_UICR' ,
333+ 'qspi_erase_mode' : 'ERASE_NONE' })
331334 core = 'NRFDL_DEVICE_CORE_NETWORK'
332335 else :
333336 if self .erase :
You can’t perform that action at this time.
0 commit comments