EasyManua.ls Logo

ST STM32F2 Series - Table 10. CPU_SM_5; Table 9. CPU_SM_4

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...
SM CODE CPU_SM_3
Error reporting High-priority interrupt event
Fault detection time Depending on implementation, refer to functional documentation
Addressed fault model Permanent and Transient
Dependency on MCU configuration None
Initialization None
Periodicity Continuous
Test for the diagnostic
It is possible to write a test procedure to verify the generation of the HardFault exception; anyway,
given the expected minor contribution in terms of hardware random-failure detection, such
implementation is not recommended.
Multiple faults protection CPU_SM_0: periodical core self-test software
Recommendations and known
limitations
None
Table 9. CPU_SM_4
SM CODE CPU_SM_4
Description Stack hardening for application software
Ownership End user
Detailed implementation
The stack hardening method is required to address faults (mainly transient) affecting CPU register bank.
This method is based on source code modification, introducing information redundancy in register-passed
information to called functions.
The guidelines for the implementation of the method are the following:
• To pass also a redundant copy of the passed parameters values (possibly inverted) and to execute a
coherence check in the function.
• To pass also a redundant copy of the passed pointers and to execute a coherence check in the
function.
• For parameters that are not protected by redundancy, to implement defensive programming
techniques (plausibility check of passed values). For example enumerated fields are to be checked
for consistency.
Error reporting Depends on implementation
Fault detection time Depends on implementation
Addressed fault model Permanent and Transient
Dependency on MCU
configuration
None
Initialization Depends on implementation
Periodicity On demand
Test for the diagnostic Not needed
Multiple faults protection CPU_SM_0: periodical core self-test software
Recommendations and known
limitations
This method partially overlaps with defensive programming techniques required by IEC61508 for software
development. Therefore in presence of application software qualified for safety integrity greater or equal to
SC2, optimizations are possible
Table 10. CPU_SM_5
SM CODE CPU_SM_5
Description External watchdog
Ownership End user
UM1845
Description of hardware and software diagnostics
UM1845 - Rev 4
page 15/108

Table of Contents