kpit autosar handbook

74
Risk Assessment BSW stack FUNCTIONAL SAFETY Partial Networking Validation Scalablility Tool qualification Network Management Risk Assessment Validation ARTOP ASAM Network Management Optimization Migration Consulting Hazard Analysis MBD MCAL OSEK Migration hardware ISO 14229 Validation MBD MBD MBD COM OSEK OSEK ASIL A, B, C, D ASAM ASAM ASAM ASAM Validation ECU Consulting MCAL MBD CAN Hardware MCAL Production Ready R 3.x VCI Bootloader ASAM Hardware Hardware Training ASAM Training HIS-MISRA CT-Spec Hardware Training Mode Management Mode Management DoIP Bootloader Configuration ASIL Decomposition ISO26262 Migration BSW stack MCD3 API Customizable OSEK Hardware ASAM OSEK Bootloader ASIL Decomposition Gateway ASAM VCI ASAM ISO 26262 eNOS MBD OSEK AUTOSAR Complex Drivers ECU CAE DoIP ARTOP RTE generation HIS-MISRA COM R4.x HIS-MISRA ODX ISO 26262 OSEK ISO 26262 NETWORK MANAGEMENT DIAGNOSTICS Mode Management Training Network Management LIN Diagnostics & PC Tools Legacy to MBD MBD Configuration Production Ready Training Tool chain Testing CoE MBD Partial Networking Mode Management SCALABLILITY Consulting Validation Diagnostics ISO 14229 Optimization Consulting Testing FUNCTIONAL SAFETY ISO 15765 ECU Partial Networking MBD Optimization Board Support Package Tool qualification Hazard Analysis Mode Management PDU Router MBD Partial Networking Tool Qualification MCD3 API Network Management Gateway Aftertreatment Network Management CT-Spec MCD3 API VCI CT-Spec Migration Validation Gateway MBD Efficient Training R3.x BSW stack AUTOSAR Remote Diagnostic ECU Partial Networking Gateway Optimization HIS-MISRA ARTOP ISO 14229 Error handling MCD3 API MCD3 API FUNCTIONAL SAFETY Production Ready Development ISO 15765 Migration ASAM MCAL Network Management CT-Spec Customizable ODX R4.x LIN COM ODX R4.x Efficient VCI ODX LIN Scalablility Risk Assessment Partial Networking DoIP ECU CAN ECU DoIP Scalablility Validation Migration Gateway ISO 15765 Toolchain porting Migration Partner eNOS ECU drivers In-vehicle network AUTOSAR Specifications BSW Stack hardware Frugal Engineering Microlayer Adaptation Standardization Validation Legacy to MBD Testing In-vehicle network Validation ECU drivers CT Specs R 4.x ECU Microlayer Testing porting CT Specs AUTOSAR Microlayer R 4.x ECU OTX ECU R 4.x Scalability Gateway Scalablility AUTOSAR ARTOP ISO 15765 Risk Assessment Mode Management Production Ready MCD3 API Network Management Portability LIN CAN Configuration ASIL Decomposition Validation RTE generation porting CT-Spec MBD OSEK Tool Qualification Training ISO 15765 ODX Power Window FUNCTIONAL SAFETY Testing CoE Error handling Migration ODX Testing CoE DIAGNOSTICS Powerseat Consulting FUNCTIONAL SAFETY CT-Spec Bootloader OTX Gateway HIS-MISRA Customizable Hazard Analysis OTX ODX Complex Drivers Validation Training Gateway BSW Stack MBD drivers CT porting AUTOSAR eNOS eNOS ECU hardware LIN ECU Testing eNOS eNOS CT Specs In-vehicle network Validation AUTOSAR drivers ECU Specifications R 4.x eNOS drivers Standardization Validation R 3.x Testing Tool chain R 3.x Scalablility Testing CoE VCI ODX ASAM OSEK AUTOSAR Tool chain ASAM MBD Validation Training ASIL A, B, C, D MBD MBD MCD3 API Production Ready Validation PDU RouterASAM MBD VCI ISO 15765 ECU Gateway DoIP Validation Consulting HIS-MISRA Validation Tool chain Consulting Optimization CT-Spec MBD COM Portability ASAM Diagnostics Consulting DoIP hardware ECU MBD R 3.x ISO 14229 Tool Qualification CT-Spec R 3.x drivers CT Specs MBD eNOS CT MCAL ECU BSW Stack drivers ODX Migration BSW Stack hardware ECU ODX ASAM R 3.x eNOS ECU Migration MBD CT-Spec ISO 26262 Risk Assessment OSEK VCI AUTOSAR Handbook KPIT Technologies Ltd. AUTOSAR Handbook © KPIT Technologies Ltd.

Upload: bogdan-alin

Post on 19-Dec-2015

542 views

Category:

Documents


44 download

DESCRIPTION

Autosar

TRANSCRIPT

  • LIN CANCAN Bootloader

    Risk Assessment

    BSW stack

    FUNCTIONAL SAFETY

    Partial Networking

    Validation

    ScalablilityTool qualification

    Network Management

    Risk Assessment

    Validation

    ARTOP

    ASAM

    Network Management

    Optimization

    Migration

    Consulting

    Hazard Analysis

    MBD

    MCAL

    OSEK

    Migration

    hardware

    ISO 14229

    Validation

    MBDMBD

    MBD

    COM

    OSEK

    OSEK

    ASIL A, B, C, DASAM

    ASAM

    ASAM

    ASAM

    Validation

    ECU

    ConsultingMCAL

    MBD

    CAN

    Hardware

    MCAL

    Production Ready

    R 3.x

    VCI

    Bootloader

    ASAMHardware

    Hardware

    TrainingASAM

    Training

    HIS-MISRA

    CT-SpecHardware

    Training

    Mode Management

    Mode Management

    DoIP

    Bootloader

    Configuration

    ASIL Decomposition

    ISO26262

    Migration

    BSW stackMCD3 API

    Customizable

    OSEK

    HardwareASAM

    OSEKBootloader

    ASIL Decomposition

    Gateway

    ASAMVCIASAM

    ISO 26262

    eNOSMBD

    OSEKAUTOSAR

    Complex DriversECU

    CAE

    DoIPARTOP

    RTE generation

    HIS-MISRACOM

    R4.xHIS-MISRA

    ODXISO 26262

    OSEK

    ISO 26262 NETWORK MANAGEMENT

    DIAGNOSTICSMode Management Training

    Network Management

    LIN

    Diagnostics & PC Tools

    Legacy to MBD

    MBD

    Configuration

    Production Ready

    TrainingTool chain

    Testing CoEMBD

    Partial Networking

    Mode Management

    SCALABLILITYConsulting

    Validation

    Diagnostics

    ISO 14229

    Optimization

    Consulting

    Testing

    FUNCTIONAL SAFETY

    ISO 15765ECU

    Partial Networking

    MBD

    Optimization

    Board Support Package

    Tool qualification

    Hazard Analysis

    Mode Management Complex Drivers

    PDU Router

    MBDPartial Networking

    Tool Qualification

    MCD3 API

    Network Management

    Gateway

    Aftertreatment

    Network Management

    CT-Spec

    MCD3 API

    VCICT-Spec

    MigrationValidation

    GatewayMBD

    Efficient

    Training

    R3.x

    BSW stack

    AUTOSAR

    Remote Diagnostic

    ECU

    Partial Networking

    Gateway

    Optimization

    HIS-MISRA

    ARTOPISO 14229

    Error handling

    MCD3 API

    MCD3 API

    FUNCTIONALSAFETY

    Production Ready

    DevelopmentISO 15765

    Migration

    ASAM

    MCALNetwork Management

    CT-Spec

    Customizable

    ODXR4.x

    LIN

    COM

    ODX

    R4.xEfficientVCI

    ODX

    LINScalablilityRisk Assessment

    Partial Networking

    DoIP

    ECU

    CAN

    ECU

    DoIP

    Scalablility

    Validation

    Migration

    Gateway

    ISO 15765Toolchain

    porting

    Migration Partner eNOS

    ECU

    drivers

    In-vehicle network

    AUTOSAR

    Specifications

    BSW Stack

    hardware

    Frugal Engineering

    Microlayer

    Adaptation

    StandardizationValidation

    Legacy to MBD

    Testing

    In-vehicle network

    Validation

    ECU

    drivers

    CT Specs

    R 4.x

    ECU

    Microlayer

    Testing

    porting

    CT Specs

    AUTOSAR

    Microlayer

    R 4.x ECU

    OTX

    ECU

    R 4.x

    ScalabilityGateway

    Scalablility

    AUTOSAR

    ARTOP

    ISO 15765

    Risk Assessment Mode Management

    Production Ready

    MCD3 API

    Network Management

    Portability

    LINCAN

    ConfigurationASIL Decomposition

    Validation

    RTE generation

    porting

    CT-Spec

    MBDOSEK

    Tool QualificationTraining

    ISO 14229

    ISO 15765

    ODX

    Power Window

    FUNCTIONAL SAFETY

    Testing CoE

    Error handling

    Migration

    ODX

    Testing CoE

    DIAGNOSTICS

    Powerseat

    Consulting

    FUNCTIONAL SAFETY

    CT-Spec

    Bootloader

    OTX

    Gateway

    HIS-MISRACustomizable

    Hazard Analysis

    OTX ODX Complex Drivers

    ValidationTraining Gateway

    BSW Stack MBD

    drivers

    CT

    porting

    AUTOSAR

    eNOS

    eNOSECUhardware

    LIN

    ECU

    Testing

    eNOS

    eNOS

    CT Specs

    In-vehicle networkValidation

    AUTOSARdrivers

    ECUSpecifications

    R 4.x eNOS

    drivers

    StandardizationValidation

    R 3.x Testing

    Tool chainR 3.x

    Scalablility

    Testing CoE

    VCI

    ODX

    ASAM

    OSEK

    AUTOSAR Tool chainASAM

    MBD

    Validation

    Training

    ASIL A, B, C, DMBD

    MBD

    MCD3 API

    Production Ready

    ValidationPDU RouterASAM

    MBD

    VCIISO 15765

    ECU

    Gateway DoIPValidation

    Consulting

    Complex Drivers

    HIS-MISRA

    Validation

    Tool chainConsulting

    Optimization

    CT-Spec

    MBDCOM

    PortabilityASAMDiagnostics

    Consulting

    DoIP

    hardware

    ECU

    MBDR 3.x

    ISO 14229

    Tool Qualification

    CT-Spec

    R 3.x

    drivers

    CT Specs

    MBD

    eNOS

    CT

    MCAL

    ECUBSW Stack

    driversODX

    MigrationBSW Stack

    hardware

    ECUODX

    ASAM

    R 3.x

    eNOS

    ECU

    Migration

    MBD

    CT-SpecISO 26262

    Risk AssessmentOSEK

    VCI

    AUTOSAR HandbookKPIT Technologies Ltd.

    AUTOSAR Handbook KPIT Technologies Ltd.

  • A Premium Member of AUTOSAR consortium since 2005, KPIT provides products and services for the various layers of AUTOSAR stack for OEMs, Tier1s, and Semiconductor ODMs (Original Design Manufacturers). Actively involved in the automotive standardization across the globe, we help customers at every stage of their AUTOSAR development through end-to-end AUTOSAR Tool chain in association with leading industry Tool Suppliers.

    AUTOSAR Handbook KPIT Technologies Ltd.[ II ]

    AUTOSAR Solutions

  • Part 11.11.21.3

    1.41.51.6

    Part 2

    Part 3

    Part 44.1

    Part 5Part 6

    6.1

    Introduction to AUTOSARAUTOSARAUTOSAR Layer ModelDesign and Communication of Software ComponentsAUTOSAR MethodAUTOSAR InterfacesAUTOSAR Basic software ModuleDescription of AUTOSAR work process and activitiesDescription of AUTOSAR Basic Software Module (BSW)AUTOSAR System ServicesAUTOSAR OSMCAL SolutionsMulticore SupportIntroduction

    01020406

    08091011

    17

    2728334142

    Part 77.17.2

    Part 88.18.28.38.48.5

    Part 99.19.29.3

    Functional SafetyIntroductionAUTOSAR Architecture & Safety Implementation in R4.0ECU Spectrum ToolchainIntroductionInputs usedOutputs GeneratedECU Spectrum FeaturesTerms usedAbout KPITKPIT AUTOSAR ExpertiseKPIT AdvantagesSoftware Services / Products Provided by KPIT

    454647

    53545555606163646567

    Contents

    AUTOSAR Handbook KPIT Technologies Ltd.[ III ]

  • Part 1

    Introduction to AUTOSAR

    AUTOSAR Handbook KPIT Technologies Ltd.1

  • Automotive Industry coping up with increasing complexity

    The in-vehicle systems are becoming more and more complex day in and day out. Todays hardware and component-driven development process is becoming more and more requirement and functional-driven. Future engineering does not aim at optimizing single components but optimizing on system level which requires an open architecture as well as scalable and exchangeable software modules.

    AUTOSAR (AUTomotive Open System ARchitecture), a worldwide consortium of OEMs, suppliers and other companies, founded in 2003, have been working on the development and introduction of an open and standardized software architecture for the automotive industry.

    To reduce development effort and improve quality are important reasons for introducing a uniform procedure independent of system platform. Hardware and software are decoupled from one another to assure such results.

    The AUTOSAR concept is based on modular components with defined interfaces.

    AUTOSAR

    AUTOSAR Handbook KPIT Technologies Ltd.2

  • AUTOSAR Handbook KPIT Technologies Ltd.3

    Figure 1: Simplified Component View

    ECU-Hardware

    AUTOSAR Runtime Environment (RTE)

    ActuatorSoftware

    Component

    AUTOSARInterface

    ApplicationSoftware

    Component

    SensorSoftware

    Component

    ApplicationSoftware

    Component

    ..............

    AUTOSARSoftware

    Basic SoftwareStandardized

    Interface

    AUTOSARInterface

    AUTOSARInterface

    AUTOSARInterface

    MicrocontrollerAbstraction

    StandardizedAUTOSARInterface

    Services

    StandardizedInterface

    ECUAbstraction

    AUTOSARInterface

    StandardizedInterface

    ComplexDeviceDrivers

    AUTOSARInterface

    StandardizedInterface

    Communication

    StandardizedInterface

    StandardizedInterface

    OperatingSystem

    Standardized Interface

    AUTOSARSoftware

    Component

    Interface

    StandardSoftware

    Interfaces:VFB & RTE

    relevant

    RTErelevant

    BSWrelevantPossible interfaces

    insideBasic Software

    (which are not specified

    within AUTOSAR)

  • In AUTOSAR, the ECU software is abstracted and sub-classified as software (BSW) layer, runtime environment (RTE) and application layer.

    The Microcontroller Abstraction Layer contains internal drivers, which are software modules with direct access to the micro controller and internal peripherals.

    The ECU Abstraction Layer offers uniform access to all features of an ECU like communication, memory or I/O, no matter if these features are part of the microcontroller or realized by peripheral components. The drivers for such external peripheral components reside in this layer.

    The Service Layer provides various types of background services such as vehicle network communication and management services, diagnostic services, memory management, ECU state management, mode management and Logical and temporal program flow monitoring. The operating system is also part of this layer.

    The RTE integrates the application layer with the BSW. It implements the data exchange and controls the integration between the application software component (SWCs) and BSW.

    The Application Layer contains the SWCs, which realize the application functionality of the ECU.

    AUTOSAR Layer Model

    AUTOSAR Handbook KPIT Technologies Ltd.4

  • MICROCONTROLLER

    MICROCONTROLLER ABSTRACTION LAYER

    RUN TIME ENVIRONMENT

    APPLICATION LAYER

    SERVICES LAYER

    ECU ABSTRACTION LAYER COMPLEX DRIVERS

    AUTOSAR Handbook KPIT Technologies Ltd.5

    Figure 2: AUTOSAR Layered Architecture

  • A fundamental design concept of AUTOSAR is the separation between Application and Infrastructure. An application in AUTOSAR consists of interconnected "AUTOSAR Software Components". The interfaces of each SWC are formally defined. Communication between SWCs takes place chiefly over two kinds of ports, Client/ Server ports where server is a provider of a service and the client is a user of a service and Sender/ Receiver ports where a sender distributes information to one or several receivers in synchronous as well as asynchronous environment. The implementation architecture of SWC is formally defined in terms of so-called runnable entities. They correspond to procedures and are executed on a specific event such as a periodic activation or reception of new input value. During system design phase the SWCs can be integrated with their environment (e.g. hardware, driver, OS, etc) based on Virtual Functional Bus (VFB). The virtual functional bus is the abstraction of the AUTOSAR Software Components interconnections of the entire vehicle.

    Once the system of SWCs is deployed to the concrete vehicle network architecture, the RTE and BSW of involved ECUs realize the communication between the SWC either as ECU-local communication or as network based communication.

    Design and Communication of software Components

    AUTOSAR Handbook KPIT Technologies Ltd.6

  • Sensor

    SWC-ECU1 SWC-ECU2

    Virtual Functional Bus

    AUTOSAR ECU1 AUTOSAR ECU2SWC - ECU1 SWC - ECU2

    Network PathSensor

    Configure software components based on communication requirements

    SWC_ECU1 is mapped to ECU1 SWC_ECU2 is mapped to ECU2

    AUTOSAR Handbook KPIT Technologies Ltd.7

    Figure 3: AUTOSAR System Design

  • The AUTOSAR Methods (in AUTOSAR specifications also called Methodology) describes the workflow that could be followed from the system configuration up to the final generation of an executable for a concrete ECU.

    The activities are supported by dedicated AUTOSAR tools. For exchanging work products between such tools AUTOSAR defined one comprehensive XML file format.

    The detailed description of AUTOSAR work flow please refer Part 2 Description of AUTOSAR work prod & activates of this handbook.

    AUTOSAR Method

    AUTOSAR Handbook KPIT Technologies Ltd.8

  • AUTOSAR Interfaces are used in defining the ports of software-components and/or BSW modules. Through these ports, software-components and/or BSW modules can communicate with each other (Send or receive information or invoke services). AUTOSAR makes it possible to implement this communication between Software-Components and/or BSW modules either locally or via a network. (Refer figure 1, page 3 of handbook)

    AUTOSAR Interfaces

    The AUTOSAR Interface is a generic interface which is derived from the ports of a SWC. AUTOSAR Interfaces are provided by the RTE and serve as interface between SWCs or between SWCs or between a SWC and the ECU firmware (IO HW and Complex Drivers). Via these interfaces, a SWC an e.g. read an input value or write an output value.

    The Standardized AUTOSAR Interface is a particular AUTOSAR Interface, which is already predefined by the AUTOSAR standard. Such interfaces are used by the SWCs to access AUTOSAR Services, which are provided by BSW modules of the Service Layer like the ECU manager or the diagnostic event manager.

    The Standardized Interface is an interface, which is predefined by the AUTOSAR standard as API in C language. It is used between BSW module within an ECU, between RTE and Operating System (OS), or between RTE and the Communication Layer.

    AUTOSAR Handbook KPIT Technologies Ltd.9

  • AUTOSAR has defined a set of BSW modules. They are responsible for different tasks:

    AUTOSAR Basic Software Module

    Operating SystemAccess to non volatile memoryCommunication via CAN, LIN, FlexRay and EthernetHandling the diagnosticsAccess to I/O portsSystem services like ECU state management

    In addition, so-called Complex Device Drivers can be integrated into an AUTOSAR ECU. They are used to access the features of the ECU, which are not covered by the standard BSW of AUTOSAR.

    The detailed description of the BSW module parameters is included in a module specific XML file the BSW Module Description (compare to Figure 4 and the table in part 2 of this handbook).

    A list of all BSW modules and a short description can be found in the part 3 of this handbook.

    AUTOSAR Handbook KPIT Technologies Ltd.10

  • Part 2

    Description of AUTOSAR work products & activities

    AUTOSAR Handbook KPIT Technologies Ltd.11

  • AUTOSAR Handbook KPIT Technologies Ltd.12

    Information/Database (no files)

    Generation Step: complex algorithm or engineering work

    SWCDescription

    ECUDescription(HW only)

    System ConstraintDescription

    API Generator

    System Configuration

    Generator

    Component API

    System Configuration Description

    ECU extract ofSystem

    Configuration

    ECU extract ofSystem

    Configuration

    ECUConfiguration

    Generator

    SWC Implementation

    RTE Generator

    OS, COM Generator

    BSW Generator

    MCAL Generator

    ECUConfiguration Description

    RTE Extract

    OS Extract

    BSW module Extract

    SWC Implementation

    List

    System per ECU

    Figure 4: Overview of the AUTOSAR method

  • Information/activities

    Description

    These are constraints, which must be considered during system configuration. An example for such System Constraints is a given (partial) communication matrix from the last vehicle series, which must not be changed when designing the new vehicle series.

    System Constraint

    This activity creates a complete System Description with the necessary SWC Description and the associated system Communication Matrix. Basis for this activity are the System Constraints. In addition, this activity requires design decisions to be made at system level by considering the available ECU and network resources. This includes the definition of network topology, definition of SWC, mapping of SWC to ECUs and specification of the network communication.

    System Configuration

    Generator

    This includes all system information and the information that must be agreed between different ECUs including the network topology and the allocation of the components to the ECUs. A System Description is always completed by the necessary SWC Descriptions and an associated System Communication Matrix.

    System Configuration Description

    This specifies information about an SWC including its ports and runnable entities.SWC Description

    AUTOSAR Handbook KPIT Technologies Ltd.13

  • Information/activities

    Description

    This work product contains information from the System Configuration Description needed for a specific ECU. It includes the description of the SWCs on this ECU as well as the subset of the communication matrix relevant for the ECU.

    ECU Extract of System

    Configuration

    This creates an ECU Configuration Description. Basis is the ECU Extract and the vendor specific BSW Module Description. In addition, this activity requires design decisions to be made at ECU level.

    This includes setting values for the configurable parameters of all BSW modules and the RTE, like mapping runnable entities to operating system tasks, defining the memory layout or configuring the operating system.

    This describes all information that is local to a specific ECU the runnable software can be built from this information and the code of the software component

    ECU configuration

    Generator

    AUTOSAR Handbook KPIT Technologies Ltd.14

    ECU Configuration Description

    This activity generates the configurable part of the BSW module of an ECU. Basis for this generation process is the ECU configuration Description of the ECU. This activity requires no design decisions.

    BSW Generator

  • Information/activities

    Description

    This describes of all configuration parameters of a particular BSW module, including vendor specific parameters. This description always reflects a concrete implementation of the BSW module. Therefore, it is provided by the BSW module supplier and is not changed during the ECU configuration process.

    BSW extract of ECU configuration

    This activity generates the RTE of an ECU. This activity requires no design decisions.RTE Generator

    AUTOSAR Handbook KPIT Technologies Ltd.15

  • AUTOSAR Handbook KPIT Technologies Ltd.16

    [ THIS PAGE INTENTIONALLY LEFT BLANK ]

  • Part 3

    Description of AUTOSAR Basic Software Module (BSW)

    AUTOSAR Handbook KPIT Technologies Ltd.17

  • MICROCONTROLLER

    MICROCONTROLLER ABSTRACTION LAYER

    RUN TIME ENVIRONMENT

    APPLICATION LAYER

    SERVICE LAYER

    ECU ABSTRACTION LAYER COMPLEX DRIVERS

    AUTOSAR ECU

    SERVICES PRODUCTS

    AUTOSAR Handbook KPIT Technologies Ltd.18

    Figure 5: AUTOSAR Stack and KPIT Offerings

  • COMPLEXDRIVERS

    MICROCONTROLLER

    RUN TIME ENVIRONMENT

    APPLICATION LAYER

    MCUDRIVERS

    MEMORYDRIVERS

    I/ODRIVERS

    MEMORY ABS INTERFACE

    EEPROM ABSTRACTION

    CAN/LIN/FLEXRAY/ETHERNET INTERFACE

    I/O SIGNAL INTERFACE

    FLASH EEPROM

    EMULATION

    COMDRIVERS

    ECU

    STA

    TE M

    GR

    COM

    MA

    NA

    GER

    FUN

    CTIO

    N

    INH

    IBIT

    ION

    MG

    R

    DIA

    GN

    OST

    IC

    EVEN

    T M

    GR

    WAT

    CHD

    OG

    MG

    R

    DEV

    ELO

    PMEN

    T ER

    ROR

    TRA

    CER

    SYN

    C TI

    ME

    BASE

    M

    GR

    DIA

    GN

    OST

    IC L

    OG

    A

    ND

    TRA

    CE

    AU

    TOSA

    R O

    S

    BASI

    C SO

    FTW

    ARE

    M

    OD

    ULE

    MG

    R

    WATCHDOG INTERFACE

    EXTERNAL EEPROM DRIVER

    EXT FLASH DRIVER

    NVRAM MANAGER

    IPD

    U M

    ULT

    IPLE

    XER

    AU

    TOSA

    R CO

    M

    DCM

    PDU ROUTER

    CAN/ FR TRANSPORT

    CAN

    / LI

    N/F

    R ST

    ATE

    MA

    NA

    GER

    GEN

    . NM

    IN

    TERF

    ACE

    CAN/ LIN/

    FR NM

    DRIVER FOR EXT.

    ADC ASIC

    DRIVER FOR EXT.

    I/O ASICDRIVER FOR EXTERNALCAN ASIC

    CAN/FR/ETH TRANS-CEIVER DRIVER

    AUTOSAR Handbook KPIT Technologies Ltd.19

    Figure 6: BSW Modules (Not all modules are shown)

  • Module Name Description

    The CAN Interface provides hardware independent access mechanisms for the ECUs CAN channels (on chip or on board). It controls the CAN driver as well as the transceiver driver, and forms an interface to the high level modules.

    CAN Interface

    The CAN Network Management is responsible for a coordinated transmission between the wake-up and sleep states within a CAN network. An additional function delivers a list of all ECUs available on the bus.

    CAN Network Management

    The CAN State Manager handles bus specific errors as well as the activation and deactivation of the PDU groups.CAN State Manager

    The CAN Transport Protocol conforms to ISO standard 15765-2 TPL and manages segmenting of data in the transmit direction, assembling of data in the receive direction, and monitoring of the data stream. Error detection such as message loss, duplication and sequence errors are also handled by the module.

    CAN Transport Layer

    The driver is responsible for controlling the operating state of an external CAN transceiver. Also responsible for Network diagnostics and control of wake up and sleep functions.

    CAN Transceiver Driver

    AUTOSAR Handbook KPIT Technologies Ltd.20

  • Module Name Description

    The FlexRay interface provides identical access mechanisms for the ECUs FlexRay channels, independent of their implementation (microcontroller internal or external). It extracts the number of FlexRay drivers and manages the synchronization to global FlexRay time.

    FlexRay Interface

    This module is responsible for the FlexRay network management. It coordinates the transition between normal operation and bus-sleep mode of the network.

    FlexRay Network Management

    The FlexRay State Manager controls and monitors the wakeup and startup of the node in the FlexRay cluster.

    FlexRay State Manager

    The FlexRay transport protocol segments long data packets in the transmit direction, collects data in the receive direction and controls the data flow. Errors such as message loss, message duplication or sequencing errors are detected.

    FlexRay Transport Layer

    The driver for an external FlexRay transceiver is responsible for Network diagnostics and switching a transceiver on and off.

    FlexRay Transceiver Driver

    AUTOSAR Handbook KPIT Technologies Ltd.21

  • Module Name Description

    The LIN Interface provides a hardware independent interface for access to LIN frames. In addition, it manages Schedule Table processing and the implementation of the LIN Transport Layer and LIN Network Management.

    LIN Interface

    This module is responsible for the LIN network management. It coordinates the transition between normal operation and bus-sleep mode of the network.

    LIN Network Management

    The LIN State Manager switches the Scheduler Tables as well as the PDU groups in COM and servers the LIN Interface in term of sleep and wake-up. In addition it manages the activation of the LIN Transceiver driver.

    LIN state Manager

    The LIN transport protocol segment data in the transmit direction, collects data in the receive direction and controls the data flow. Errors such as message loss, message duplication or sequencing errors are detected. The LINTP is part of the LINIF.

    LIN Transport Layer

    The LINTRCV driver for an external LIN transceiver is responsible for monitoring and controlling the wake-up and sleep functions.

    LIN Transceiver Driver

    AUTOSAR Handbook KPIT Technologies Ltd.22

  • Module Name Description

    This module provides to upper layers a hardware independent interface to the Ethernet Communication System comprising multiple different Ethernet controllers and transceivers. This interface is uniform for all Ethernet controllers and transceivers. Thus, the upper layers (Internet Protocol, Address Resolution Protocol) may access the underlying bus system in a uniform manner.

    Ethernet Interface

    The module provides to the upper layer (Ethernet Interface) a hardware independent interface comprising multiple equal transceivers. This interface is uniform for all transceivers. Thus, the upper layer (Ethernet Interface) may access the underlying bus system in a uniform manner. The configuration of the Ethernet Transceiver Driver however is bus specific, since it takes into account the specific features of the communication transceiver.

    Ethernet Transceiver Driver

    The Ethernet State Manager shall provide an abstract interface to the AUTOSAR Communication Manager to startup or shutdown the communication on an Ethernet cluster. It does not directly access the Ethernet hardware

    Ethernet State Manager

    AUTOSAR Handbook KPIT Technologies Ltd.23

  • Module Name Description

    The NM module provides a general, network independent interface for access to bus-dependent network management modules (CANNM and FRNM). In addition, the module manages the synchronous, cross-network shutdown of the communication system in conjunction with the other ECUs.

    Generic Network Management Interface

    The communication layer provides a signal-based data interface for the application, and sends messages according to the defined send types. Additional interfaces are provided in the form of messaging mechanisms for successful sending and receiving of data as well as their timeouts. For multi-channel ECUs, the module COM also provides an option to route signals between communication buses (signal gateway)

    Communication Manager

    This module implements diagnostic communication as per ISO14229-1 (UDS). Diagnostic requests are partially converted directly in DCM (administration of diagnostic sessions, reading error codes, EcuReset,), and partially sent to software components via port interfaces (reading, writing, and controlling of data identifiers, execution of routines, ).

    Diagnostic Communication

    Manager

    AUTOSAR Handbook KPIT Technologies Ltd.24

  • Module Name Description

    This module deals with multiple uses of fixed PDUs with different data contents.IPDU Multiplexer

    The EA module provides a hardware independent interface for access to EEPROM driver (EEP). Data blocks can be read, written, or deleted. In addition, the EA module distributes write request across different areas of the EEPROM so that all EEPROM cells are subjected to equal load, and their lifespan is increased.

    EEPROM Abstraction

    This module allows the NVRAM manager to access several memory abstraction modules (FEE or EA modules). This module abstract from the number of underlying FEE or EA modules and provide upper layers with a virtual segmentation on a uniform linear address space.

    Memory Abstraction Interface

    The FEE module provides a hardware independent interface for access to flash data using a flash driver (FLS). Data blocks can be read, written, or deleted. In addition, the FEE module distributes write requests across different areas of the flash so that all flash cells are to equal load, and their lifespan is increased.

    Flash EEPROM Emulation

    AUTOSAR Handbook KPIT Technologies Ltd.25

  • Module Name Description

    On request, We offer the implementation of drivers for externally connected components as an extension to AUTOSAR 3.0. These are already available for the control of certain EEPROM (EEPEXT), flash components (FLSEXT), Watchdog (WDGEXT), for example

    External Driver

    This module provides uniform access to services of the watchdog driver (WDG), such as mode switching and triggering.Watchdog Interface

    The I/O Hardware Abstraction represents the connection between the RTE and the I/O channels of the ECU. It encapsulates access to the I/O drivers such as ADC, DIO or PWM, thereby making available the ECUs I/O signals.

    I/O Hardware Abstraction

    The Watchdog Manager monitors the reliability and functional assurance of the application in an ECU. This includes monitoring the correct execution of the SWCs and BSW modules, and the triggering of Watchdog at the required time intervals. It reacts to possible faulty behavior on numerous escalation levels. Where resumption of normal operation is impossible, the Watchdog hardware performs a reset of the microcontroller.

    Watchdog Manager

    AUTOSAR Handbook KPIT Technologies Ltd.26

  • Part 4

    AUTOSAR System Services

    AUTOSAR Handbook KPIT Technologies Ltd.27

  • This module is the operating system of an AUTOSAR ECU. It is actually an extended OSEK operating System. The extensions are organized so-called scalability classes (SC1-SC4). They cover the following features.

    AUTOSAR OS

    Sc1 : deterministic RTOS baseline (tasks, events, counters, alarms, messages)

    SC2 : timing based task determinism (low-latency, precise timing for periodic tasks)

    Sc3 : protected memory (MMU/MPU) for tasks avoids memory collisions for safety

    SC4 : timing and memory protected tasks, utilizes the full capabilities of the silicon for secure & protected Automotive grade RTOS

    AUTOSAR Handbook KPIT Technologies Ltd.28

  • SC1 SC2 SC3 SC4 Hardware Requirements

    OSEK OS (All Conformance Classes)

    Counter Interface

    Schedule Tables

    Stack Monitoring

    ProtectionHook

    Timing Protection

    Global Time/Synchronization Support

    Memory Protection

    Timers with high priority interrupt

    Global Time Source

    MPU

    OS-Application

    Service Protection

    CallTrustedFuction (non-) privilege Modes

    AUTOSAR Handbook KPIT Technologies Ltd.29

    Figure 7: Scalability Class Details

  • COMPLEXDRIVERS

    I/O HW

    ABSTRACTIONONBOARD DEVICE

    ABSTRACTION

    MICROCONTROLLER

    RUN TIME ENVIRONMENT

    APPLICATION LAYER

    OPERTING SYSTEM &SYSTEM SERVICES

    MCUDRIVERS

    MEMORYDRIVERS

    MEMORYHARDWARE

    ABSTRACTION

    COMDRIVERS

    COMHARDWARE

    ABSTRACTION

    MEMORYSERVICES

    COMSERVICES

    I/ODRIVERS

    EC

    U S

    TATE

    MG

    R

    COM

    MA

    NA

    GER

    FUN

    CTIO

    N

    INH

    IBIT

    ION

    MG

    R

    DIA

    GN

    OST

    IC

    EVEN

    T M

    GR

    WAT

    CHD

    OG

    MG

    R

    DEV

    ELO

    PMEN

    T ER

    ROR

    TRA

    CER

    SYN

    C TI

    ME

    BASE

    M

    GR

    DIA

    GN

    OST

    IC L

    OG

    A

    ND

    TRA

    CE

    AU

    TOSA

    R O

    S

    BASI

    C SO

    FTW

    ARE

    M

    OD

    ULE

    MG

    R

    AUTOSAR Handbook KPIT Technologies Ltd.30

    Figure 8: System Services

  • Module Name Description

    The ECU State Manager performs the initialization/de-initialization of all basic software modules, including the RTE and the operating system (OS). The module controls the operating state of an ECU (Sleep, Startup, Wakeup, Shutdown, and Run) based on system events.

    ECU State Manager

    This module controls the state of all communication channels connected to the ECU and provides a bus-independent interface to the SWCs (and thereby their application) for requesting external communication.

    Communication Manager

    This module implements error memory as per manufacturer-specific documentation. A standardized interface for diagnostic monitors allow for uniform, cross-manufacturer development of software components. The DEMs module is responsible for administrating the Diagnostic TroubleCode statuses, the error environment data, and for storing the data in NVRAM.

    Diagnostic Event Manager

    This module controls (enable/disable) functionalities of SW components based on the conditions such as faults, signal quality, ECU and vehicle states, diagnostic tester commands, etc.

    Function Inhibition Manager

    AUTOSAR Handbook KPIT Technologies Ltd.31

  • Module Name Description

    This module supports error searches during software development and provides an interface for error reporting. This interface is called from the individual BSW modules in an error situation.

    Development Error Tracer

    The SCHM module calls the cyclic function for the individual BSW modules and makes available the functions that the BSW modules need to call at the beginning and end of critical sections. This Module is part of RTE (Runtime Environment in R4.0)

    BSW Scheduler

    The RTE is responsible for the execution of the software components and realize the data exchange between the software components and the basic software.

    Runtime Environment

    The Cyclic Redundancy Check module provides a service function for computing CRC checksum.

    CRC Routines

    AUTOSAR Handbook KPIT Technologies Ltd.32

  • Part 5

    MCAL Solutions

    AUTOSAR Handbook KPIT Technologies Ltd.33

  • COMPLEXDRIVERS

    I/O HW

    ABSTRACTIONONBOARD DEVICE

    ABSTRACTION

    RUN TIME ENVIRONMENT

    APPLICATION LAYER

    OPERTING SYSTEM &SYSTEM SERVICES

    MEMORYHARDWARE

    ABSTRACTION

    COMHARDWARE

    ABSTRACTION

    MEMORYSERVICES

    COMSERVICES

    MICROCONTROLLER

    G

    PT D

    RIV

    ER

    WAT

    CHD

    OG

    D

    RIV

    ER

    MCU

    DRI

    VER

    CORE

    TES

    T

    RAM

    TES

    T

    FLA

    SH T

    EST

    INTE

    RNA

    L FL

    ASH

    D

    RIVE

    R

    EPRO

    M D

    RIV

    ER

    ETH

    ERN

    ET

    DRI

    VER

    SPI H

    AN

    DLE

    R D

    RIV

    ERCA

    N

    DRI

    VER

    LIN

    DRI

    VER

    FLEX

    RAY

    DRI

    VER

    ICU

    DRI

    VER

    PWM

    DRI

    VER

    AD

    C D

    RIV

    ER

    DIO

    DRI

    VER

    PORT

    DRI

    VER

    GPT

    WD

    T

    MCU

    PO

    WER

    &

    CL

    OCK

    U

    NIT

    EXT.

    BU

    S

    FLA

    SH

    SPI

    LIN

    OR

    SCI

    CAN

    CCU

    PWM

    AD

    C

    DIO

    AUTOSAR Handbook KPIT Technologies Ltd.34

    Figure 9: ECU spectrum MCAL Modules

  • Module Name Description

    This module provides service for initialize the entire port structure of the microcontroller.

    Port Driver

    The Digital Input Output Driver provides read and write services to the DIO channels (pins), DIO port and DIO channel groups.DIO Driver

    The ADC Driver is responsible for controlling the analog to digital converter and for accessing the results of a conversion. In detail, it initializes the converter, provides services for starting or ending a conversion, and for selecting the trigger source and for selecting the trigger source and trigger condition.

    ADC Driver

    The Pulse Width Modulation Driver provides services for initialization and controlling PWM channels of the microcontrollerPWM Driver

    The ICU driver provides services for edge detection, measuring periodic signals, assigning edge timestamp and controlling wake-up interrupts.ICU Driver

    AUTOSAR Handbook KPIT Technologies Ltd.35

  • Module Name Description

    The CAN driver provides services for initializing the CAN controller, for sending and receiving messages, and for switching the controller states (sleep, stop etc.).CAN Driver

    The FlexRay Driver is used to abstract hardware related differences between different FlexRay communication controllers. All the necessary properties of the communication controller per the FlexRay Protocol Specification are encapsulated in this module and can be reached via its uniform interface.

    FlexRay Driver

    The LIN Driver provides services for initiating frame transmission (Header, Response, Sleep Mode and Wake-Up) as well as receiving responses, checking the momentary state and validating wake-up events.

    LIN Driver

    The SPI driver provides an option for exchanging data across the SPI interface. It is primarily used for external connection of EEPROM and Watchdog,

    SPI Handler / Driver

    The Ethernet driver provides an option for data exchanges over Ethernet interface. With the Ethernet interfacing available in, it is possible to develop very powerful gateways with a MOST connection and thereby utilize the advantages of the AUTOSAR architecture.

    Ethernet Driver

    AUTOSAR Handbook KPIT Technologies Ltd.36

  • Module Name Description

    The EEPROM driver enables hardware independent, uniform access to EEPROM storage. It makes available services for reading, writing, and data comparison, as well as for deleting blocks.

    EEPROM Driver

    The flash driver provides a hardware independent and uniform access to flash memory. It offers services for reading, writing and comparing of data and the erasure of blocks (sector).

    Internal Flash Driver

    This module tests microcontroller internal RAM cells. A complete test is performed during startup and shutdown of the ECU, or is trigged by a diagnostic command. A cyclical test (block for block or cell for cell) is performed during normal operation.

    RAM Test

    AUTOSAR Handbook KPIT Technologies Ltd.37

  • Module Name Description

    This module provides services to control and trigger watchdog hardware. The trigger routine is called by the watchdog manager.Watchdog Driver

    The General Purpose Timer Driver provides an interface for access to the microcontrollers internal timers. It can be used to control events that occur periodically or once-off.

    GPT Driver

    The Micro Controller Unit Driver provides the following services:

    MCU Driver

    Software-triggered microcontroller reset.

    Selection of the microcontroller power mode (STOP, SLEEP, HALT, etc.)

    Configuration of wake-up behavior.

    Management of the internal PLL clock unit.

    Initialization of RAM areas with pre-defined values.

    The Core Test Driver provides services for configuring, starting, polling, terminating and notifying the application about Core Test results. It also provides services for returning test results in a predefined way. Furthermore it provides several tests to verify dedicated core functionality like e.g. general purpose registers or Arithmetical and Logical Unit (ALU).

    Core Test

    AUTOSAR Handbook KPIT Technologies Ltd.38

  • Module Name Description

    The Complex Drivers contain drivers which are not standardized in AUTOSAR and which utilize specific properties of a microcontroller or ECU (e.g. complex peripheral devices). They include functionalities for sensor evaluation and controller monitoring with direct access to the microcontroller.

    Complex Drivers

    AUTOSAR Handbook KPIT Technologies Ltd.39

  • AUTOSAR Handbook KPIT Technologies Ltd.40

    [ THIS PAGE INTENTIONALLY LEFT BLANK ]

  • Part 6

    Multicore Support

    AUTOSAR Handbook KPIT Technologies Ltd.41

  • As the demand for computing power is rapidly increasing in the automotive domain, OEMs andTier-one suppliers are gradually introducing multicore ECUs in their electronic architectures. Additionally, these multicore ECUs offer new features such as higher levels of parallelism which ease the respect of the safety requirements such as the ISO26262 and the implementation of other more complex automotive use-cases. Main use cases for multicore ECUs can be;

    Introduction:

    Keeping all this in mind, AUTOSAR version 4.0 has introduced support for multi-core embedded real-time operating systems. New concepts such as locatable entities (LEs), multi-core startup/shutdown, Inter-OS-Application Communicator (IOC), and Spinlock have been introduced in the AUTOSAR multi-core OS architecture specification to extend the single-core OS specifications.The Inter-OS-Application Communicator (IOC) which is part of AUTOSAR OS, provides communication services which can be accessed by clients which need to communicate across OS-Application boundaries on the same ECU. Every Core runs a kind of ECU state management. Each core will also have 'Core Test' module running in BSW.

    1. Decreasing complexity of architecture 2. Dealing with resource demanding applications3. Improving the safety4. Dedicated use of cores

    AUTOSAR Handbook KPIT Technologies Ltd.42

  • ECUCore0 Core1

    COMPLEXDRIVERS

    I/O HW

    ABSTRACTIONONBOARD DEVICE

    ABSTRACTION

    MICROCONTROLLER

    RUN TIME ENVIRONMENT

    OPERTING SYSTEM &SYSTEM SERVICES

    MCUDRIVERS

    MEMORYDRIVERS

    MEMORYHARDWARE

    ABSTRACTION

    COMDRIVERS

    COMHARDWARE

    ABSTRACTION

    MEMORYSERVICES

    COMSERVICES

    I/ODRIVERS

    APPLICATION LAYER

    ECU State Manager

    IOC

    ASR

    OS

    SYSTEM SERVICESECU State Manager

    IOC

    ASR

    OS COMPLEX

    DRIVERS

    AUTOSAR Handbook KPIT Technologies Ltd.43

    Figure 10: An ECU with two core microcontroller

  • AUTOSAR Handbook KPIT Technologies Ltd.44

    [ THIS PAGE INTENTIONALLY LEFT BLANK ]

  • Part 7

    Functional Safety

    AUTOSAR Handbook KPIT Technologies Ltd.45

  • Functional Safety is part of the overall safety of a system that depends on the correct execution of specific functions. The goal of functional safety is to perform the intended function correctly or the system will fail in a predictable safe manner. Functional safety standard ISO26262 which is derived from IEC-61508 mandates us to have automotive specific risk based approach for Electrical and Electronic (E/E) systems. It is applicable to passenger cars with max gross weight up to 3.5 tons.

    Aspects such as complexity of the system design can be relevant for achievement of functional safety in automotive field. Software is one parameter that can influence complexity on system level. New techniques and concepts for software development can be used in order to minimize complexity and therefore can ease the achievement of functional safety.As a software standardization initiative, AUTOSAR R4.0 considers aspects of functional safety relevant for todays automotive software development.

    Introduction:

    AUTOSAR Handbook KPIT Technologies Ltd.46

  • AUTOSAR Architecture & Safety Implementation in R4.0:

    Memory Protection feature (MPU) in OS SC4

    Multi core OS featuresE-Gas monitoring related features

    Program flow monitoring related featuresTiming related features includes;

    Program flow monitoring related featuresCommunication Stack Related Features such as Data sequence control and multiple communication links

    Features related to the provision of synchronized time basesProvision of a synchronized time-base within a clusterServices for accessing to synchronized time-basesSync AUTOSAR OS with FlexRay Global Time in a well-defined way

    Features related to synchronization of processing of asynchronous processing unitsServices for synchronization of SW-Cs

    Features to allow time deterministic implementation of applicationsFeatures related to protection against timing violation

    SWC End-to-End (E2E) communication protectionMemory partitioning and user/supervisor-modes Related Features

    AUTOSAR Handbook KPIT Technologies Ltd.47

  • AUTOSAR Handbook KPIT Technologies Ltd.48

    Figure 11: Safety End to End (E2E) Communication Protection Module

    I/O HW

    ABSTRACTIONONBOARD

    ABSTRACTIONDEVICE

    MEMORYHARDWARE

    ABSTRACTION

    COMHARDWARE

    ABSTRACTION

    MEMORYSERVICES

    COMSERVICES

    SW

    SW

    OPERATING SYSTEM &SYSTEM SERVICES

    RUN TIME ENVIRONMENT

    COMPLEXDRIVERS

    MICROCONTROLLER 1/ ECU 1

    OS-Application 2

    MCUDRIVERS

    MEMORYDRIVERS

    COMDRIVERS

    I/ODRIVERS

    OS-Application 1

    Receiver 1 Sender

    SW

    HW

    HW HW

    SW

    E2E

    Libr

    ary

    IOC

    E2E protection wrapper

    E2E protection wrapper

    Libraries

    RTE

    Wra

    pper

    Rece

    iver

    2

    Micro

    ECU2controller 2/

  • Figure 11 describes typical sources of interferences, causing errors detected by E2E protection:

    SW-related sources:Error in mostly generated RTE,Error in partially generated and partially hand-coded COMError in network stackError in generated IOC or OS

    Microcontroller error during core/partition switchFailure of HW networkNetwork EMI

    HW-related sources:

    Microcontroller failure during context switch (partition) or on the communication between cores

    E2E Lib extends signals with CRC- and Sequence Counter-information on the sender side and checks the information on the receiver side, ensuring efficient communication failure detection between SWCs.

    AUTOSAR Handbook KPIT Technologies Ltd.49

  • AUTOSAR Handbook KPIT Technologies Ltd.50

    Figure 12: Partitioning concept in functional safety

    ECU-Hardware

    ActuatorSoftware

    Component

    AUTOSARInterface

    ApplicationSoftware

    Component

    SensorSoftware

    Component

    ApplicationSoftware

    Component

    ..............

    AUTOSARSoftware

    Basic SoftwareStandardized

    Interface

    AUTOSARInterface

    AUTOSARInterface

    AUTOSARInterface

    MicrocontrollerAbstraction

    StandardizedAUTOSARInterface

    Services

    StandardizedInterface

    ECUAbstraction

    AUTOSARInterface

    StandardizedInterface

    ComplexDeviceDrivers

    AUTOSARInterface

    StandardizedInterface

    Communication

    StandardizedInterface

    StandardizedInterface

    OperatingSystem

    Standardized Inteface

    Partition 2 (No ASIL) Partition 1 (ASIL D) Partition 3 (ASIL A)

    !

    Partition 5 (ASIL D)

    AUTOSAR Runtime Environment (RTE)

  • Various software components (SW-Cs) are implemented with different Automotive Safety Integrity Levels (ASILs) in application layer. ASIL A, ASIL B, ASIL C and ASIL D are different safety integrity levels which are followed during software development depending on complexity and criticality of modules/ components (A being least critical, D is most critical).

    AUTOSAR Handbook KPIT Technologies Ltd.51

    Exposure Controllability Severity ASIL

    Probability of exposureProbability of control

    Severity of Failure

    ASIL ALeast stringent ASIL B ASIL C

    ASIL DMost stringent

    Figure 13: Automotive Safety Integrity Levels (ASIL)

  • With partitioning concept in AUTOSAR R4.0, SWCs can be placed into separate partitions of ECU. These partitions can be terminated, monitored and restarted independently. The sole purpose of these separate partitions is to achieve Freedom from Interference. With this SWCs with different ASILs (according to ISO26262) can be executed on same ECU.

    AUTOSAR Handbook KPIT Technologies Ltd.52

  • Part 8

    ECU Spectrum Toolchain

    AUTOSAR Handbook KPIT Technologies Ltd.53

  • KPITs ECU Spectrum toolchain dynamically generates GUI controls for AUTOSAR Modules specified in ECU Configuration Parameter Definition File and also generates ECU Configuration Description File.

    ECU Spectrum toolchain supports Plug-in option for Generation Tools including third party Generation Tools. Using this feature, C Header and Source files can be generated directly by invoking the Generation Tool from the ECU Spectrum.

    Introduction:

    AUTOSAR Handbook KPIT Technologies Ltd.54

  • ECU Configuration Parameter Definition File(s): in XML format and contains definition for Modules, Containers and Parameters. The format of the XML file must compliant to AUTOSAR ECU specification standards.

    Custom Configuration CSV file: as input at the time of loading the System Configuration Description file. This CSV file is in text format and contains the tier-1 specific notifications and ECU Configuration gets updated automatically based on the notifications.

    Inputs Used:

    The output of ECU Spectrum software is ECU Configuration Description File in XML format, which contains the configured values for Parameters, Containers and Modules. ECU Configuration Description File format must compliant to AUTOSAR ECU specification standards.

    Outputs Generated:

    AUTOSAR Handbook KPIT Technologies Ltd.55

  • AUTOSAR Handbook KPIT Technologies Ltd.56

    MICROCONTROLLER

    MICROCONTROLLER ABSTRACTION LAYER

    RUN TIME ENVIRONMENT

    APPLICATION LAYER

    OS & SERVICES

    ECU ABSTRACTION LAYER COMPLEX DRIVERS

    MICROCONTROLLER

    MICROCONTROLLER ABSTRACTION LAYER

    RUN TIME ENVIRONMENT

    APPLICATION LAYER

    OS & SERVICES

    ECU ABSTRACTION LAYER COMPLEX DRIVERS

    KPITECU Spectrum

    N/W Design Architecture Application Schema

    Design

    KPITECU Spectrum

    MCAL Configuration MCAL Code Generation

    KPITECU Spectrum

    BSW Configuration BSW Code Generation

    KPITECU Spectrum

    RTE Configuration RTE Code Generation

    Figure 14: KPITs ECU Spectrum Toolchain for AUTOSAR Layered Model Development

  • AUTOSAR Handbook KPIT Technologies Ltd.57

    KPIT ECU Spectrum

    ECU Configuration Parameter Definition file (AUTOSAR XML)

    ECU Configuration Parameter Description

    file (AUTOSAR XML)

    Project Setting File (.ONE FILE)

    Generation Tools

    Header and Source Files (.C FILES)

    Figure 15: ECU Spectrum Workflow High-level

  • AUTOSAR Handbook KPIT Technologies Ltd.58

    Figure 16: ECU Spectrum Workflow Detailed

    Application RTE

    APPLICATION CODE

    GENERATION

    APPLICATION SOFTWARE

    DESIGN

    BSWECU

    Hardware

    OS CONFIGURATION & GENERATOR

    SYSTEM SERVICES

    COMPLEX DRIVERS

    APPLICATION MIGRATION

    HARDWARE IN LOOP TESTING (HIL)

    MCAL MANAGEMENT

    CONSOLE

    NEUTRAL MCAL

    TESTING

    CONFORMANCE TEST EXPERIENCE

    MCALCODE

    GENERATION

    MCALCONFIGURATION

    & VALIDATION

    RTE CONFIGURATION

    RTE CODE

    GENERATION

    NETWORKDESIGN/

    ARCHITECTURE

    AUTOSAR SCHEMA BASED

    APPLICATION DESIGN

    BSW CODE

    GENERATION

    BSW CONFIGURATION &

    VALIDATIONRTE/ BSW ECU

    Configuration Description

    File

    BSW/ MCAL ECU

    Configuration Description

    File

    RTE C Source & Header File

    Application Header File

    Compiler/ Linker

    C Source & Header File

    BSW/MCAL Module C Source & Header File

    BSWStatic Code

    Parameter Definition File

    OEM/ Tier1 Application

    ECU Extract, DBC,FIBEX, LDF, ODX

    Software Component Description

  • AUTOSAR Handbook KPIT Technologies Ltd.59

    Menu Bar Toolbar

    Right Configuration ViewMessage Info AreaLeft Selection View

    Figure 17: ECU Spectrum Main Screen

  • Simple to use like any other Windows based toolUser-friendly GUISupport for MRU (Most Recently Used) featureValidation - The modules configuration can be checked for correctness and completeness through validation.For any inconsistencies/dependencies, the Editor displays the Error(s) / Information(s) / Message(s) in the Message Info windowStoring and Loading of User Configuration dataImport of AUTOSAR ECU Extract, DBC, LDF and Fibex data HTML Report Generation - Editor allows the user to get the summary of the currently loaded projectMicrosoft compliant Help SupportEasy installation and setup Less memory consumptionNo dependency on any RTE

    ECU Spectrum Features

    AUTOSAR Handbook KPIT Technologies Ltd.60

  • Project: A Project is used to store the configuration in .one file format.

    Module: Modules denote an ECU Configuration Parameters Software Module. Individual modules are assigned a unique name. Number of module instances depends on multiplicity of the module.

    Container: Containers are used to group parameters and references. The number of instances of a container depends on multiplicity of the container.

    Sub-Container: A Sub-Container is also used to group parameters and references. Sub-container is a part of container. Sub-containers are defined in containers. The number of instances of a container depends on multiplicity of the container.

    Terms Used:

    AUTOSAR Handbook KPIT Technologies Ltd.61

  • Multiplicity: Multiplicity is used to specify how often a specific configuration element (module, container, parameter or reference) may occur in an ECU Configuration Description file. Lower-Multiplicity and Upper-Multiplicity are two attributes to specify minimum and maximum occurrences. In any case Lower-Multiplicity should be less than or equal to Upper-Multiplicity. Lower-Multiplicity is mentioned as 1 means that the element is mandatory. Lower-Multiplicity mentioned as 0, means that the element is an option. Upper-Multiplicity mentioned as * means that the parameter can occur any number of times.

    Multiple Configuration Set: It is used to allow the description of several ECU Configuration Sets.

    Template: Templates are definitions of configurable elements (Module, Container or Sub-Container). This format is taken from the Definition File.

    Calculation Formula: A Calculation formula is used to provide information about how the values can be computed. It utilizes references to address foreign elements to gather the required information.

    AUTOSAR Handbook KPIT Technologies Ltd.62

  • Part 9

    About KPIT

    AUTOSAR Handbook KPIT Technologies Ltd.63

  • AUTOSAR development at KPIT started in early 2005 when we became AUTOSAR Premium Member. We are actively contributing to the standardization movement of AUTOSAR and have been appointed as a general contractor for writing Conformance Specifications for the AUTOSAR standard. We are also the general contractor for the AUTOSAR conformance test project.

    We are an AUTOSAR software platform focus company and endorse the AUTOSAR philosophy of Cooperate on Standards.

    Our focus area in AUTOSAR is to develop AUTOSAR BSW Modules & MCAL drivers as part of the AUTOSAR stack and provide services around these Modules. We have developed the first complete MCAL product.

    In our endeavor to provide standard compliant, high quality, and production ready components we cooperate with specialized AUTOSAR tools. The expectation from the cooperation is to make our components compatible with these specialized AUTOSAR compliant tools.

    We are continuously supporting Network platforms to premium brands in Europe for last 7 years and have supplied platforms for about 150 ECUs which are integrated in the vehicles-on-road. This support is currently being extended to AUTOSAR.

    We are also the Premium member of JasPar.

    KPIT AUTOSAR Expertise

    AUTOSAR Handbook KPIT Technologies Ltd.64

  • Faster time to complete AUTOSAR Conformance by supplying components that are compliant to AUTOSAR standard.

    Reduced in Bill of Material (BOM) costs through the Automotive-grade BSW components.

    Improved performance of platforms through Hand-coded, Optimized AUTOSAR BSW Modules including MCAL.

    Faster and full-proof AUTOSAR migration of the legacy Applications by designing Application Migration methodologies.

    Reduced in development overhead and overall Time-to-Market (TTM) by using KPIT AUTOSAR Tool chain

    KPIT Advantages

    AUTOSAR Handbook KPIT Technologies Ltd.65

  • AUTOSAR Handbook KPIT Technologies Ltd.66

    Figure 18: KPIT AUTOSAR Differentiation Diagram

    Enabling New Technology Adoption

    Optimization

    Renovative Improvement

    Time Benefit

    Enabling Compliance

    Executed AUTOSAR migration for safety ECUStrong experience in migrating safety critical applications to upcoming, improved communication protocols such as FlexRay

    AUTOSAR Safety ECU created with the Tier1performs better than legacyUnique Business Model makes the migration process more cost effective and smoother you willCustomer does not get Locked to specific tool, vendor product or methodology

    KPIT Application Migration Methodology designed for extensibility and thus helps you design long term AUTOSAR strategy rather than experimenting with a pilot aloneMigration methodology helps you to reuse your legacy toolchain and modifies them to adopt newer requirements as much as possible

    Onsite + Offshore model of engagement improves speed of execution with better efficienciesAlready built and tested conformance test suites enable fastest path to production readiness

    AUTOSAR Conformance Spec experience helps you build solution that passes conformance tests quicklyOpen Test & Automation Framework invented by KPIT helps you test and validated performance of the system at multiple levels in the V Cycle Our Methodologies help you meet desired system performance

  • Application RTE

    APPLICATION CODE

    GENERATION

    APPLICATION SOFTWARE

    DESIGN

    BSW ECU Hardware

    OS CONFIGURATION & GENERATOR

    SYSTEM SERVICES

    COMPLEX DRIVERS

    APPLICATION MIGRATION

    HARDWARE IN LOOP TESTING (HIL)

    MCAL MANAGEMENT

    CONSOLE

    NEUTRAL MCAL

    TESTING

    CONFORMANCE TEST EXPERIENCE

    MCALCODE

    GENERATION

    MCALCONFIGURATION

    RTE CONFIGURATION

    CODE GENERATION

    NETWORKDESIGN/

    ARCHITECTURE

    AUTOSAR SCHEMA BASED

    APPLICATION DESIGN

    BSW CODE

    GENERATION

    BSW CONFIGURATION

    Application RTE

    APPLICATION CODE

    GENERATION

    APPLICATION SOFTWARE

    DESIGN

    BSW ECU Hardware

    OS CONFIGURATION & GENERATOR

    SYSTEM SERVICES

    COMPLEX DRIVERS

    APPLICATION MIGRATION

    HARDWARE IN LOOP TESTING (HIL)

    MCAL MANAGEMENT

    CONSOLE

    NEUTRAL MCAL

    TESTING

    CONFORMANCE TEST EXPERIENCE

    MCALCODE

    GENERATION

    MCALCONFIGURATION

    RTE CONFIGURATION

    RTE CODE

    GENERATION

    NETWORKDESIGN/

    ARCHITECTURE

    AUTOSAR SCHEMA BASED

    APPLICATION DESIGN

    BSW CODE

    GENERATION

    BSW CONFIGURATION

    KPIT PRODUCT USING 3 PARTY TOOLSKPIT SERVICE USING 3RD PARTY TOOLSKPIT SERVICEKPIT SERVICEKPIT PRODUCT

    AUTOSAR Handbook KPIT Technologies Ltd.67

    Software Services / Products Provided by KPIT

    Figure 19: Setting up AUTOSAR environment with KPIT

  • AUTOSAR Handbook KPIT Technologies Ltd.68

    [ THIS PAGE INTENTIONALLY LEFT BLANK ]

  • AUTOSAR Handbook KPIT Technologies Ltd.

    2013

    Legal Notice

    We have made all efforts to offer current, correct and clearly-expressed information

    All information in this handbook has been compiled meticulously; however, we cannot guarantee that the contents are completely accurate or free of errors. Neither the KPIT Technologies Ltd. nor the authors of this document accept any legal responsibility for its contents or any consequences, including direct or indirect liability, arising from its use.

    reserves the right to revise or change information contained in this document at any time without notice or justification to any person or entity.

    AUTOSAR and the AUTOSAR logo are registered trademarks of the AUTOSAR GbR. The AUTOSAR specifications are copyright protected intellectual property and may not be used without prior permission. In case you want to use it, please contact the AUTOSAR GbR (www.autosar.org)

    KPIT Technologies Ltd.

    KPIT Technologies Ltd.

    V 1.

    0-06

    12

    69

  • AUTOSAR Handbook KPIT Technologies Ltd.

    KPIT (Shanghai) Software Technology Co. Ltd.Room 504, LZY Tower,4711 Jiaotong Road, Putuo District,Shanghai 200331, ChinaTel: +86 21 56313620Fax: +86 21 56313925

    In2Soft GmbH(A KPIT Company)Adams-Lehmann-Str. 10980797 MunichGermanyPhone: +49-89-322-9966-0Fax: +49-89-322-9966-999

    China Germany

    KPIT Technologies Ltd.Muromachi CS Bldg. 7F,4-6-5, Nihonbashi - Muromachi, Chuo-Ku,Tokyo, 103 0022JapanPhone: +81-3-6913-8501Fax: +81-3-5205-2434

    Japan South KoreaKorea Liaison Office3-306 Eunma Apt.Daechi-dong Gangnam-guSeoul - 135 778South Korea

    USAKPIT Infosystems Inc.33 Wood Avenue South, STE 720, Iselin, NJ 08830,USAPhone: +1-732-321-0921Fax: +1-732-321-0922

    KPIT Technologies Ltd.Plot No 35/36, Rajiv Gandhi Infotech Park,Phase 1, MIDC, Hinjawadi, Pune - 411057, IndiaPhone: +91 - 20 - 66525000Fax: +91 - 20 66525001

    Headquarter - India

    * Premium Members

    * *

    Page 1Page 2Page 3Page 4Page 5Page 6Page 7Page 8Page 9Page 10Page 11Page 12Page 13Page 14Page 15Page 16Page 17Page 18Page 19Page 20Page 21Page 22Page 23Page 24Page 25Page 26Page 27Page 28Page 29Page 30Page 31Page 32Page 33Page 34Page 35Page 36Page 37Page 38Page 39Page 40Page 41Page 42Page 43Page 44Page 45Page 46Page 47Page 48Page 49Page 50Page 51Page 52Page 53Page 54Page 55Page 56Page 57Page 58Page 59Page 60Page 61Page 62Page 63Page 64Page 65Page 66Page 67Page 68Page 69Page 70Page 71Page 72Page 73Page 74