ST STM32F2 Series User Manual page 33

Hide thumbs Also See for STM32F2 Series:
Table of Contents

Advertisement

SM CODE
Detailed implementation
Error reporting
Fault detection time
Addressed fault model
Dependency on MCU
configuration
Initialization
Periodicity
Test for the diagnostic
Multiple faults protection
Recommendations and
known limitations
UM1845 - Rev 4
CAN_SM_2
This method aims to protect the communication between a peripheral and his external counterpart establishing
a kind of "protected" channel. The aim is to specifically address communication failure modes as reported in
IEC61508:2, 7.4.11.1.
Implementation guidelines are the following:
Data packet must be protected (encapsulated) by an information redundancy check, like for instance a
CRC checksum computed over the packet and added to payload. Checksum encoding capability must
be robust enough to guarantee at least 90% probability of detection for a single bit flip in the data packet.
Additional field added in payload reporting an unique identification of sender or receiver and an unique
increasing sequence packet number
Timing monitoring of the message exchange (for example check the message arrival within the expected
time window), detecting therefore missed message arrival conditions
Application software must verify before consuming data packet its consistency (CRC check), its
legitimacy (sender or receiver) and the sequence correctness (sequence number check, no packets lost)
Depends on implementation
Depends on implementation
Permanent and Transient
None
Depends on implementation
On demand
Not needed
CPU_SM_0: periodical core self-test software
Important note: it is assumed that the remote CAN counterpart has an equivalent capability of performing the
checks described.
A major overlap between the requirements of this method and the implementation of complex communication
software protocols can exists. Due to large adoption of these protocols in industrial applications, optimizations
can be possible
Description of hardware and software diagnostics
UM1845
page 33/108

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the STM32F2 Series and is the answer not in the manual?

Questions and answers

Table of Contents