Examples

nRF Util

tags
nRF Util

Below are several common use cases for the erase command:

  • Erase all programmable memory and UICR on the application core:

    nrfutil device erase --all
    
  • Erase all programmable memory and UICR (equivalent to --all):

    nrfutil device erase
    
  • Erase a specific flash page starting at address 0x10000:

    nrfutil device erase --pages 0x10000
    
  • Erase flash pages from address 0x10000 to 0x20000:

    nrfutil device erase --pages 0x10000-0x20000
    
  • Erase all programmable memory on the network core:

    nrfutil device erase --all --core network
    
  • Erase a specific device by serial number:

    nrfutil device erase --all --serial-number 123456789
    
  • Erase all external flash:

    nrfutil device erase --all-external
    
  • Erase all programmable memory and the UICR on the application core, and all external flash:

    nrfutil device erase --all --all-external