NSPRIV=B_0x0, SPRIV=B_0x0
FLASH privilege configuration register
SPRIV | Privileged protection for secure registers This bit can be accessed only when TrustZone is enabled (TZEN = 1). This bit can be read by both privileged or unprivileged, secure and non-secure access. The SPRIV bit can be written only by a secure privileged access. A non-secure write access on SPRIV bit is ignored. A secure unprivileged write access on SPRIV bit is ignored. 0 (B_0x0): Secure Flash registers can be read and written by privileged or unprivileged access. 1 (B_0x1): Secure Flash registers can be read and written by privileged access only. |
NSPRIV | Privileged protection for non-secure registers This bit can be read by both privileged or unprivileged, secure and non-secure access. The NSPRIV bit can be written by a secure or non-secure privileged access. A secure or non-secure unprivileged write access on NSPRIV bit is ignored. 0 (B_0x0): Non-secure Flash registers can be read and written by privileged or unprivileged access. 1 (B_0x1): Non-secure Flash registers can be read and written by privileged access only. |