Vector Safety Solution
Vector Safety Solution
Vector Safety Solution
MICROSAR Safe
V3.02.01 | 2019-07-12
Introduction
Functional Safety
ISO 26262
has been renewed in 2018 addressing
safety-related electronic automotive systems
To reduce liability risks state of the art
development methods as described in the
ISO 26262 should be applied for such systems.
2/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
Introduction
ISO 26262-compliant Development
Item Definition
Derivation of
OEM Safety Goals
Functional Safety
Concept
Item Integration and
Testing
Technical Safety
Tier 1 Concept
Basic SW Appl. SW
Hardware Development
Development Development
Vector
3/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
Introduction
Achieving Safety Together!
Specific Use-case
is Unknown!
Derivation of
Safety Goals
4/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
Introduction
Evolution of Safety Concepts
fail-safe
Redundancy
(e.g. redundant data)
Enhancing Partitioning
driver actions
High Performance
Integrity
fail-operational
Redundancy
(redundant functions)
Taking over
driver decision
5/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
Introduction
In many cases we see mixed-ASIL Systems
SW Safety Requirements
ECU Software
QM ASIL QM ASIL QM ASIL
6/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
Introduction
Safety Concepts and Contribution of MICROSAR Safe
SafeRTE SafeRTE
SafeWDG
SafeWDG
BSW SafeBSW
SafeOS SafeOS
MCAL MCAL
Hardware Hardware
7/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
Introduction
Safety Building Blocks of MICROSAR Safe
8/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
Agenda
Introduction
MICROSAR SafeOS
MICROSAR SafeWDG
MICROSAR SafeE2E
MICROSAR SafeRTE
MICROSAR SafeBSW
Process and Services
Summary
9/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
MICROSAR SafeOS
MICROSAR SafeOS
SafeBSW
SafeOS Timing: Detection of time-budget violations
Provides safe context switching for each safety related task:
MCAL
register settings
10/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
MICROSAR SafeOS
Overview SafeOS
11/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
MICROSAR SafeOS
Partitioning
Application 1 Task1
Application A
Application B
Application 2 Task 2
Operating
Task 3
System
Context
Switching
12/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
MICROSAR SafeOS
Timing Protection
Budget
Overrun
Task 3
Deadline
violation
Task 2
Task 1
Time
13/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
MICROSAR SafeOS
Access to Peripheral Registers
MPU BSW
MICROSAR
LIN SafeOS
CAN
driver
CAN
Timer
14/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
MICROSAR SafeOS
Register Access API
Example
BSW OS
…
osWritePeripheral8(id,addr,val) osWritePeripheral8(uint16 area,
… uint32 address, uint8 value)
{
// Validate access request
// Change to supervisor mode
// Perform access
// Change to previous mode
}
15/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
Agenda
Introduction
MICROSAR SafeOS
MICROSAR SafeWDG
MICROSAR SafeE2E
MICROSAR SafeRTE
MICROSAR SafeBSW
Process and Services
Summary
16/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
MICROSAR SafeWDG
Overview Watchdog
Checkpoint
WdgM
On detected violations in a supervised entity the ECU can
MCAL WdgDrv
Microcontroller
Watchdog
17/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
MICROSAR SafeWDG
Overview SafeWDG
It is assumed for all MICROSAR Safe components, that timing faults are handled using
a watchdog.
18/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
MICROSAR SafeWDG
Alive Monitoring
Periodic Supervised Entities have constraints on the number of times they are executed within a given
time span
𝐴𝐼 ≤ 𝑛 ≤ 𝐴𝐼
The Watchdog Manager checks periodically if the Checkpoints of a Supervised 𝑚𝑖𝑛 𝑚𝑎𝑥
Entity have been
reached within the given limits 𝑛 × WdgM_CheckpointReached()
WdgMSupervisionReferenceCycle
Periodic Supervised Entities have constraints on the number of times they are executed within a given
time span
The Watchdog Manager checks periodically if the Checkpoints of a Supervised Entity have been
reached within the given limits
not too frequently
not too rarely.
19/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
MICROSAR SafeWDG
Deadline Monitoring
Aperiodic Supervised Entities have individual constraints on the timing between two Checkpoints.
The Watchdog Manager checks 𝑡𝑚𝑖𝑛 ≤ Δ𝑡 ≤ 𝑡𝑚𝑎𝑥
the timing of transitions between two Checkpoints of a Supervised Entity
if the time between two steps are within the configured minimum and maximum
WdgM_CheckpointReached() WdgM_CheckpointReached()
Aperiodic Supervised Entities have individual constraints on the timing between two Checkpoints.
The Watchdog Manager checks
the timing of transitions between two Checkpoints of a Supervised Entity
if the time between two steps are within the configured minimum and maximum
20/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
MICROSAR SafeWDG
Logic Monitoring
Configured
WdgM_CheckpointReached()
Flow Graph
WdgM_CheckpointReached()
WdgM_CheckpointReached()
21/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
MICROSAR SafeWDG
Global Watchdog State
WdgM
OK/NOK
trigger
Wdg
22/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
MICROSAR SafeWDG
System Basis Chips in the AUTOSAR Stack
WDGM
WDGIF Transceiver drivers can be put in different partition than the watchdog
stack.
SBC Driver
SBC Driver is specific for external hardware unit
SPI Driver is specific for microcontroller
SPI Driver
23/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
MICROSAR SafeWDG
Configurations
Watchdog
Introduction
MICROSAR SafeOS
MICROSAR SafeWDG
MICROSAR SafeE2E
MICROSAR SafeRTE
MICROSAR SafeBSW
Process and Services
Summary
25/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
MICROSAR SafeE2E
Overview E2E
SWC
SWC SWC SWC Communication from one SWC to another SWC on a different
SafeE2E
ECU over an unsafe channel
SafeRTE
This channel comprises:
RTE
SafeWDG
SafeBSW
SafeOS Com-Stack
Bus Controller
MCAL
Wiring
Hardware
HW HW
26/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
MICROSAR SafeE2E
Overview E2E
27/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
MICROSAR SafeE2E
E2E Protection Wrapper
SWC A SWC B
E2EPW_Read( data cnt. crc )
Application Application
E2EPW_Write( data )
E2E E2E
Protection data status
Protection
data cnt. crc
Wrapper Wrapper
Rte_Write_<A>_<B> Rte_Read_<A>_<B>
CRC LIB CRC
verifyLIB
CRC
RTE RTE
BSW BSW
Bus
28/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
MICROSAR SafeE2E
E2E Transformer
SWC A SWC B
Application Application
RTE RTE
COMXF COMXF
BSW
BSW
Bus
29/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
MICROSAR SafeE2E
E2E Profile Overview
Other CRC
Profile OEM specific E2E Profiles are available
CRC Length Counter on request.
Data ID Explicit1
Dynamic Data
Msg. Length3
ID2
4096 Byte
5 0x1021 16 Bit 8 Bit 16 Bit 0 No
4096 Byte
6 0x1021 16 Bit 8 Bit 16 Bit 0 No
30/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
MICROSAR SafeE2E
Configurations
E2E Protection
Protection Wrapper
Transformer Solution
Solution
E2EPW E2EXf
COMXF and/or
E2ELIB
SOMEIPXF
CRCLIB E2ELIB
CRCLIB
Protection Wrapper only supports Profiles 1, 2 and JLR
31/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
Agenda
Introduction
MICROSAR SafeOS
MICROSAR SafeWDG
MICROSAR SafeE2E
MICROSAR SafeRTE
MICROSAR SafeBSW
Process and Services
Summary
32/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
MICROSAR SafeRTE
Overview RTE
SWC
SWC SWC SWC The RTE can be used to communicate between
SafeE2E
application software components.
SafeRTE
The RTE can provide communication between different
memory partitions and connects QM and ASIL
SafeWDG
SafeBSW software.
SafeOS
The RTE is usually required as ASIL if it is used within
MCAL the same partition as ASIL application Software
Hardware
Components.
33/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
MICROSAR SafeRTE
Derivation of Tool Confidence Level (TCL)
Tool Confidence
Tool Impact Tool Error ASIL
Level
Detection
TD3
Tool classification and qualification are usually performed by the user of the tool.
34/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
MICROSAR SafeRTE
RTE vs. SafeRTE
RTE SafeRTE
Classification of RTE: Classification of RTE:
TI2: “a malfunction of a particular software tool can TI2: “a malfunction of a particular software tool
introduce or fail to detect errors in a safety-related can introduce or fail to detect errors in a safety-
item or element being developed” related item or element being developed”
TD2: “there is a medium degree of confidence
TD1: “high degree of confidence that a
that a malfunction and its corresponding
malfunction and its corresponding erroneous
erroneous output will be prevented or detected”
output will be prevented or detected”
Manual qualification of
DaVinci Configurator PRO or the
generated software by the user is
necessary!
No qualification for TCL 1 tools needed!
35/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
MICROSAR SafeRTE
Arguments for TD1 in Detail
RTE Generator
RTE.h/RTE.c
ARG1: RTE Generator is developed with additional effort. ARG2: Output of RTE Generator is analyzed
by RTE Analyzer.
ARG1a: Output of RTE Generator is tested according to ISO 26262:6-9.
36/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
MICROSAR SafeRTE
ISO 26262-compliant Software Development with SafeRTE
Verification of software
SW Safety Requirements
safety requirements
Requires complete
System Description/ target SW, configuration
ECU Extract and (target) ECU
DaVinci
Configurator PRO
/RTE Generator
37/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
MICROSAR SafeRTE
Fault Detection and Prevention
39/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
Agenda
Introduction
MICROSAR SafeOS
MICROSAR SafeWDG
MICROSAR SafeE2E
MICROSAR SafeRTE
MICROSAR SafeBSW
Process and Services
Summary
40/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
MICROSAR SafeBSW
MICROSAR SafeBSW
SafeBSW
SafeOS SafeBSW can be run in the same OS application as your ASIL
SW components.
MCAL
There is no need for context switches for calls to SafeBSW.
Hardware
41/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
MICROSAR SafeBSW
Choosing the Right Approach
SafeOS SafeOS
BSW SafeBSW
runtime overhead
QM BSW (Partitioning Solution)
[ ]
#
#
If the majority of application software has the same ASIL, performance can be boosted by having
an ASIL BSW that allows to coexist in the same partition.
42/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
MICROSAR SafeBSW
Improving Performance
SafeRTE RTE
SafeOS
SafeBSW
43/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
MICROSAR SafeBSW
Safety Requirements
SafeRTE
Storage of Non-
Memory Services
volatile Data
Diagnostic Services
Not useable
SafeWDG
End-to-end Protection
Communication
for safety
Complex I/O HW Initialization and Required
Services
System Services ASIL for
Drivers Abstr. Reset (CAN,
ASIL LIN,
for FlexRay,
Coexistence
SafeOS Coexistence Ethernet)
Only
Only
ASIL for
Crypto Services
Coexistence Only
Watchdog/SBC MCAL
Drivers and Digital I/O
Hardware
44/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
Agenda
Introduction
MICROSAR SafeOS
MICROSAR SafeWDG
MICROSAR SafeE2E
MICROSAR SafeRTE
MICROSAR SafeBSW
Process and Services
Summary
45/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
Process and Services
Example timeline for Safety Case
Integration of
n-th. Delivery
Customer
Vector
Standard Lead 26 weeks 12 weeks
Time Lead Time for Project-specific
Production Safety Case
(Safety-ready) activities*
47/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
Process and Services
Safety Trainings and Workshops
48/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
Agenda
Introduction
MICROSAR SafeOS
MICROSAR SafeWDG
MICROSAR SafeE2E
MICROSAR SafeRTE
MICROSAR SafeBSW
Process and Services
Summary
49/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
Summary
Overview and Availability
ASIL QM
ASIL (Tier1/OEM)
QM (Tier1/OEM)
SWC SWC QM SWC QM SWC QM
SafeE2E MICROSAR Safe
MICROSAR QM
SafeRTE1 RTE1
ASIL (3rd party)
1,2:RTE and BSW are
either ASIL or QM
50/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
Summary
Components acc. ASIL D available with R22.7 (2019/04)
E2ePw Application
Rte
Microcontroller
51/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
Summary
Safety Building Blocks of MICROSAR Safe
52/53 © 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12
For more information about Vector
and our products please visit
www.vector.com
Author:
Dr. Günther Heling, Jonas Wolf
Vector Germany
© 2018. Vector Informatik GmbH. All rights reserved. Any distribution or copying is subject to prior written approval by Vector. V3.02.01 | 2019-07-12