Secure/non-secure peripherals

nRF5340 Product Specification

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.

  1. Stop peripheral operation.
  2. Disable the peripheral.
  3. Remove pin connections.
  4. Disable DPPI connections.
  5. Clear sensitive registers (e.g. writing back default values).
  6. Change peripheral security setting in the SPU — System protection unit.
  7. Re-enable the peripheral.