For some peripherals, the security configuration can change from secure to non-secure, or vice versa. Care must be taken when changing the security configuration of a peripheral, to prevent security information leakage and ensure correct operation.
The following sequence should be followed, where applicable, when configuring and changing the security settings of a peripheral in the SPU — System protection unit.
- Stop peripheral operation.
- Disable the peripheral.
- Remove pin connections.
- Disable DPPI connections.
- Clear sensitive registers (e.g. writing back default values).
- Change peripheral security setting in the SPU — System protection unit.
- Re-enable the peripheral.