Basics-Wrapup

View on GitHub

Autosar Layered Architecture

Autosar Layered architecture

Microcontroller

this is the microcontroller as a hardware resource such as peripherals and external specs of the microcontroller

Microcontroller Abstraction Layer (Mcal)

The Microcontroller Abstraction Layer is the lowest software layer of the Basic Software. It contains internal drivers, which are software modules with direct access to the µC and internal peripherals

this module is HW dependent and is usually supplied by mC supplier

ECU Abstraction Layer

The ECU Abstraction Layer interfaces the drivers of the Microcontroller Abstraction Layer. It also contains drivers for external devices. It offers an API for access to peripherals and devices regardless of their location (µC internal/external) and their connection to the µC (port pins, type of interface)

abstract upper layers from ECU layout

contains external drivers for peripherals that are on the ECU level such as external EEPROM

Complex Drivers Layer

The Complex Drivers Layer spans from the hardware to the RTE.

Services Layer

The Services Layer is the highest layer of the Basic Software which also applies for its relevance for the application software: while access to I/O signals is covered by the ECU Abstraction Layer, the Services Layer offers:

RTE

The RTE is a layer providing communication services(methods) to the application software (AUTOSAR Software Components and/or AUTOSAR Sensor/Actuator components). Above the RTE the software architecture style changes from “layered“ to “component style“. The AUTOSAR Software Components communicate with other components (inter and/or intra ECU) and/or services via the RTE.

such as Making AUTOSAR Software Components independent from the mapping to a specific ECU.

Implementation: ECU and application specific (generated individually for each ECU) Upper Interface: completely ECU independent

Virtual Function Bus help communicaion between SWCs even if it is not within the same ECU

Libraries

Libraries are a collection of functions for related purposes:

The following libraries are specified within AUTOSAR:

Some Remarks

The AUTOSAR Basic Software supports the following configuration classes:

  1. Pre-compile time
    • Preprocessor instructions
    • Code generation (selection or synthetization)
  2. Link time
    • Constant data outside the module; the data can be configured after the module has been compiled
  3. Post-build time
    • Loadable constant data outside the module. Very similar to [2], but the data is located in a specific memory segment that allows reloading (e.g. reflashing in ECU production line)

Use cases Pre-compile time configuration would be chosen for