AUTOSAR BSW Explained: Architecture, Modules and Integration
AUTOSAR BSW (Basic Software) provides the reusable infrastructure that allows automotive application software to interact with an ECU's hardware and common platform services without directly managing every microcontroller detail. It includes software for operating-system services, communication, diagnostics, memory, hardware abstraction and microcontroller drivers.
If you are learning AUTOSAR Classic, BSW is one of the most important parts of the architecture to understand. It is not a single software module or simply a collection of low-level drivers. It is a structured set of modules arranged in layers, configured for a particular ECU and integrated with the Runtime Environment (RTE) and application software.
This guide explains the AUTOSAR BSW architecture, the purpose of its main layers, commonly used modules, the role of MCAL, and the practical steps involved in configuration and ECU integration.
Table of Contents
What Is AUTOSAR BSW?
AUTOSAR BSW stands for AUTOSAR Basic Software. It is the infrastructure software layer of an AUTOSAR ECU. It provides standardized services and hardware-facing interfaces that support application software and other software modules.
A vehicle ECU needs to perform many tasks beyond its main application function. It must initialize hardware, schedule software, communicate over vehicle networks, store data, monitor faults, manage operating modes and access microcontroller peripherals. BSW provides much of this common functionality through defined modules and interfaces.
For example, consider a body control ECU that manages interior lights:
The application software decides when a light should turn on.
The RTE provides the communication interface between the application component and the underlying software.
BSW communication and I/O-related modules provide configured services and access paths.
MCAL drivers interact with microcontroller peripherals, such as GPIO or communication hardware.
The microcontroller and external circuitry physically drive the output.
The exact module path depends on the ECU design and configuration. The important idea is that application logic does not need to directly manipulate every hardware register.
Why is BSW needed?
Without a layered software architecture, each application could implement its own operating-system access, communication handling, memory management and hardware drivers. That would increase duplicated work and make software harder to reuse across ECU variants or microcontroller families.
AUTOSAR BSW helps by providing:
Standardized interfaces: Modules communicate through defined interfaces.
Hardware abstraction: Higher software layers are insulated from many hardware-specific details.
Reusability: Common infrastructure can be reused across ECU projects, subject to configuration and implementation constraints.
Modularity: Functions are separated into modules with defined responsibilities.
Configurability: ECU-specific behaviour can be selected and generated through an AUTOSAR toolchain.
Integration structure: Suppliers and OEMs can work with agreed module boundaries and configuration artefacts.
AUTOSAR standardizes architecture, interfaces and methodology. It does not mean that every vendor's BSW implementation is identical or that an ECU can be moved to another microcontroller without engineering work.
Where BSW Fits in AUTOSAR Classic Architecture
The AUTOSAR Classic Platform has three major software layers at the highest level:
Application Layer
Runtime Environment (RTE)
Basic Software (BSW)
These layers execute on a microcontroller-based ECU. The RTE separates application software components from the underlying BSW infrastructure.
Simplified AUTOSAR Classic stack
+---------------------------------------------+
| Application Layer |
| Software Components (SWCs) |
+---------------------------------------------+
| Runtime Environment (RTE) |
+---------------------------------------------+
| Basic Software (BSW) |
| |
| Services Layer |
| ECU Abstraction Layer |
| Microcontroller Abstraction Layer (MCAL) |
| Complex Drivers (where required) |
+---------------------------------------------+
| Microcontroller / Hardware |
+---------------------------------------------+
This is a conceptual view. The precise mapping and module set depend on the AUTOSAR release, ECU design and implementation.
The Application Layer contains software components that implement vehicle functions. The RTE provides communication between software components and access to BSW services through defined interfaces. BSW supplies the infrastructure below the RTE.
AUTOSAR's official Classic Platform overview describes the application, RTE and BSW separation and identifies Services, ECU Abstraction, Microcontroller Abstraction and Complex Drivers within the BSW architecture.
AUTOSAR BSW Architecture and Layers
BSW is organized into three principal layers, with Complex Drivers used for functions that do not fit suitably into the standardized layered modules.
| BSW area | Main responsibility | Typical examples |
|---|---|---|
| Services Layer | Provides common ECU-wide services | OS, EcuM, BswM, ComM, NvM, Dem, Dcm |
| ECU Abstraction Layer | Hides ECU hardware arrangement and device details | IoHwAb, EepAb, MemIf, CanIf |
| Microcontroller Abstraction Layer (MCAL) | Provides standardized access to MCU peripherals | Port, Dio, Adc, Pwm, Spi, Can, Mcu |
| Complex Drivers | Implements specialized or time-critical hardware functions | Project-specific sensor, actuator or peripheral drivers |
The names and allocation of individual modules should always be checked against the AUTOSAR release and the relevant module specifications. The table is an educational overview rather than a complete module catalogue.
1. Services Layer
The Services Layer is the highest layer within BSW. It provides common services used by application software and other BSW modules. These services help manage ECU operation, communication, memory, diagnostics and other platform functions.
Operating System (OS)
The AUTOSAR Operating System provides task scheduling and synchronization mechanisms for ECU software. It manages tasks, events, alarms, counters, resources and interrupt-related operating-system services according to the configured OS application.
For example, a periodic task may execute a sensor-processing function at a configured cycle. The actual schedule, priorities and timing constraints depend on the ECU design.
ECU State Manager (EcuM)
EcuM manages ECU operating states and supports initialization and shutdown sequences. It coordinates activities needed to bring the ECU into an operational state and to handle configured sleep or shutdown transitions.
BSW Mode Manager (BswM)
BswM coordinates mode-related behaviour across BSW modules and software components. It evaluates configured mode requests and rules, then triggers configured actions.
For example, a change in ECU or communication mode can lead to a coordinated change in module behaviour. The specific rules are project-configured.
Communication Manager (ComM)
ComM coordinates communication requests and communication modes for network channels. It helps manage when communication is requested and when a network can move toward a no-communication or sleep-related state.
ComM commonly interacts with network-specific state managers and network management modules.
Diagnostic Event Manager (Dem)
Dem manages diagnostic events and diagnostic trouble-code-related information. It supports event status handling and diagnostic data storage according to configuration.
Dem is commonly integrated with diagnostic monitoring software and the Diagnostic Communication Manager.
Diagnostic Communication Manager (Dcm)
Dcm handles diagnostic communication services at the application level, including UDS services when configured. It processes diagnostic requests and coordinates access to diagnostic data and routines through configured interfaces.
For example, a diagnostic tester may request ECU identification data or read DTC information. Dcm handles the relevant diagnostic service flow and interfaces with other modules as configured.
Non-Volatile Memory Manager (NvM)
NvM manages access to configured non-volatile data blocks. It coordinates read, write, restore and management operations with lower memory abstraction and driver modules.
Typical use cases include storing calibration-related values, learned data, counters or ECU configuration data. The exact data and persistence requirements are project-specific.
Other service modules
Depending on the ECU and release, the Services Layer can also include modules and services such as:
Watchdog Manager (WdgM)
Function Inhibition Manager (FiM)
Development Error Tracer (Det)
Communication services such as COM and PduR
Network management modules
Crypto services
Time services
ECU resource and diagnostic support modules
Not every ECU includes every module. The ECU's functional requirements and configuration determine the selected BSW module set.
2. ECU Abstraction Layer
The ECU Abstraction Layer hides details of the ECU hardware arrangement from higher software layers. It provides interfaces that help software access devices and hardware resources without needing to know every low-level connection or peripheral detail.
This layer is important because an ECU may use both microcontroller-integrated peripherals and external devices connected to the board.
Why ECU abstraction matters
Imagine an ECU that reads a sensor through an external device connected to the microcontroller. The application should not need to know the exact pin, bus wiring or device arrangement. The abstraction layer can provide a stable software interface while the hardware implementation is handled below it.
Examples of ECU abstraction responsibilities include:
Access to external or onboard devices.
Hiding hardware connection details.
Providing interfaces above lower-level drivers.
Supporting reuse across ECU hardware variants where the interfaces and configuration remain compatible.
Examples of ECU Abstraction modules
| Module or group | Purpose |
|---|---|
| I/O Hardware Abstraction (IoHwAb) | Provides project- or ECU-level abstraction for input and output signals |
| CAN Interface (CanIf) | Provides a standardized interface between upper communication modules and CAN drivers |
| LIN Interface (LinIf) | Provides an interface to LIN communication drivers |
| Ethernet Interface (EthIf) | Provides an abstraction interface for Ethernet communication hardware |
| Memory Interface (MemIf) | Provides a common interface to memory abstraction modules |
| EEPROM Abstraction (EepAb) | Abstracts EEPROM access where used by the ECU design |
The precise module placement and availability should be verified against the selected AUTOSAR release and vendor implementation. Some modules have specific architectural assignments that should not be generalized from their names alone.
3. Microcontroller Abstraction Layer (MCAL)
The Microcontroller Abstraction Layer (MCAL) is the lowest standardized BSW layer. It provides software interfaces to microcontroller peripherals and helps higher layers remain independent of the low-level register details of a specific MCU.
MCAL is hardware-dependent. It is usually supplied or adapted for a particular microcontroller family and AUTOSAR release.
Common MCAL drivers
| MCAL driver | Main purpose | Example use |
|---|---|---|
| Mcu | Microcontroller initialization and clock-related configuration | Clock and reset setup |
| Port | Configures port pins and pin modes | Pin direction and alternate function |
| Dio | Digital input/output access | Reading a digital input or setting an output |
| Adc | Analog-to-digital conversion | Reading an analog sensor input |
| Pwm | Pulse-width modulation | Controlling a motor or actuator signal |
| Spi | Serial Peripheral Interface communication | Communicating with an external chip |
| Can | CAN controller driver | Sending and receiving CAN frames |
| CanTrcv | CAN transceiver control | Managing transceiver modes |
| Fls | Flash memory driver | Accessing supported flash memory |
| Wdg | Watchdog driver | Controlling a hardware watchdog |
| Gpt | General-purpose timer driver | Timer and time-base functions |
| Icu | Input capture functionality | Measuring pulse timing |
The exact driver set depends on the microcontroller, hardware design, vendor delivery and AUTOSAR release. A driver name does not imply that every MCU supports the same features or configuration options.
Example: Reading an analog sensor
A simplified path for an analog sensor input may look like this:
The application software requests or consumes a sensor value through its configured interface.
The RTE connects the application component to the relevant software interface.
The configured BSW and I/O abstraction path provides access to the sensor value.
The ADC driver controls the microcontroller's ADC peripheral.
The ADC converts the analog voltage into a digital result.
The value is made available through the configured software path.
This is a conceptual example. The actual module sequence depends on the ECU architecture, signal path and configuration.
Complex Drivers
Complex Drivers are used when a function cannot be implemented suitably using the standard AUTOSAR BSW module structure or when a specialized hardware interaction is required.
A Complex Driver may access hardware more directly than a typical standardized abstraction path. It can be used for specialized sensors, actuators, external devices or timing-critical functions.
Complex Drivers should not be treated as a shortcut for all hardware access. Their use introduces additional integration, portability, maintenance and verification considerations. The design should justify why standard BSW modules are insufficient.
Important AUTOSAR BSW Modules
The following table summarizes frequently encountered modules and their general responsibilities. It is not a complete list, and exact module availability and naming should be checked against the target AUTOSAR release.
| Module | Layer / area | What it does |
|---|---|---|
| OS | Services | Schedules tasks and provides operating-system mechanisms |
| EcuM | Services | Coordinates ECU initialization and state transitions |
| BswM | Services | Coordinates configured mode requests and actions |
| ComM | Services | Coordinates communication modes and requests |
| Com | Communication Services | Handles signal-oriented communication services |
| PduR | Communication Services | Routes protocol data units between communication modules |
| CanNm | Communication Services | Supports CAN network management |
| CanTp | Communication Services | Provides CAN transport protocol services |
| Dcm | Diagnostic Services | Processes diagnostic communication requests |
| Dem | Diagnostic Services | Manages diagnostic events and DTC-related data |
| NvM | Memory Services | Manages configured non-volatile data blocks |
| MemIf | Memory Abstraction | Provides a common memory-device interface |
| CanIf | Communication Hardware Abstraction | Interfaces upper communication modules with CAN drivers |
| Can | MCAL / Communication Drivers | Controls the CAN controller peripheral |
| Dio | MCAL / I/O Drivers | Provides digital input and output access |
| Adc | MCAL / I/O Drivers | Controls analog-to-digital conversion |
| Spi | MCAL / Communication Drivers | Controls SPI communication |
| Mcu | MCAL / Microcontroller Drivers | Supports MCU initialization and configuration |
Understanding the CAN communication path
A common example used to understand BSW is the CAN communication stack.
Application Software Component
|
RTE
|
COM
|
PduR
|
CanIf
|
Can
|
CAN Controller
|
CAN Transceiver
|
CAN Bus
This is a simplified illustrative path. Actual communication paths may include additional modules, configuration and network-management functions. The CAN transceiver is a physical hardware component controlled through the relevant driver or abstraction interfaces; it is not itself the CAN driver.
The example shows why BSW is more than a driver collection. Multiple modules cooperate to move application data to and from the communication hardware.
How BSW Modules Work Together
BSW modules rarely operate in isolation. A typical ECU feature uses multiple modules that exchange data or coordinate state transitions.
Example 1: Sending a CAN signal
Suppose an application component needs to transmit a vehicle status signal.
The application component writes the signal through its configured RTE interface.
COM handles the configured signal and I-PDU behaviour.
PduR routes the PDU to the appropriate lower communication module.
CanIf maps the PDU to the configured CAN identifier and controller path.
The CAN driver interacts with the CAN controller.
The controller and transceiver place the frame onto the physical bus.
The reverse direction follows the corresponding receive path. Exact routing and buffering depend on the ECU configuration.
Example 2: Storing data in non-volatile memory
Suppose an ECU must preserve a configured data block across power cycles.
An upper module requests a read or write operation from NvM.
NvM manages the configured block operation and job status.
MemIf routes the request to the selected memory abstraction.
The memory abstraction communicates with the appropriate memory driver.
The driver accesses the supported memory device.
The actual stack can differ for internal flash, EEPROM or emulated EEPROM implementations.
Example 3: Diagnostic request
A tester sends a UDS request to an ECU.
The communication path receives the diagnostic message.
The configured transport and routing modules deliver it to the diagnostic stack.
Dcm processes the diagnostic service and its configured conditions.
Dcm may request data or status from modules such as Dem or application-specific interfaces.
The response is passed back through the configured communication path.
This example connects BSW architecture with the UDS diagnostics topic. The exact module chain depends on the selected transport protocol and ECU configuration.
AUTOSAR BSW Configuration and Integration Workflow
Configuring BSW is a structured engineering activity. It involves system information, ECU-specific configuration, vendor modules, generated artefacts, integration and verification.
A typical workflow includes the following stages.
1. Understand ECU requirements
Start with the ECU's functional and non-functional requirements.
Identify:
Microcontroller and peripheral requirements.
Communication networks and protocols.
Diagnostic requirements.
Memory and data-persistence requirements.
Timing and scheduling constraints.
Safety and cybersecurity constraints.
ECU variants and configuration differences.
2. Select the AUTOSAR release and compatible stack
Confirm the AUTOSAR Classic release required by the project. Check compatibility between the selected BSW stack, MCAL package, compiler, microcontroller, configuration tools and integration environment.
Do not assume that modules or configuration parameters from one release can be used unchanged in another.
3. Prepare system and ECU configuration inputs
AUTOSAR methodology uses formal descriptions and configuration artefacts, commonly including ARXML. The precise inputs depend on the development process and tools.
Inputs may describe:
Software components and interfaces.
ECU resources and hardware.
Communication signals and PDUs.
Network and routing configuration.
Diagnostic data and services.
OS tasks, events and alarms.
Memory blocks and drivers.
4. Configure BSW modules
Use the appropriate vendor or configuration tool to configure the required modules. Examples of commonly used AUTOSAR configuration environments include Vector DaVinci Configurator and Elektrobit tresos, depending on the project and licenses.
Typical configuration work includes:
OS task and interrupt configuration.
Communication stack configuration.
Diagnostic module configuration.
Memory stack configuration.
MCU and peripheral driver configuration.
ECU state and mode management.
Tool-specific workflows differ. Follow the selected vendor's documentation and project configuration rules.
5. Generate configuration and integration artefacts
Depending on the toolchain, configuration can produce generated source code, headers, configuration data, ARXML outputs and integration reports.
Review generated artefacts for warnings, unresolved references, inconsistent configuration and version mismatches. Generated code still needs integration and verification.
6. Integrate BSW with RTE and application software
Integrate the configured BSW with the RTE and application software components. Verify interfaces, data types, runnable mappings, communication paths, memory access and initialization dependencies.
7. Build and verify the ECU software
Compile and link the software using the project's compiler and build environment. Resolve integration errors and verify that the resulting image matches the intended ECU configuration.
8. Test on target hardware
Test initialization, communication, diagnostics, memory operations, mode transitions, timing and fault handling on the target ECU or an appropriate test environment.
A successful configuration generation is not proof that the ECU behaves correctly. Integration and target verification remain essential.
BSW, MCAL, RTE and Application Software Compared
These terms are related but they do not mean the same thing.
| Term | Full name | Main role |
|---|---|---|
| BSW | Basic Software | Provides ECU infrastructure and hardware-related services |
| MCAL | Microcontroller Abstraction Layer | Provides standardized access to microcontroller peripherals; it is part of BSW |
| ECU Abstraction | ECU Abstraction Layer | Hides details of ECU hardware arrangement and devices |
| RTE | Runtime Environment | Connects application software components and provides access to BSW interfaces |
| Application Software | Application Layer | Implements ECU features and vehicle functions |
Is MCAL part of BSW?
Yes. MCAL is the lowest standardized layer within the AUTOSAR Classic BSW architecture. It provides interfaces to microcontroller peripherals.
Is RTE part of BSW?
No. In the AUTOSAR Classic layered architecture, RTE is a separate layer between the Application Layer and BSW.
Is Complex Driver part of BSW?
Complex Drivers are part of the BSW architecture, but they are not one of the three principal BSW layers. They provide a route for specialized or complex hardware functions that do not fit the standard module structure.
Common BSW Integration Challenges
Version compatibility
BSW modules, MCAL drivers, configuration tools and generated artefacts must be compatible with the selected AUTOSAR release and one another. A version mismatch can lead to integration errors or unexpected behaviour.
What to check: release compatibility, vendor release notes, module specifications, compiler support and configuration tool versions.
Incorrect configuration
A module may compile but still be configured incorrectly. Examples include an incorrect CAN controller mapping, wrong PDU routing, invalid OS task assignment or an inconsistent memory block configuration.
What to check: configuration validation reports, generated files, ECU extract consistency and target behaviour.
Initialization sequence problems
Some modules depend on other modules or hardware being initialized first. An incorrect initialization order can cause drivers, communication channels or services to fail during startup.
What to check: EcuM configuration, initialization lists, module dependencies, driver initialization and startup logs.
Communication issues
A CAN message may not reach the application because of a mismatch in signal configuration, PDU routing, controller configuration or physical network setup.
What to check: COM, PduR, CanIf, Can driver configuration, CAN identifiers, bus timing, transceiver state and captured bus traces.
Memory management errors
Incorrect NvM block configuration, memory device setup or job handling can lead to data not being stored or restored as expected.
What to check: NvM block parameters, MemIf routing, lower memory drivers, job results and power-cycle behaviour.
Timing and scheduling problems
Tasks that run too frequently, too slowly or with unsuitable priorities can affect ECU timing and responsiveness.
What to check: OS task configuration, execution time, interrupt load, activation patterns, stack usage and timing measurements.
Testing and Debugging AUTOSAR BSW
A structured test strategy should cover individual modules, interactions between modules and complete ECU behaviour.
| Test area | What to verify | Example evidence |
|---|---|---|
| Configuration validation | Module parameters and references are consistent | Configuration tool reports |
| Build and integration | Generated and vendor code compile and link correctly | Build logs and linker map |
| Startup | ECU initializes modules in the required sequence | Startup logs and debugger trace |
| Communication | Signals and PDUs follow the configured path | CAN trace or Ethernet capture |
| Diagnostics | Diagnostic requests and responses behave as specified | UDS trace and DTC records |
| Memory | Data is stored and restored correctly | NvM job status and power-cycle tests |
| OS and timing | Tasks, events and interrupts meet timing expectations | Trace and execution-time measurements |
| Fault handling | Errors are detected and handled as designed | Fault-injection results and diagnostic records |
Tools such as CANoe, CANalyzer, EB tresos, Vector DaVinci tools, debuggers and target-specific measurement tools may be used depending on the project. Tool choice should follow the actual test question rather than being treated as a substitute for understanding the software stack.
Key Takeaways
AUTOSAR BSW is the infrastructure software layer of an AUTOSAR Classic ECU.
The three principal BSW layers are Services, ECU Abstraction and MCAL.
Complex Drivers support specialized functions that do not fit suitably into standard modules.
MCAL is part of BSW and provides standardized interfaces to microcontroller peripherals.
RTE is a separate layer between application software and BSW.
Modules such as OS, EcuM, BswM, ComM, Dcm, Dem, NvM, COM, PduR and CanIf provide different infrastructure functions.
BSW configuration depends on ECU requirements, AUTOSAR release, hardware, vendor stack and project toolchain.
Configuration generation is only one step; integration, target testing and debugging are essential.
Frequently Asked Questions
What is AUTOSAR BSW?
AUTOSAR BSW stands for Basic Software. It provides the common ECU infrastructure required by automotive application software, including operating-system, communication, diagnostic, memory and hardware-access functions.
What are the main layers of AUTOSAR BSW?
The three principal layers are the Services Layer, ECU Abstraction Layer and Microcontroller Abstraction Layer (MCAL). Complex Drivers are also part of the BSW architecture for specialized functions.
What is the difference between BSW and MCAL?
BSW is the overall Basic Software infrastructure. MCAL is one part of BSW: its lowest standardized layer, which provides interfaces to microcontroller peripherals such as ADC, PWM, SPI, CAN and digital I/O.
Is RTE part of AUTOSAR BSW?
No. RTE is a separate layer positioned between the Application Layer and BSW. It provides the communication and access mechanisms defined for application software components.
What are the most commonly used AUTOSAR BSW modules?
Frequently encountered modules include OS, EcuM, BswM, ComM, COM, PduR, CanIf, Dcm, Dem, NvM and various MCAL drivers. The actual module set depends on the ECU requirements and implementation.
What is the role of the Services Layer?
The Services Layer provides common ECU-wide services such as operating-system functions, ECU state management, communication management, diagnostics and non-volatile memory management.
What is a Complex Driver in AUTOSAR?
A Complex Driver is used for specialized hardware functions that cannot be suitably handled by the standard BSW module architecture or require a specific hardware interaction. Its use should be justified because it can increase hardware dependency.
Which tools are used for AUTOSAR BSW configuration?
Common tools include Vector DaVinci Configurator and Elektrobit tresos, along with vendor-specific MCAL and integration tools. Tool availability and workflow depend on the project, vendor and license.
Conclusion
AUTOSAR BSW provides the infrastructure that allows an automotive ECU to run application software on a defined hardware platform. Its layered architecture separates common services, ECU-level hardware abstraction and microcontroller-specific drivers. This separation supports modular development and reuse, while still requiring careful configuration and integration for each ECU.
To work effectively with AUTOSAR, engineers should understand how modules interact rather than memorize module names alone. Trace a communication path through COM, PduR, CanIf and the CAN driver; understand how NvM reaches memory hardware; and learn how diagnostic services interact with Dcm and Dem. These practical paths make the architecture easier to understand and debug.
For a structured learning path covering AUTOSAR Classic architecture, BSW, MCAL configuration and ECU integration, explore the Aertrix Labs AUTOSAR Classic Platform course. The course is currently listed as not yet available to buy online, so use its course page to review the details or ask about it. Engineering teams can also review Aertrix Labs' middleware and platform services, which include AUTOSAR BSW integration and configuration, MCAL bring-up, communication and diagnostic stack setup, and RTE integration.
References
AUTOSAR Classic Platform — official architecture overview and current release information
AUTOSAR General Specification of Basic Software Modules — R24-11
Technical note: This article is an educational overview of AUTOSAR Classic BSW. The AUTOSAR Classic Platform page currently identifies R25-11 as the current release. Detailed module examples in this article are intentionally general; verify exact module names, placement, APIs, configuration parameters and requirements against the release and vendor documentation used by your ECU project. AUTOSAR specifications are protected intellectual property; this article uses original explanations and does not reproduce specification text.


