Parameters

nRF Util

tags
nRF Util

The following table describes parameters specific to the erase subcommand:

Parameter Description Comments
--all Erase all user available internal programmable memory and the UICR. The command can be narrowed down to a specific --core. - If no parameters are specified, the erase subcommand implicitly uses --all by default.
- Cannot be combined with --pages.
--uicr Erase the UICR. Cannot be combined with --all or --pages.
--pages <START_ADDRESS[-END_ADDRESS]> Erase memory starting at START_ADDRESS and ending at END_ADDRESS. - The END_ADDRESS is not included in the erase.
- The memory is erased by pages, either by flash pages or by an arbitrarily defined page size (nRF54L and nRF54H).
- If the END_ADDRESS is not specified, only one memory page is erased.
- Cannot be combined with --all.
--all-external Erase all external flash. - Requires an external flash configuration. See Programming external memory.
- Requires using the application core to erase.
--core <CORE> Select a specific core to use for the erase operation (application, network, secure, etc.). Defaults to application.