EasyManua.ls Logo

ST STM32F2 Series - EXTI Controller; Table 30. NVIC_SM_0; Table 31. NVIC_SM_1

ST STM32F2 Series
108 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
3.6.5 EXTI controller
Table 30. NVIC_SM_0
SM CODE NVIC_SM_0
Description Periodical read-back of configuration registers
Ownership End user
Detailed implementation
This test is implemented by executing a periodical check of the configuration registers for a system peripheral
against its expected value. Expected values are previously stored in RAM and adequately updated after each
configuration change. The method mainly addresses transient faults affecting the configuration registers, by
detecting bit flips in the registers contents. It addresses also permanent faults on registers because it is
executed at least one time within PST after a peripheral update.
Method must be implemented to any configuration register whose contents are able to interfere with NVIC or
EXTI behavior in case of incorrect settings. Check includes NVIC vector table.
According the state of the art automotive safety standard ISO26262, this method can achieve high levels of
Diagnostic Coverage (refer to ISO26262:5, Table D.4)
An alternative valid implementation requiring less space in SRAM can be realized on the basis of signature
concept:
• Peripheral registers to be checked are read in a row, computing a CRC checksum (use of hardware
CRC is encouraged)
• Obtained signature is compared with the golden value (computed in the same way after each register
update, and stored in SRAM)
• Coherence between signatures is checked by the application software – signature mismatch is
considered as failure detection
Error reporting Depends on implementation
Fault detection time Depends on implementation
Addressed fault model Permanent and Transient
Dependency on MCU
configuration
None
Initialization Values of configuration registers must be read after the boot before executing the first check
Periodicity Periodic
Test for the diagnostic Not needed
Multiple faults protection CPU_SM_0: periodical core self-test software
Recommendations and known
limitations
This method addresses only failures affecting configuration registers, and not peripheral core logic or external
interface.
Attention must be paid to registers containing mixed combination of configuration and status bits. Mask must
be used before saving register contents affecting signature, and related checks, to avoid false positive
detections
Table 31. NVIC_SM_1
SM CODE NVIC_SM_1
Description Expected and unexpected interrupt check
Ownership End user
UM1845
Description of hardware and software diagnostics
UM1845 - Rev 4
page 27/108

Table of Contents