16.3.12 Configuration Change Protection
This peripheral has registers under Configuration Change Protection (CCP). This is a security mechanism to avoid unintentional changes to the NVMCTRL settings. Before writing to these, a specific key must be written to the CPU.CCP register, followed by a write access to the protected bits within four CPU instructions.
Attempting to write to a protected register without following the appropriate CCP unlock sequence leaves the protected register unchanged and returns a Bus Error response on the data bus.
The following registers are under CCP:
| Register | Key |
|---|---|
| NVMCTRL.CTRLA | SPM |
| NVMCTRL.CTRLB | IOREG |
| NVMCTRL.CTRLC | IOREG |
| NVMCTRL.CTRLD | IOREG |
| NVMCTRL.INTFLAGSB | IOREG |
