SM CODE LOCK_SM_0
Detailed implementation
The STM32L4 and STM32L4+ Series devices feature spread protection to prevent unintended
configuration changes for some peripherals and system registers (for example PVD_LOCK,
timers); the spread protection detects systematic faults in software application. The use of this
method is encouraged to enhance the end application robustness to systematic faults.
Error reporting Not generated (when locked, register overwrites are simply ignored).
Fault detection time Not applicable
Addressed fault model None (systematic only)
Dependency on Device configuration None
Initialization Depends on implementation
Periodicity Continuous
Test for the diagnostic Not applicable
Multiple-fault protection Not required
Recommendations and known limitations No DC associated because this test addresses systematic faults.
3.6.10 System configuration controller (SYSCFG)
Table 50. SYSCFG_SM_0
SM CODE SYSCFG_SM_0
Description Periodic read-back of configuration registers
Ownership End user
Detailed implementation
This method must be applied to system configuration controller configuration registers.
This method is strongly recommended to protect registers related to hardware diagnostics
activation and error reporting chain related features.
Detailed information on the implementation of this method can be found in
Section 3.6.14 Extended interrupt and events controller (EXTI).
Error reporting Refer to NVIC_SM_0
Fault detection time Refer to NVIC_SM_0
Addressed fault model Refer to NVIC_SM_0
Dependency on Device configuration Refer to NVIC_SM_0
Initialization Refer to NVIC_SM_0
Periodicity Refer to NVIC_SM_0
Test for the diagnostic Refer to NVIC_SM_0
Multiple-fault protection Refer to NVIC_SM_0
Recommendations and known limitations
This method is mainly overlapped by several other configuration register read-backs required
for other MCU peripherals. It is reported here for the sake of completeness.
Table 51. DIAG_SM_0
SM CODE DIAG_SM_0
Description Periodic read-back of hardware diagnostics configuration registers
Ownership End user
Detailed implementation
In STM32L4 and STM32L4+ Series, several hardware-based safety mechanisms are
available (those with the Ownership field set to ST). This method must be applied to any
configuration register related to diagnostic measure operations, including error reporting. End
user must therefore individuate configuration registers related to:
• hardware diagnostic enable
UM2305
Hardware and software diagnostics
UM2305 - Rev 10
page 34/110