Use the standard Serial Wire Debug (SWD)
Arm®
CoreSightâ„¢
Debug Access Port (DAP) protocol to erase all pages.
-
If Secure Access Port Protection (SECUREAPPROTECT) is enabled, erase all is
disabled. To erase, see either Erasing page by page or Erasing all through CTRL-AP to disable SECUREAPPROTECT.
-
Set the CONFIG register of the Non-volatile Memory Controller (NVMC) to WEN.Een by writing
0x00000002 to the following addresses:
- Application core - 0x50039504
- Network core - 41080504
This configures the non-volatile memory for erasing.
-
Read the READY register of the NVMC until
the value is 0x00000001. Read the following
addresses:
- Application core - 0x50039400
- Network core - 0x41080400
When this value is read, the NVMC is ready and not currently performing any
operations.
-
Set ERASEALL
register of the NVMC to ERASEALL.Erase by writing
0x00000001 to the following addresses:
- Application core - 0x5003950C
- Network core - 4108050C
-
Read the READY register of the NVMC until
the value is 0x00000001 before continuing to ensure the erase all
operation has completed. Read the following
addresses:
- Application core - 0x50039400
- Network core - 0x41080400
-
Set the CONFIG register of the NVMC to
WEN.Ren by writing 0x00000000 to following
addresses:
- Application core - 0x50039504
- Network core - 41080504
This configures the non-volatile memory back to read-only.