3.3.17 Security and Safety Analysis and Reports

Several types of checks are performed when the SMC is reading or writing an external memory.

The internal sequencer of the SMC is monitored for integrity and if an abnormal state is detected, the flag SMC_WPSR.SEQE is set. This flag is not set under normal operating conditions.

The software accesses to the SMC are monitored and if an incorrect access is performed, the flag SMC_WPSR.SWE is set. The type of incorrect/abnormal software access is reported in the SMC_WPSR.SWETYP field (see SMC Write Protection Status Register for details). The flags SEQE, SWE and WPVS are automatically cleared when SMC_WPSR is read.

If one of these flags is set, an interrupt can be triggered if the SMC_SRIER.SRIE bit is ‘1’.