AUTOSAR: The Software Architecture of Automotive ECUs

Understand AUTOSAR in an automotive ECU: the SWC, RTE and BSW layers, the ARXML format, and the differences between Classic and Adaptive.

Par Guillaume Sery
Le 02 December 2026
Autosar

AUTOSAR: The Software Architecture of Automotive ECUs

AUTOSAR (AUTomotive Open System ARchitecture) is a set of specifications that defines how software in automotive control units (ECUs, Electronic Control Units) is organized and how its components communicate. It establishes common interfaces between vehicle functions and the services they rely on, such as network communication or access to inputs and outputs.

The AUTOSAR consortium publishes two complementary platforms. AUTOSAR Classic runs on microcontroller-based ECUs subject to strict real-time constraints. AUTOSAR Adaptive targets more powerful computing platforms, where applications communicate mainly through service-oriented interfaces.

Why Separate Function from Hardware in an ECU?

In a heated seat ECU, the application logic determines the heating level based on a setpoint and a temperature measurement. Acquiring that measurement and driving the electrical output, however, depend on the board and the microcontroller. With AUTOSAR Classic, the application component uses defined interfaces to read the measurement and send its command. The lower layers handle the link to the hardware.

This separation helps a supplier reuse a function on another ECU variant. If the data type, units and expected interface behavior remain compatible, part of the application code can be kept. The integrator still has to adapt the configuration to the new target and verify execution timing and available resources. Our embedded software guide details the constraints specific to microcontrollers and embedded operating systems.

The Three Layers of AUTOSAR Classic

Layer Role in the ECU Heated seat example
Application layer (SWC) Groups the software components (SWCs) that perform vehicle functions. Components expose their interfaces through ports. One component calculates the heating command from the temperature and the setpoint.
RTE (Runtime Environment) Connects component ports to one another and provides access to the services defined in the ECU configuration. The control component receives the measurement on the port configured for that data.
BSW (Basic Software) Provides basic services, including the operating system, communication and diagnostics, as well as ECU and microcontroller abstraction. The lower layers handle signal acquisition and output control.

The MCAL (Microcontroller Abstraction Layer) is part of the BSW. Among other things, it provides drivers for the microcontroller’s peripherals, such as the analog-to-digital converter used to acquire a sensor signal. The RTE, for its part, is generated for a specific ECU from the project’s descriptions and configuration.

AUTOSAR Classic or Adaptive: Which Platform Should You Choose?

Criterion AUTOSAR Classic AUTOSAR Adaptive
Target hardware Microcontroller-based ECUs, often with a limited memory budget. Microprocessor-based computing platforms with more resources.
Execution and communication Scheduling configured for the ECU. Communication between components through the RTE. Applications run as processes. Services can be discovered at runtime.
Example use case Seat temperature control or body electronics control. Processing data from multiple sensors for a driver assistance function.

The choice depends on the function’s requirements. If a command must respond within a defined maximum time and fits on a microcontroller, Classic is a good starting point. If the function processes larger volumes of data and relies on services consumed by several applications, Adaptive may be the better fit. A vehicle can use both platforms. AUTOSAR Foundation brings together common specifications that support their interoperability.

From ARXML Files to ECU Testing

An ARXML file is an XML description that follows the AUTOSAR schemas. Depending on the project stage, it can describe data types, ports, the allocation of components to ECUs, or the configuration of software modules. These files are used to exchange data between tools and can feed the configuration of the lower layers and the generation of the RTE.

An integration mismatch can go unnoticed at compile time. For example, two components may handle the same numeric type while interpreting the temperature value differently. A targeted test checks that a known input temperature produces the expected value at the application level. If the measurement arrives periodically, another test can check how the component behaves when the data stops being updated.

On a HIL (Hardware-in-the-Loop) test bench, the real ECU is connected to a simulated environment. The team can vary the simulated temperature and measure the output response time on the target hardware. Our ECU Test article on automotive ECU validation explains where HIL testing fits between integration testing and in-vehicle testing.

Embedded Development and Communication Integration with DUNASYS

DUNASYS Ingénierie supports industrial companies with embedded software development, integration and validation. Support can take the form of custom development or team augmentation.

When the project involves communication between ECUs, DunaStack provides configurable communication stacks for protocols such as CAN, CAN FD, LIN and DoIP. On an AUTOSAR project, the choice of a communication stack should be checked against the interfaces, BSW modules and specification version selected for the ECU.

FAQ

AUTOSAR defines software architectures and interfaces. In Classic, the operating system is one of the Basic Software modules. Adaptive defines an execution environment and services that run on top of an operating system providing POSIX interfaces.

Yes, if the target supports the interfaces and execution behavior the component expects. In Classic, the integrator must configure the RTE for the target and check scheduling, memory and interface behavior on the new ECU.

AUTOSAR describes the architecture and interfaces of automotive embedded software. ISO 26262 governs the functional safety of electrical and electronic systems in road vehicles. For a project subject to ISO 26262, the team must demonstrate that the implementation meets the safety requirements allocated to it.