AUTOSAR and Functional Safety PDF
AUTOSAR and Functional Safety PDF
AUTOSAR and Functional Safety PDF
2 8 Nov. 2011 Safetronic 2011 - Simon Frst - Functional Safety and AUTOSAR
AUTOSAR and Functional Safety
AUTOSAR Vision
components.
Ports
The communication is
channeled via the RTE. RTE VFB RTE
AUTOSAR
Infrastructure
The communication layer BSW BSW
layer.
Communication Bus
Communication Path
4 8 Nov. 2011 Safetronic 2011 - Simon Frst - Functional Safety and AUTOSAR
AUTOSAR and Functional Safety
Software Architecture AUTOSAR Defined Interfaces
Standardized
Interface Interface Interface
communication mechanisms, the
Interface
Complex
Operating
applications are decoupled from System
Device
Standardized Drivers
the underlying HW and Basic SW
Interface
by the RTE. This enables the Basic Software
Microcontroller
realization of re-usable Abstraction
application software ECU-Hardware
components.
Interfaces:
AUTOSAR Standard VFB & RTE BSW
Software Interface Software RTE relevant relevant relevant
Component
5 8 Nov. 2011 Safetronic 2011 - Simon Frst - Functional Safety and AUTOSAR
AUTOSAR and Functional Safety
Software Architecture: Software Abstraction inside the Infrastructure Architecture
The Basic Software Layers are further divided into functional groups.
Each functional group consist of multiple basic software modules.
Software
AUTOSAR AUTOSAR AUTOSAR AUTOSAR
Interface Interface Interface
..............
Memory Services
Interface
ECU-Hardware SPIHandler
Driver
EEPROM
Driver
Internal
Flash Driver
6 8 Nov. 2011 Safetronic 2011 - Simon Frst - Functional Safety and AUTOSAR
AUTOSAR and Functional Safety
Methodology and Templates: The AUTOSAR Meta Model
BSW Module
Template
M0: Realized System in the car
(Implements a real system) ECU Parameter
Def Template
7 8 Nov. 2011 Safetronic 2011 - Simon Frst - Functional Safety and AUTOSAR
AUTOSAR and Functional Safety
AUTOSAR Methodology Alternative Visualization
Component SW-C
Component API Implementation
API (e.g. app.h)
Generator
ECU Configuration
Description
Basic SW
Basic SW Other Basic
ModuleBasic
A extract
SW
System Module A extract SW Generator
of ECU
Module
Constraint ECU extract of ECU extract
A
of System configuration
of ECU
Description Decisions Decisions configuration
Configuration (e.g. scheduling) configuration
(e.g. mapping)
List of MCAL
implementations Generator
Information / Database (no files) of SW
components
Generation step: System per ECU
complex algorithm or engineering work
8 8 Nov. 2011 Safetronic 2011 - Simon Frst - Functional Safety and AUTOSAR
AUTOSAR and Functional Safety
Overview
9 8 Nov. 2011 Safetronic 2011 - Simon Frst - Functional Safety and AUTOSAR
AUTOSAR and Functional Safety
Approach of AUTOSAR with regard to Functional Safety.
ISO WD 26262
WPs & WGs Applications Safety Concepts
documents of WPs
BSW & RTE SRS Tools
Requirements on tools
Tools SWS and generation process Generation
Requirements on how to
develop AUTOSAR SW
and Tools
10 8 Nov. 2011 Safetronic 2011 - Simon Frst - Functional Safety and AUTOSAR
AUTOSAR and Functional Safety
Overview on Safety Mechanisms Supported by AUTOSAR
Built-in self test mechanisms for detecting hardware faults (testing and monitoring)
Run-time mechanisms for detecting software faults during the execution of software
Program flow monitoring
11 8 Nov. 2011 Safetronic 2011 - Simon Frst - Functional Safety and AUTOSAR
AUTOSAR and Functional Safety
Safety mechanisms for detecting errors.
12 8 Nov. 2011 Safetronic 2011 - Simon Frst - Functional Safety and AUTOSAR
AUTOSAR and Functional Safety
Run-time mechanisms for error handling
13 8 Nov. 2011 Safetronic 2011 - Simon Frst - Functional Safety and AUTOSAR
AUTOSAR and Functional Safety
Memory partitioning for Software-Components
ECU
all other hard- Services Communication
Abstraction
Standardized Standardized Standardized
ware resources Standardized
Inteface
Interface Interface Interface
Complex
Operating
Device
System
Drivers
Standardized
Interface
Basic Software Microcontroller
Abstraction
ECU-Hardware
14 8 Nov. 2011 Safetronic 2011 - Simon Frst - Functional Safety and AUTOSAR
AUTOSAR and Functional Safety
End-to-End communication protection (1/4)
E2E protection detects faults in data caused by both hardware and in software
Typical sources of
Libraries OS-Application 2 OS-Application 1
interferences, causing errors
detected by E2E protection:
Receiver 1 Sender
SW-related sources:
S1. Error in mostly generated
RTE,
S2. Error in partially generated
and partially hand-coded COM
S3. Error in network stack
S4. Error in generated IOC or
S1 OS
H3
AUTOSAR Runtime Environment (RTE)
HW-related sources:
H1. Microcontroller error during
System Services Memory Services Communication Services I/O Hardw are Abstraction CDD
core/partition switch
H2. Failure of HW network
S3 S2
H2. Network EMI
IOC
H3. Microcontroller failure
during context switch (partition)
or on the communication
Direct function between cores
call
Onboard Device Memory Hardware Communication Hardw are
Abstraction Abstraction Abstraction
S3
Receiver 2
H3 H4
Microcontroller 2
Microcontroller 1 / ECU 1 / ECU 2
15 8 Nov. 2011 Safetronic 2011 - Simon Frst - Functional Safety and AUTOSAR
AUTOSAR and Functional Safety
End-to-End communication protection (2/4)
Sender 1 Receiver 1
3 Call E2E protect on array E2E_P0x_Protect() 8 Call E2E check on array - E2E_P0xCheck()
4 Invoke RTE - RTE_Write() to transmit the data element 7 Invoke RTE read - RTE_Read() to get the data element
Libraries Libraries
5: RTE communication (intra or inter ECU), either through COM, IOC, or local in RTE
E2E E2E
Lib Lib
16 8 Nov. 2011 Safetronic 2011 - Simon Frst - Functional Safety and AUTOSAR
AUTOSAR and Functional Safety
End-to-End communication protection (3/4)
Protection of data exchanged over communication channels like FlexRay and CAN
Failure modes addressed as defined by ISO DIS 26262 for communication (repetition,
deletion, insertion, incorrect sequence, corruption, timing faults, addressing faults,
inconsistency, masquerading)
Three different protection mechanisms for data are used
CRC, counter, Data ID, timeout detection
Data ID included in to calculated CRC, but not sent
17 8 Nov. 2011 Safetronic 2011 - Simon Frst - Functional Safety and AUTOSAR
AUTOSAR and Functional Safety
End-to-End communication protection: future considerations (4/4)
Libraries
Communication Services
4. COM Signals
7. E2E_PXXProtect(&Config, &State,
(unit8*) IPduData) COM E2E
8. Execute E2E Library, wrte control fields E2E Lib COM 5. Serialize signals on I-PDU
(e.g. CRC, Counter) in IPduData
Callouts
9. Updated parameters State and IPduData
PDU Router
18 8 Nov. 2011 Safetronic 2011 - Simon Frst - Functional Safety and AUTOSAR
AUTOSAR and Functional Safety
Overview
19 8 Nov. 2011 Safetronic 2011 - Simon Frst - Functional Safety and AUTOSAR
AUTOSAR and Functional Safety
Technical safety concepts supported by AUTOSAR
20 8 Nov. 2011 Safetronic 2011 - Simon Frst - Functional Safety and AUTOSAR
AUTOSAR and Functional Safety
Application redundancy
AUTOSAR
AUTOSAR AUTOSAR
C core 1 C core 2
ECU 1 ECU 2
21 8 Nov. 2011 Safetronic 2011 - Simon Frst - Functional Safety and AUTOSAR
AUTOSAR and Functional Safety
Basic Software redundancy inside one ECU
ADC Driver 1
ADC Driver 1
ADC Driver 2
SPIHandler
DIO Driver
Driver
component
ADC 1
ADC 2
ADC
HW
DIO
SPI
C C
22 8 Nov. 2011 Safetronic 2011 - Simon Frst - Functional Safety and AUTOSAR
AUTOSAR and Functional Safety
Overview
23 8 Nov. 2011 Safetronic 2011 - Simon Frst - Functional Safety and AUTOSAR
AUTOSAR and Functional Safety
Relationship to ISO 26262
Essential concepts of ISO 26262 have been developed in sync with AUTOSAR
Software configuration Part 6, Chapter 7 and Annex C
Freedom of interference by partitioning Part 6, Chapter 7 and Annex D
Safety Element out of Context (SEooC) Part 10, Chapter 9
Qualification of software tools Part 8, Chapter 10
Item Development
3-7 Hazard analysis and risk
assessment
SEooC Development
3-7 Hazard analysis and risk
Concept phase
24 8 Nov. 2011 Safetronic 2011 - Simon Frst - Functional Safety and AUTOSAR
AUTOSAR and Functional Safety
Relationship to ISO 26262
Due to rules on ASIL inheritance defined in ISO 26262 the AUTOSAR basic software
and RTE inherits safety relevance.
Either implement complete AUTOSAR basic software according to max. ASIL of
application software or
demonstrate freedom of inference in basic software by appropriate mechanisms
1. Vocabulary
Chapters to 3. Concept phase 4. Product development: system level 7. Production and operation
Core processes
concept 5. Product development: 6. Product development:
8. Supporting processes
25 8 Nov. 2011 Safetronic 2011 - Simon Frst - Functional Safety and AUTOSAR
AUTOSAR and Functional Safety
Conclusion
AUTOSAR provides support for dedicated safety mechanisms with generic fault models
During system and software design the safety manual is considered to appropriately use
the safety mechanisms of an AUTOSAR implementation.
26 8 Nov. 2011 Safetronic 2011 - Simon Frst - Functional Safety and AUTOSAR